var xmlHttp
function GetXmlHttpObject()
{ 
	var objXMLHttp=null
	if (window.XMLHttpRequest) {
		objXMLHttp=new XMLHttpRequest()	}
	else if (window.ActiveXObject)	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")	}
	if (objXMLHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	return objXMLHttp
}
///////////////// NO CHANGE ABOVE/////////////////////

function changemonth(month,year)
{
	
	xmlHttp3=GetXmlHttpObject()
	document.getElementById("event_cal").innerHTML='<div style="height:80px; width:145px; margin-top:58px; margin-left:50px"><img src="images/ajax-loader.gif" /></div>';
	var url="change-month.php"
	url=url+"?calmonth="+month+"&calyear="+year;
	xmlHttp3.onreadystatechange=function stateChanged() { 
		if (xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete")	{ 
				
			document.getElementById("event_cal").innerHTML=xmlHttp3.responseText } }  
	xmlHttp3.open("GET",url,true)
	xmlHttp3.send(null)
	//window.location.href='manage_customer.php';
}
