 
 var ishaslogoninputUser=false; //是否已经输入用户名
 var ishaslogoninputPwd=false;  //是否已经输入密码

//------top.asp top1.asp中应用 
    function clearlogonfield(mtype)
    {  
        if(mtype==1)
        {
			if (document.all("txtlogonUser").value == "用户名..." && ishaslogoninputUser==false)
				document.all("txtlogonUser").value = "";
			ishaslogoninputUser=true;	
	    }
        
       if(mtype==2)
        {
			if (document.all("txtlogonPwd").value == "***..." && ishaslogoninputPwd==false)
				document.all("txtlogonPwd").value = "";
			ishaslogoninputPwd=true;	
        }
     }
     
     function cklogonmyform()
     {
         var logonUser=document.logonmyform.txtlogonUser.value;
         var logonPwd=document.logonmyform.txtlogonPwd.value;
         
         if(ishaslogoninputUser==false || logonUser=="")
         {
             window.alert("请输入用户名！");
             document.logonmyform.txtlogonUser.focus();
             return false;
         }
         
         if(ishaslogoninputPwd==false || logonPwd=="")
         {
             window.alert("请输入密码！");
             document.logonmyform.txtlogonPwd.focus();
             return false;
         }
         return true;       
     }  
