function makeObject(){
	var x;
	if (window.ActiveXObject) {
		x = new ActiveXObject("Microsoft.XMLHTTP");
	}else if (window.XMLHttpRequest) {
		x = new XMLHttpRequest();
	}
	return x;
}
var request = makeObject();

//AJAX the content

function event_calender(strURL)
{      
 //alert('dddd');
 //alert(strURL);
 //var req123 = CreateXmlHttpObject(); // fuction to get xmlhttp object
 var req1 = makeObject();
 if (req1)
 {
  req1.onreadystatechange = function()
 {
  if (req1.readyState == 4) 
  { //data is retrieved from server
   if (req1.status == 200) 
   { // which reprents ok status                    
	 document.getElementById('event_calender').innerHTML=req1.responseText;//put the results of the requests in or element
   }
   else
   { 
	 alert("There was a problem while using XMLHTTP:\n");
   }
  }            
 }        
req1.open("GET", strURL, true); //open url using get method
req1.send(null);//send the results
 }
}

