// JavaScript Document

function showActions(cellId, actionDate, lastClass)
{

	if(actionDate != '')
	{
		document.getElementById('calendarInfo').style.display = 'block';
	} 
	else 
	{
		document.getElementById('calendarInfo').style.display = 'none';
	}
	
	
	selectCalendarCell(cellId, actionDate);
	
}


function selectCalendarCell(cellId, actionDate)
{

	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);
	
}
