/* Create a new XMLHttpRequest object to talk to the Web server */
function createxmlHttp()
{
	var xmlHttp = false;
	var tag;
	var activenode=false;
	var cursorup=false;
	/*@cc_on @*/
	if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
 	 xmlHttp = new XMLHttpRequest();
	}
	else
	{
		if (@_jscript_version >= 5)
			try
			{
	 			 xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (e)
			{
  				try
  				{
    				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  				}
  				catch (e2)
  				{
    				xmlHttp = false;
  				}
			}
	}
	if (!xmlHttp){
 	 alert("Error initializing XMLHttpRequest!");
 	}
 return xmlHttp;
}
function callServer(url,id,para,obj) {
	//var rn=Math.random();
	url=url+"?id="+id+"&"+para;
	//alert(url);		
	//alert(xmlHttp.readyState);
	xmlHttp.open("GET", url,true);
	xmlHttp.onreadystatechange=obj;
	xmlHttp.send(null);
}
sendxml=function(URL,method,xmldata,obj)
	{
		//alert(xmlHttp.readyState);
		xmlHttp.open("POST",URL,true);
		//alert(xmlHttp.readyState);
		//xmlHttp.setRequestHeader("Content-Type","application/x-www-urlencoded;");
		//xmlHttp.setRequestHeader("Content-Type","application/XML;");
		//xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
		//alert(obj);
		xmlHttp.onreadystatechange=obj;
		//alert(xmlHttp.readyState);
		xmlHttp.send(xmldata);
		//alert(xmlHttp.readyState);
	}
callback=function()
{
	if(xmlHttp.readyState==4)
	{
		alert(xmlHttp.responseText);
	}
}	
var xmlHttp=createxmlHttp();
