
function showMonthViewCalender(id,mon){
	
	var xmlHttp3;
	
	xmlHttp3 = GetXmlHttpObject();
	
	//If we cant do the request error out
	if (xmlHttp3==null) {
	 	alert ("Browser does not support HTTP Request")
	 	return
	}
	
	
		//First build the navigation panel
		var url="calender.php";
		url=url+"?id="+id;
		url=url+"&mon="+mon;
		url=url+"&sid="+Math.random();
		
//	alert(url);
	
	//Once the page finished loading put it into the div
	xmlHttp3.onreadystatechange=stateChanged 
	
	//Get the php page
	xmlHttp3.open("GET",url,true);
	xmlHttp3.send(null);



	
	function stateChanged() { 
		//IF this is getting called when the page is done loading the states then output the div
		if (xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete") { 
			document.getElementById(id).innerHTML=xmlHttp3.responseText;	
		} 
	}
	
	
	

	
}


function GetXmlHttpObject() {
	//Determine what browser we are on and make a httprequest connection for ajax
	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 monthViewCalNavigation(mon, id){
	
	var mon;
	
	var xmlHttp4;
	
	xmlHttp4 = GetXmlHttpObject();
	
	//If we cant do the request error out
	if (xmlHttp4==null) {
	 	alert ("Browser does not support HTTP Request")
	 	return
	}
	
	
		//First build the navigation panel
		var url="calender.php";
		url=url+"?mon="+mon;
		url=url+"&id="+id;
		url=url+"&sid="+Math.random();
		
	
	//Once the page finished loading put it into the div
	xmlHttp4.onreadystatechange = stateChanged;
	
	//Get the php page
	xmlHttp4.open("GET",url,true);
	xmlHttp4.send(null);



	
	function stateChanged() { 
		//IF this is getting called when the page is done loading the states then output the div
		if (xmlHttp4.readyState==4 || xmlHttp4.readyState=="complete") { 		
			document.getElementById(id).innerHTML=xmlHttp4.responseText;
			
		} 
	}
	

	
	
}




