	function highlightCalendarCell(element) {
		$(element).style.border = '';
	}

	function resetCalendarCell(element) {
		$(element).style.border = '';
	}
	
	function startCalendar(month, year) {
		new Ajax.Updater('calendarInternal', '../calendar/rpc.php', {method: 'post', postBody: 'action=startCalendar&month='+month+'&year='+year+''});
	}
	
	function displayEvents(day, month, year) {
		new Ajax.Updater('eventList', '../calendar/rpc.php', {method: 'post', postBody: 'action=listEvents&&d='+day+'&m='+month+'&y='+year+''});
		if(Element.visible('eventList')) {
			// do nothing, its already visble.
		} else {
			setTimeout("Element.show('eventList')", 300);
		}
	}
	
	function highlightEvent(day) {
		Element.hide('addEventForm');
		$('calendarDay_'+day+'').style.background = '#<?= $eventColor ?>';
	}
	
	<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->