function goToMonth(month,year) {
//req = new XMLHttpRequest();

var req = null; //Initialize the AJAX variable.
if (window.XMLHttpRequest) { //Are we working with mozilla?
req=new XMLHttpRequest(); //Yes -- this is mozilla.
} else { //Not Mozilla, must be IE
req=new ActiveXObject("Microsoft.XMLHTTP"); //Wheee, ActiveX, how do we format c: again?
} //End setup Ajax.
if (req==null) { //If we couldn't initialize Ajax...
alert("Your browser doesn't support AJAX."); //Sorry msg.
return false //
}


	if(req){
		req.open("GET", "http://www.hpceie.com/calendar/setcalendar.php?month=" + month + "&year=" + year, false);
		req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
		req.send(null);
		
		if (req.readyState == 4) {
	      if(req.status == 200) {
    		var textout = req.responseText;
    		document.getElementById('table-calendar').innerHTML = textout;			
		  }
		}
		
	}else {
	  alert("Not req");
	}
}




