var xmlDoc;
var xmlhttp=null;

if (window.XMLHttpRequest) xmlhttp=new XMLHttpRequest();
	// code for IE
	else if (window.ActiveXObject) xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  
function getXMLDocFromReq(dataXML, method)
{
		if (method==null) method="GET";

		xmlhttp.open(method, dataXML+"&r="+(new Date().getTime()),false);
		xmlhttp.send(null);

	//load xml file
	// code for IE
	if (window.ActiveXObject)
	  {
		  xmlDoc= new ActiveXObject("Microsoft.XMLDOM");
		  xmlDoc.async=false;
		  xmlDoc.load(dataXML);
		  processXML();
	  }
	// code for Mozilla, etc.
	else if (document.implementation &&
	document.implementation.createDocument)
	  {
		  xmlDoc= document.implementation.createDocument("","",null);
		  xmlDoc.load(dataXML);
		  xmlDoc.onload=processXML;
	  }
	else
	  {
	  alert('Your browser cannot handle this script');
	  }
}

function sendReq(dataXML, method)
{
		if (method==null) method="GET";
		var httpUrl=dataXML+"&r="+(new Date().getTime());
		xmlhttp.open(method, httpUrl,false);
		xmlhttp.send(null);
}
