       var xmlHttp=null;
			if (window.ActiveXObject){
					xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
				}else{
					xmlHttp=new XMLHttpRequest();
				}
		
		function handlezhu(){
			var username=zhuceform.username.value;
	        var password=zhuceform.password.value;
			 if(xmlHttp.readyState==4)
				{
				if (xmlHttp.status==200){
					var res=xmlHttp.responseText.substring(0,4);
					if (res=="have"){
				        alert("用户不存在,或者用户名密码错误");
				        return false;
					}	
					else{
				        //setCookies2(username,password);
				        window.navigate(location);
				        return true;
					}
				}
			}
		}
		function check(){
			var username=zhuceform.username.value;
	        var password=zhuceform.password.value;
	        if(username==""){
	        	alert("用户名不能为空");
	        	return false;
	        }
	        else if(password==""){
	        	alert("密码不能为空");
	            return false;
	        }else{
	        var url="userLogin_userLoginCeShi.action?username="+username+"&password="+password;
			xmlHttp.open("post",url,false);
      		xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");    
			xmlHttp.onreadystatechange = handlezhu;
			xmlHttp.send(null);
			
      		
	        }
		}
