var xmlhttp_sp = false;

try {
//If the Javascript version is greater than 5.
	  xmlhttp_sp = new ActiveXObject("Msxml2.XMLHTTP");

	} catch (e) {
//If not, then use the older active x object.
try {

	   xmlhttp_sp = new ActiveXObject("Microsoft.XMLHTTP");

} catch (E) {
//Else we must be using a non-IE browser.
			  xmlhttp_sp = false;
			}
}

if (!xmlhttp_sp && typeof XMLHttpRequest != 'undefined') {
		  xmlhttp_sp = new XMLHttpRequest();

}

function makerequest_sp(serverPage, params, objID)
{  

	
	var myRandom=parseInt(Math.random()*99999999);
	
	params+='&'+myRandom;
	var url = serverPage;
	//alert(objID);return;
	//var params = "lorem=ipsum&name=binny";
	xmlhttp_sp.open("POST", url, true);
	//Send the proper header information along with the request
	xmlhttp_sp.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8");
	xmlhttp_sp.setRequestHeader("Content-length", params.length);
	xmlhttp_sp.setRequestHeader("Connection", "close");
	document.getElementById(objID).innerHTML ='<div align="center"><image src="images/loading.gif" border="0"></div>';
	//document.getElementById(objID).innerHTML ='<option value="0">123</option>'; return;
	xmlhttp_sp.onreadystatechange = function() {//Call a function when the state changes.
	if(xmlhttp_sp.readyState == 4 && xmlhttp_sp.status == 200) {
		document.getElementById(objID).innerHTML = xmlhttp_sp.responseText;
		//alert(xmlhttp_sp.responseText);return;
	}
	}
	xmlhttp_sp.send(params);    

	//xmlhttp_sp.send(null); 
}
