﻿
<!--
function addPhotoCat(url,ts,w,h)
{
	var pop=new Popup({ contentType:1, isReloadOnClose:false, width:w, height:h });
		pop.setContent("title",ts);
		pop.setContent("contentUrl",url);
		pop.build();
		pop.show();
	
	return false;
}
function alertPop(tit,con)
{
	var pop=new Popup({ contentType:4,isReloadOnClose:false,width:340,height:80});
	pop.setContent("title",tit);
	pop.setContent("alertCon",con);
	pop.build();
	pop.show();
}
 
document.write("<style type=\"text/css\">"); 
document.write("#mask{ position:absolute; top:0; left:0; width:100%; height:expression(body.scrollHeight); background:#666; filter:ALPHA(opacity=60); z-index:1; visibility:hidden}");
document.write("</style>");

     
    //键盘上的回车事件
    function  EnterGo()   
  {   
      if(event.keyCode==13)
      {
        formsumbit('userid','password',null);
      }     
  }   
   //调用键盘上的回车事件
  document.onkeydown=EnterGo
   //用户登录事件
    function formsumbit(Un,Pwd,keycode){
       if(ReplaceTrim($(Un).value)==""){
         //ErrorInfo('用户名/Email不能为空!',null,null,null,null,null);
         alertPop("错误提示","用户名/Email不能为空!");
         
         $(Un).focus();
         return  false;
       }
       if(ReplaceTrim($(Pwd).value)==""){
       //ErrorInfo('密码不能为空',null,null,null,null,null);
        alertPop("错误提示","密码不能为空!");
         $(Pwd).focus()
         return false;
       }
       var weburl=fpjs+"Wang_Include/XHTTP_File/login_Ajax.aspx?Username="+ $(Un).value+"&Pwd="+$(Pwd).value+"&Rnd="+Math.random();
       var xmlhttpLogin = createXmlhttp();
      xmlhttpLogin.open("get",weburl,true);
      xmlhttpLogin.onreadystatechange=function(){
         
        if(xmlhttpLogin.readyState==4){
              $("alxa_area").style.display="none";
              mask.style.visibility='hidden'
         var result=xmlhttpLogin.responseText;
         if(result=="0"){
           
             alertPop("错误提示","用户名与密码输入错误!");
               return false;
         }
         else if(result=="2")
         {

           alertPop("错误提示","当前系统配制错误!");
             return false;
         }
         else if(result=="4")
         {
 
             alertPop("错误提示","当前用户正在审核，请等待!");
             return false;
         }
         else if(result=="3")
         {
             alertPop("错误提示","当前客户端不支持Cookies操作,请开启客户端COOKIES!");
             return false;
         }
         else if(result=="1"){
            window.location.href=fpjs+'member/';
         }
         else{
             alertPop("错误提示","系统未知错误!");
             return false;     
         }
        }
        else
        {
           $("alxa_area").style.display="";
           mask.style.visibility='visible'
        }
       
      
      }
      xmlhttpLogin.send("");   
    }





document.write("<div id=\"alxa_area\" style=\"display:none; z-index:8;position:absolute;top:50%;left:35%;\"><img src=\""+fpjs+"images/loading.gif\"/><span style=\"color:#FFFFFF\">请稍等,正在加载中...</span></div>");
document.write("<div id=\"mask\" ></div>");
document.write("<DIV id=\"fullscreenad\" style=\"DISPLAY: none\"></DIV>");


//-->