
/*创建xmlhttp对象*/
var net=new Object();
net.ContentLoader=function (url,onload,data,onerror,httpType)
{
	this.url=url;
	this.req=null;
	this.onload=onload;
	this.onerror=null;
	this.loadXMLDoc(url,data,httpType);	
}

net.ContentLoader.prototype={
	loadXMLDoc:function(url,data,httpType)
				{
					if(window.ActiveXObject)
					{
						this.req=new ActiveXObject("Microsoft.XMLHTTP");							
					}
					else if(window.XMLHttpRequest)
					{
						this.req=new XMLHttpRequest();
					}					
					if(this.req)
					{
						try
						{
							var loader=this;
							this.req.onreadystatechange=function()
											 {
												loader.onReadyState.call(loader);
											 }
							if(httpType==null)
							this.req.open('Get',url,true);
							else
							this.req.open(httpType,url,true);
							
							this.req.send(data);
						}
						catch(err)
						{						
						}
					}
				},
	onReadyState:function()
				{
					var req=this.req;
					var ready=req.readyState;
					if(ready==4)
						if(req.status==200||req.status==0)
						{
							if(this.onload)
							this.onload.call(this);
						}
						else
						{
						}
				}
}

function SendHttp(sAspFile,sSend)
{
	if (navigator.onLine==false) 
    {
		//return "你现在处于脱机状态,请联机后再试。"
		return "offline status now,please try again after on-line.";
	} 
	var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");

		xmlhttp.Open("POST", sAspFile, false);
	try 
	{ 
		xmlhttp.Send("<root>"+sSend+"</root>");
	}
	catch (exception)
	{
		//alert("由于网络原因与服务器连接暂时中断，请重新登陆。")
		alert("server busy now.");
	}
	try
	{ 
		var str11=xmlhttp.responseText //系统错误: -1072896748。
		
	}
	catch (exception)
	{
		if (exception.description.indexOf("-1072896748")>0) 
		{	
	 	str11=""
		}
	}
    delete xmlhttp;
	return str11
}
	