var myObjectReference = createRequestObject();

function createRequestObject() {

var xmlObject;

try{xmlObject=new ActiveXObject("Msxml2.XMLHTTP");}
catch (e){
try { xmlObject=new ActiveXObject("Microsoft.XMLHTTP");}
catch(f) { xmlhttp=null; }
}

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

return xmlObject;
}

function sendRequestTextPost(URL,values) {
var rnd = Math.random();

try{
myObjectReference.open('POST',URL);
myObjectReference.setRequestHeader('Content-Type','application/x-www-form-urlencoded');

myObjectReference.onreadystatechange = handleResponse;
myObjectReference.send(values + '&rnd='+rnd);


}
catch(e){}
finally{}
}

