// JavaScript Document
function showActions(cellId, actionDate, school)
{

	if(actionDate != '')
	{
		document.getElementById('calendarInfo').style.display = 'block';
	} 
	else 
	{
		document.getElementById('calendarInfo').style.display = 'none';
	}
	
	selectCalendarCell(cellId, actionDate, school);
	
}
function selectCalendarCell(cellId, actionDate, school)
{

	for(var i = 1; i <= 36; i++){
		if(document.getElementById('cell_' + i) != null)
			document.getElementById('cell_' + i).className = calendarCell[i];
	}
	
	document.getElementById(cellId).className = 'cell cell-current';
	
	loadContentToDiv('calendarInfo','getCalendarItems.php?date=' + actionDate);
	
}
