function showMsg(b){var a=$("errorMessage");a.innerHTML=b;a.style.display="block"}function hideMsg(){$("errorMessage").style.display="none"}function strlen(c){var a=0;for(var b=0;b<c.length;b++){a+=(c.charCodeAt(b)>255)?2:1}return a}jQuery(function(){$("loginForm").onsubmit=function(){var a=$("nickname").value;if(strlen(a)<4||strlen(a)>50){showMsg("请填写有效的昵称");$("nickname").focus();return false}if(/^\s*$/.test($("password").value)){showMsg("您还没有填写密码");$("password").focus();return false}return true};$("password").onkeypress=function(a){if(XN.EVENT.isCapsLockOn(a||window.event)){showMsg("大写锁定开启")}else{hideMsg()}};$("nickname").focus();$("nickname").select()});function addHomePage(a){if(!!(window.attachEvent&&!window.opera)){document.body.style.behavior="url(#default#homepage)";document.body.setHomePage(a)}else{if(window.clipboardData&&clipboardData.setData){clipboardData.setData("text",a)}else{div=document.createElement("div");document.body.appendChild(div);div.innerHTML='<embed src="${applicationScope.urlStatic}/swf/clipboard.swf" FlashVars="clipboard='+encodeURIComponent(a)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>'
}alert("网址已经拷贝到剪切板,请您打开浏览器的选项,\n把地址粘到主页选项中即可~")}return true};