

function highlight_today(cell){
	cell.style.backgroundColor="ff0";
	cell.style.color="black";
	cell.style.cursor="pointer";
}
function unhighlight_today(cell){
	cell.style.backgroundColor="blue";
	cell.style.color="fff";
}

function highlight_event(cell){
	cell.style.backgroundColor="eee";
	cell.style.cursor="pointer";
}
function unhighlight_event(cell){
	cell.style.backgroundColor="fff";
}
function highlight(cell){
	cell.style.backgroundColor="ff0";
	cell.style.cursor="pointer";
}
function unhighlight(cell){
	cell.style.backgroundColor="fff";
}
function changeMonth(monthurl){
	ajaxCaller.getPlainText(monthurl, updateCal);
}
function updateCal(newmonth){
	parent.$("calf").innerHTML=newmonth;
}
function display_event(day, month, year){
	day+=''; month+='';
	$("progress_cal").className="waiting";
	if (day.length==1) day="0"+day;
	if (month.length==1) month="0"+month;
	parent.$("event_list").innerHTML= "<p>Events happening on "+month+"/"+day+"/"+year+"</p>";
	var thisurl="fetch.php?d="+year+month+day;
	ajaxCaller.getPlainText(thisurl, updateEvents);
	$("progress_cal").className="notWaiting";
}

function updateEvents(events){
	parent.$("event_list").innerHTML+=events;
}

function add_title(){
	//parent.$("cal_title").innerHTML="LMP Calendar | <a href='#' onclick='reset_cal()'>Today</a>";
}
