
	var ajax = false;
    if (!ajax && typeof XMLHttpRequest != 'undefined') {
    ajax = new XMLHttpRequest();
    }
   function call_cal(m,y) {  
   var url = "engine/modules/calendar/ajax/ajax_cal.php?m=" + encodeURIComponent(m) + "&y=" + encodeURIComponent(y);
   ajax.open("GET", url, true); 
   ajax.onreadystatechange = update_cal;
   ajax.send(null);
   updated.style.display = 'none';
   cal_loader.style.display = 'block';
   }	
   
	function update_cal() {
   if (ajax.readyState == 4) {
    var response1 = ajax.responseText; 	
    document.getElementById("updated").innerHTML = response1;
	updated.style.display = 'block';	
	cal_loader.style.display = 'none';
   }
   }

   

 
 
 
 
   

