if(GetCookie("CK_logintype")!=null&&GetCookie("CK_logintype")!=""&&GetCookie("CK_logintype").indexOf(",")!=-1){var strs = GetCookie("CK_logintype").split(",");dosel(strs[0],strs[1],strs[2]);}

function doshowsel(){if(document.getElementById("id_self_select_options").style.display=="none")document.getElementById("id_self_select_options").style.display="";else document.getElementById("id_self_select_options").style.display="none";}
function dosel(logintypevalue,logintypename,tiptypename){document.getElementById("logintype").value=logintypevalue;SetCookie("CK_logintype",logintypevalue+","+logintypename+","+tiptypename,1);document.getElementById("id_self_select_title").innerHTML=logintypename;document.getElementById("id_self_select_options").style.display="none";if(document.getElementById("tb_login_u").value.indexOf("请输入")!=-1){document.getElementById("tb_login_u").value=tiptypename;}}
function showpwd(obj1){document.getElementById("tb_login_p").className="self_inp_on";document.getElementById("tb_login_p_copy").style.display="none";document.getElementById("tb_login_p").style.display="";if(obj1==1){document.getElementById("tb_login_p").focus();}}
function dologin(){if(document.getElementById("logintype").value==""){alert("请选择登录方式");return false;}if(document.getElementById("tb_login_u").value==""||document.getElementById("tb_login_u").value=="请输入用户帐号"||document.getElementById("tb_login_u").value=="请输入用户名"||document.getElementById("tb_login_u").value=="请输入手机号"||document.getElementById("tb_login_u").value=="请输入邮箱"||document.getElementById("tb_login_u").value=="请输入QQ号"){alert("请输入用户帐号！");document.getElementById("tb_login_u").focus();return false;}else if(document.getElementById("tb_login_p").value==""){showpwd(1);alert("请输入用户密码！");document.getElementById("tb_login_p").focus();return false;}}   
function killErrors(){return true;}window.onerror = killErrors;document.onkeydown = function(e){var theEvent=window.event||e;var keyNum=theEvent.keyCode||theEvent.which;if(keyNum==9){return false;/*showpwd(0);*/}}
function TabPwd(e){var theEvent=window.event||e;var keyNum=theEvent.keyCode||theEvent.which;if(keyNum==9)showpwd(1);}

function findp(email){
if(email==""||email.indexOf("请输入")!=-1)alert("请在用户帐号处输入您的管理员邮箱！");
else{
if (!(/[_a-zA-Z\d\-\.]+@[_a-zA-Z\d\-]+(\.[_a-zA-Z\d\-]+)+$/.test(email)))alert("请输入正确的邮箱！");
else{
ajax("get",location.href.substring(0,location.href.indexOf(".aspx")+5)+"?act=ajax&email="+escape(email)+"&rd="+Math.random(),"",function OnHandler(){if(xmlHttp.readyState == 4){alert(xmlHttp.responseText);}});
}}}

function theDo1(){var s = navigator.userAgent;if (s.indexOf('MSIE')!=-1){s = s.substr(s.indexOf('MSIE') + 5,1);if (s==6){window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight);window.outerWidth=screen.availWidth;window.outerHeight=screen.availHeight;}}}theDo1();