
///////////////// start ajax
var prdGlobSpanId="";
function xmlhttpPost(strURL, dspMonth, dspYear) {
prdGlobSpanId=dspMonth;
   //var form    = document.forms['frmEventList'];
	//alert(form.elements["chkimg[" + dspMonth +"]"].checked)
	//return false;

	//if(form.elements["chkimg[" + dspMonth +"]"].checked==true)
	//{
	//	strURL="addtocart.php";
	//}
	//else
	//{
	//	strURL="removeitem.php";
	//}
	
//document.getElementById("prdSpanZip").style.top=prdTop + "px";
//document.getElementById("prdSpanZip").style.display="inline";
	//alert(document.frmreg.agency_zipcode.value);
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) 
		{
	            updatepage(self.xmlHttpReq.responseText);
        }
    }
	self.xmlHttpReq.send(getquerystring(dspMonth, dspYear));
}
//---------------------------------------------------------------------------------------------------
function getquerystring(dspMonth, dspYear) {
   // var form    = document.forms['frmmj'];

		//form.elements["chkimg[" + dspMonth +"]"].checked);
		
		
		//var userid = form.elements["id[" + dspMonth +"]"].value;
		
		
		qstr = "dspMonth=" + dspMonth + "&dspYear=" + dspYear ;  // NOTE: no '?' before querystring		
	    
		return qstr;
}
//---------------------------------------------------------------------------------------------------
function updatepage(str){
//	    document.getElementById("zipcode").innerHTML = str;		
//		document.getElementById("prdSpanZip").style.display="none";
		document.getElementById("prdCalendarAjax").innerHTML =str;
}
///////////////// ajax end

