//Create the XMLHttpRequest object.
var xmlhttp;
xmlhttp=null;
if (window.XMLHttpRequest)
  {// code for all new browsers
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE5 and IE6
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
if (!xmlhttp)
    {
     alert("Error creating XMLHttpRequest object.");
     }
else {
    //alert("Created XMLHttpRequest object."); 
	}