
//-->
function getXmlHttpRequest()
{
var httpRequest = null;
try
{
httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
httpRequest = null;
}
}

if (!httpRequest && typeof XMLHttpRequest != "undefined")
{
httpRequest = new XMLHttpRequest();
}

return httpRequest;
}


function postUrl(url, data, async, stateChangeCallback)
{ 
//var xmlHttpReq = getXmlHttpRequest(); 
	//req = false;
    // branch for native XMLHttpRequest object
    if(window.XMLHttpRequest) {
    	try {
			xmlHttpReq = new XMLHttpRequest();
        } catch(e) {
			xmlHttpReq = false;
        }
    // branch for IE/Windows ActiveX version
    } else if(window.ActiveXObject) {
       	try {
        	xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
      	} catch(e) {
        	try {
          		xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
        	} catch(e) {
          		xmlHttpReq = false;
        	}
		}
    }


if (!xmlHttpReq)
return;

xmlHttpReq.open("GET", url, async);
xmlHttpReq.onreadystatechange = function()
{

stateChangeCallback(xmlHttpReq);
};
xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
data = "testdata"; 
xmlHttpReq.send(null);

}