function doClick(rem) {
	this.xmlHttplogin;
	document.getElementById("loginmsg").innerHTML="验证中....";
	this.u_user1			=document.getElementById("u_user1").value;
	this.u_pass1			=document.getElementById("u_pass1").value;
	this.Remember			="false";
	if (rem=="True") Remember=document.getElementById("CheckRememberMe").checked;
	this.accname			=document.getElementById("aid").value;
	if (u_pass1=="") 	
		{alert("密码没有填写");return;}
	if (u_user1=="") 	
		{alert("用户名称没有填写");return;}
	this.url="/infologin.aspx?aname="+accname+"&username=" + u_user1 + "&pwd=" + u_pass1 +"&CheckRememberMe="+Remember;
	if (window.XMLHttpRequest) {
		xmlHttplogin = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		xmlHttplogin = new ActiveXObject("Microsoft.XMLHTTP");
		if (xmlHttplogin==null)
			xmlHttplogin = new ActiveXObject("Msxml2.XMLHTTP");
	}
    with(xmlHttplogin){
		var urlto =document.getElementById("urlto").value;
		xmlHttplogin.open("GET",this.url, true); 
		xmlHttplogin.onreadystatechange = function(){ 
 			if (xmlHttplogin.readyState==4 || xmlHttplogin.readyState=="complete"){
 				var p = xmlHttplogin.responseText;
 				if (p.indexOf('/')==0)
					document.location=p +"/" + urlto;
				else
					alert(p);
			}
		} 
		xmlHttplogin.send(null);
	}
	document.getElementById("loginmsg").innerHTML="";
}

