function xmlhttp(URL, post_vars) {
	var xmlhttp = null;
	try
	{
	    xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
	}
	catch(e)
	{
	    try
	    {
	        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	    }
	    catch(e2){}
	}
	//var xmlhttp = new ActiveXObject("MSXML2.XMLHTTP.4.0");
	
	xmlhttp.open("POST", URL, false);
	xmlhttp.setRequestHeader("content-type","application/x-www-form-urlencoded"); 
	xmlhttp.send(post_vars);
	
	ret_text = xmlhttp.responseText;
	return ret_text;
}

function getResponseText(url) {
	xmlhttp = create_xmlhttp();
	xmlhttp.open("GET", url, false);
	xmlhttp.setRequestHeader("content-type","text/xml");
	xmlhttp.send(null);
	return xmlhttp.responseText;
}

function getResponseTextPost(url, args) {
	xmlhttp = create_xmlhttp();
	xmlhttp.open("POST", url, false);
	xmlhttp.setRequestHeader("content-type","application/x-www-form-urlencoded");
	xmlhttp.send(args);
	return xmlhttp.responseText;
}

function asynchronism_getResponseTextPost(url, args) {
	xmlhttp = create_xmlhttp();
	xmlhttp.open("POST", url, true);
	xmlhttp.setRequestHeader("content-type","application/x-www-form-urlencoded");
	xmlhttp.onreadystatechange = callback;
	xmlhttp.send(args);
	alert("sending please wait.........");
}

function callback(){
	var msg=null;
	if(xmlhttp.readyState==4){ 
		if(xmlhttp.status==200){ 
			msg = xmlhttp.responseText;
			alert(msg);
		}
	}
}	

function create_xmlhttp() {
	var xmlhttp = null;
	try {
		xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
	}catch(e) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}catch(e2) {}
	}
	return xmlhttp;
}
function getResponseXML(url) {
  var xmlhttp = null;
	xmlhttp = create_xmlhttp();
	
	xmlhttp.open("POST", url, false);
	xmlhttp.setRequestHeader("content-type","text/xml");
	xmlhttp.send(null);
	
	return xmlhttp.responseXML.xml;
}