// Cambio de calendario con ajax
function createQCObject() { 
   var req; 
   if(window.XMLHttpRequest){  
      req = new XMLHttpRequest(); 
   } else if(window.ActiveXObject) { 
      req = new ActiveXObject("Microsoft.XMLHTTP"); 
   } else { 
      alert('Problem creating the XMLHttpRequest object'); 
   } 
   return req; 
} 
var http = createQCObject(); 

function displayCalendar(m,y) {
	var ran_no=(Math.round((Math.random()*9999))); 
	http.open('get', '_inc/ajax-calendar.php?m='+m+'&y='+y+'&ran='+ran_no);
   	http.onreadystatechange = function() {
		if(http.readyState == 4 && http.status == 200) { 
      		var response = http.responseText;
      		if(response) { 
				document.getElementById("calendar").innerHTML = http.responseText; 
      		} 
   		} 
	} 
   	http.send(null); 
}