/** PTNovelSearch-v4.1.2 LPPL License By http://www.ptcms.com/ */
 ;function checkloginname(){return""==$login_name.val()||"用户名"==$login_name.val()?($login_name.val("用户名"),$login_name.parent().next().show(),!1):($login_name.parent().next().hide(),!0)}function checkloginpwd(){return""==$login_psw.val()||"你的账号密码"==$login_psw.val()?($login_psw.val("你的账号密码"),$login_psw.parent().next().show(),!1):($login_psw.parent().next().hide(),!0)}function checkregname(){var e=/^\w*[u4e00-u9fa5]+\w*$/;return""==$register_nm.val()||"账号名，5~16位字符"==$register_nm.val()?($register_nm.parent().next().html("账号名为5-16位字符，由英文、数字组成，不能全数字"),$register_nm.parent().next().show(),!1):e.test($register_nm.val())?isNaN($register_nm.val())?$register_nm.val().length<5||$register_nm.val().length>16?($register_nm.parent().next().html("账号名为5-16位字符，由英文、数字组成，不能全数字"),$register_nm.parent().next().show(),!1):($register_nm.parent().next().html("输入正确"),$register_nm.parent().next().show(),!0):($register_nm.parent().next().html("不能全数字哦"),$register_nm.parent().next().show(),!1):($register_nm.parent().next().html("不能有中文字符哦"),$register_nm.parent().next().show(),!1)}function checkmobile(){return $register_moble_nm.val().match(/^1[3|4|5|8][0-9]\d{4,8}$/)?($register_moble_nm.parent().parent().next().hide(),!0):($register_moble_nm.parent().parent().next().html("手机号码格式不正确！请重新输入！"),$register_moble_nm.parent().parent().next().show(),!1)}function checkregpwd(){return""==$register_psw.val()||"账号密码"==$register_psw.val()?($register_psw.val("账号密码"),$register_psw.parent().next().show(),!1):($register_psw.parent().next().hide(),!0)}function checkregrepwd(){return""==$register_repsw.val()||"再次输入密码"==$register_repsw.val()?($register_repsw.val("再次输入密码"),$register_repsw.parent().next().html("请再次输入密码"),$register_repsw.parent().next().show(),!1):$register_repsw.val()!=$register_psw.val()?($register_repsw.parent().next().html("两次输入的密码不一致！"),$register_repsw.parent().next().show(),!1):($register_repsw.parent().next().hide(),!0)}var $login_name=$(".login_nm"),$login_psw=$(".login_psw"),$login_bto=$(".login_bto"),$reg_bto=$(".reg_bto"),$register_nm=$(".register_nm"),$register_psw=$(".register_psw"),$register_repsw=$(".register_repsw");$login_name.focus(function(){"用户名"==$login_name.val()&&$login_name.val("")}),$login_name.blur(function(){checkloginname()}),$login_psw.focus(function(){"你的账号密码"==$login_psw.val()&&$login_psw.val("")}),$login_psw.blur(function(){checkloginpwd()}),$login_bto.click(function(){return!(!checkloginname()||!checkloginpwd())&&void document.form_login.submit()}),$reg_bto.click(function(){return!!(checkregname()&&checkregpwd()&&checkregrepwd())&&void document.form_reg.submit()}),$register_psw.focus(function(){"账号密码"==$register_psw.val()&&$register_psw.val("")}),$register_psw.blur(function(){checkregpwd()}),$register_repsw.focus(function(){"再次输入密码"==$register_repsw.val()&&$register_repsw.val("")}),$register_repsw.blur(function(){checkregrepwd()}),$register_nm.focus(function(){"账号名，5~16位字符"==$register_nm.val()&&($register_nm.val(""),$(this).parent().next().show())}),$register_nm.blur(function(){checkregname()});