function checklogin(flage){
			if(document.all.account.value=="")
			{
			  document.all.account.focus();
		 	  return false;
			}
			if(document.all.password.value=="")
			{
			  document.all.password.focus();
		 	  return false;
			}
			var xmlhttp;
			try{
				xmlhttp=new XMLHttpRequest();
				}
			catch(e){
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
				}
			xmlhttp.onreadystatechange=function(){
			document.getElementById('login_1').style.display = "none";
			document.getElementById('login_2').style.display = "";
            login_2.innerHTML="<img src='http://www.zsy.cn/images/loading.gif'> 登录中..."; 
			if (xmlhttp.readyState==4){
				if (xmlhttp.status==200){
					var data=xmlhttp.responseText;
					login.innerHTML=data;
					document.getElementById('login_1').style.display = "none";
					document.getElementById('login_2').style.display = "none";
					document.getElementById('login').style.display = "";
					if(flage=='login'){
						ValidCookies(account);	
					}
				}
				else{
					document.getElementById('login_1').style.display = "none";
					document.getElementById('login_2').style.display = "none";
				        login.innerHTML="请求超时，点击<a href='' onclick='location.reload();'>刷新</a>"
				    }
				}
			}
			host = window.location.host;
			if (host=="ask.foshanbuyun.com"){
			  host="http://ask.foshanbuyun.com/";
			}
			else{
			  host="http://www.foshanbuyun.com/info/";
			}
			var number = Math.random(); 
			number = number * 100000; 
			number = Math.ceil(number);
			xmlhttp.open("post",host+"login_ajax.asp?rn="+number,true);
			xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');
			var account=document.all.account.value;
			var password=document.all.password.value;
			var url="account="+encodeURIComponent(encodeURIComponent(account))+"&password="+password;
			xmlhttp.send(url)
		}
