
function tdmv(aItem)
{
	aItem.style.backgroundColor = '#C0C0C0';
}

function tdmu(aItem)
{
	aItem.style.backgroundColor = '#FFFFFF';
}

function tdtmo(aItem)
{
	aItem.style.backgroundColor = '#FFFFFF';	
}

function ensureRefresh()
{
	document.calendarPage.day.value = "";
	document.calendarPage.view.value = "calendar";
	document.calendarPage.submit();
}

function sendDay(schedDay, schedMonth, schedYear)
{
	document.calendarPage.day.value = schedDay;
	document.calendarPage.month.value = schedMonth;
	document.calendarPage.year.value = schedYear;
	document.calendarPage.view.value = "daily";
	document.calendarPage.submit();
}


/*
  View Month functions
*/
function showCalendar(calMonth, calYear)
{
	document.schedulePage.day.value = "";
	document.schedulePage.month.value = calMonth;
	document.schedulePage.year.value = calYear;
	document.schedulePage.view.value = "calendar";
	document.schedulePage.submit();
}

function showSchedule(schedDay, schedMonth, schedYear)
{
	document.schedulePage.day.value = schedDay;
	document.schedulePage.month.value = schedMonth;
	document.schedulePage.year.value = schedYear;
	document.schedulePage.view.value = "schedule";
	document.schedulePage.submit();
}

function setEventDetails(scheduleEvent)
{
	document.all.showEvent.innerHTML = scheduleEvent;	
}


function changemonth() {
   var newmonth = document.calendarPage.month.value;
      
   window.location.href="ECAL_APP?month=" + newcat;
   
}
