function CheckLogin()
{
    if(!CheckIsNull($("txtUserName").value))
   {
        alert("用户名称不能为空！");
   } 
   else if(!CheckIsNull($("txtPassWord").value))
   {
        alert("用户密码不能为空！");
   }
   else if(!CheckIsNull($("txtCheckCode").value))
   {
        alert("验证代码不能为空！");
   }
   else if(!Filter("txtUserName"))
   {
        alert("用户名称中含有特殊字符！");
        $("txtUserName").value="";
   }
   else
   {
        return true;
   }
   return false;
}
function CheckRegImage()
{
    $("CheckImage").src="../GetMes/CheckImage.aspx?id=" + Math.random();
}

//检测用户取回密码信息
function CheckPassReBack()
{
    if(!CheckIsNull($("txtUserName").value))
   {
        alert("用户名称不能为空！");
   } 
   else if(!CheckIsNull($("txtMail").value))
   {
        alert("用户邮箱不能为空！");
   } 
   else if(!CheckIsNull($("txtAnswer").value))
   {
        alert("问题答案不能为空！");
   }
   else if(!CheckIsNull($("txtCheckCode").value))
   {
        alert("验证代码不能为空！");
   }
   else if(!Filter("txtUserName"))
   {
        alert("用户名称中含有特殊字符！");
        $("txtUserName").value="";
   }
   else
   {
        return true;
   }
   return false;
}
 window.onload=function()
                        {
                           var getValue=GetQueryString("logoClass");
                           if(getValue!=null&&getValue!="") 
                           $("UserClass").value=getValue;
                            if(self!=top)
                            {top.location.href='UserLogin.aspx';}
                        } 