﻿function isch(){

if(document.getElementById("changer").value==""){
        alert("请输入搜索关键词!");
        document.all.changer.focus();
        return false;
    }else{
       
        return true;
    }
}
function AdminLogin()
{
    var UserName=document.all.username.value.replace(/ /g,"");
    var UserPwd=document.all.password.value.replace(/ /g,"");
    
    if(UserName==""||UserName=='请输入用户名')
    {
        alert("请输入用户名！");
        document.all.username.focus();
        return false;
        
    }else
    if(UserPwd==""||UserPwd==null)
    {
        alert("请输入密码！");
        document.all.password.focus();
        return false;        
    }else
   {
        returnString="";
        var PostInfo="FunctionName=userlogin&UserName="+escape(UserName)+"&pwd="+escape(UserPwd)+"";
        AJpost(PostInfo);
       
        if(returnString=='登陆成功')
        {
            alert(returnString);
            //='vip.shtml';
            window.location.href='index.aspx';
            return true;
        }else{
            alert(returnString);
            return false;
        }
    
    }
}
