// JavaScript Document
loadCalendar = function(updateElId, searchType, versionId, venueId, artistId, pageId, year, month, day, allButtonTxt){
	curData = new Object();
	if (updateElId !== undefined && updateElId){curData['updateElId']=updateElId;}
	if (searchType !== undefined){curData['searchType']=searchType;}
	if (venueId !== undefined){curData['venueId']=venueId;}
	if (artistId !== undefined){curData['artistId']=artistId;}
	if (pageId !== undefined){curData['pageId']=pageId;}
	if (year !== undefined){curData['year']=year;}
	if (month !== undefined){curData['month']=month;}
	if (day !== undefined){curData['day']=day;}
	if (allButtonTxt !== undefined){curData['allButtonTxt']=allButtonTxt;}

	if($('#'+updateElId).attr('regionId')){
		curData['regionId']=$('#'+updateElId).attr('regionId');
	}
	if($('#'+updateElId).attr('areaUrl')){
		curData['areaUrl']=$('#'+updateElId).attr('areaUrl');
	}
	if($('#'+updateElId).attr('date')){
		curData['date']=$('#'+updateElId).attr('date');
		$('#'+updateElId).attr('old_date',$('#'+updateElId).attr('date'));
		$('#'+updateElId).attr('date','');
	}else if($('#'+updateElId).attr('old_date')){
		curData['old_date']=$('#'+updateElId).attr('old_date');
	}
	
	
	
	$('#'+updateElId).load('/widgets/event_calendar.php', curData ,function() { /*pageRefresh();*/ });

};

loadReportCalendar = function(updateElId, versionId, venueId, artistId,  pageId, year, month, day, allButtonTxt){
	
	curData = new Object();
	if (updateElId !== undefined && updateElId){curData['updateElId']=updateElId;}
	if (venueId !== undefined){curData['venueId']=venueId;}
	if (artistId !== undefined){curData['artistId']=artistId;}
	if (pageId !== undefined){curData['pageId']=pageId;}
	if (year !== undefined){curData['year']=year;}
	if (month !== undefined){curData['month']=month;}
	if (day !== undefined){curData['day']=day;}
	if (allButtonTxt !== undefined){curData['allButtonTxt']=allButtonTxt;}
	
	$('#'+updateElId).load('/widgets/partyreport_calendar.php', curData ,function() { pageRefresh(); });

};

