// JavaScript Document
function loadObject()
{var xmlHttp=null;
	try
	  {// Firefox, Opera 8.0+, Safari
	  xmlHttp=new XMLHttpRequest();	  }
	catch (e)
	  {// Internet Explorer
	  try
			{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
	  catch (e)
			{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
	  }
	return xmlHttp;
}





function fillCalendar()
{	if (xmlVar.readyState == 4) 
	{		if (xmlVar.status == 200) {
			var strResult = xmlVar.responseText.split("|");
			document.getElementById("td"+strResult[0].replace(" ","")).className = strResult[1].replace(" ","");
		}
	}
}

function actCalendarDay(dia,mes,ano)
{	strURL = "/scripts/din_actcalendario.php?dia="+dia+"&mes="+mes+"&ano="+ano;
	xmlVar = loadObject();
	xmlVar.onreadystatechange=fillCalendar;
	xmlVar.open("GET",strURL,true);
	xmlVar.send(null);	 
}


