//function fn_start_idfocus(){ // // document.login_form.userid.focus(); //} // //window.attachEvent('onload',fn_start_idfocus); function f_checkIsZenkaku(value) { var arrtemp = new Array; var j; j = 0; for (var i = 0; i < value.length; i++) { var c = value.charCodeAt(i); arrtemp[j] = value.substring(j,j+1); j++; /* if(i==0&&c==45){ alert('Error'); return false; } */ } document.rform.arr.value = arrtemp; return true; } //function login_focus(){ // objForm.userid.focus(); //} //window.attachEvent('onload',login_focus); function f_loginCheck(f) { //var f=document.forms('rform'); pDest = top.location.href; // var returnUrl = encodeBase64(dest ? dest : top.location.href); var returnUrl = encodeBase64(pDest ? pDest : NG_DOMAIN_WWW); var idReplace = f.userid.value.replace(/[^a-zA-Z0-9_\-]/gi,""); var idLength = f.userid.value.length; var pwReplace = f.pw.value.replace(/[^a-zA-Z0-9]/gi,""); var pwLength = f.pw.value.length; // var returnUrl = encodeBase64(f.rtnURL.value ? f.rtnURL.value : NG_DOMAIN_WWW); f.dest.value = returnUrl; // alert(f); // alert(f.userid.value); // alert(f.password.value); //로그인은 가능. if(!f.userid.value.trim()) { error("Please enter your ID."); f.userid.focus(); return false; } if(idLength < 4 || idLength > 12) { error("ID should be between 4-12 characters"); f.userid.focus(); return false; } if(f.userid.value != idReplace) { error("ID should be between 4-12 characters and may contain only a-z, 0-9 and '_' or '-'."); f.userid.focus(); return false; } if(!f.pw.value.trim()) { error("Please enter your password."); f.pw.focus(); return false; } if(f.pw.value != pwReplace) { error("Certain symbols may not be used in creating the password."); f.pw.focus(); return false; } /* When a page does not completely open in IE, IOVATION cannot detect DEVICEID */ if(isIE()){ if(document.readyState == 'complete'){ return true; }else{ return false; } } return true; //f.target = 'hiddenFrame'; //f.action = "loginExe.php"; //f.action = "loginExe.php?rtnURL="+ returnUrl; //alert(f.target); /////return true; //alert(1); } function f_couponPage() { document.location.href = 'http://www.netgame.com/account/coupon.php'; } function f_pageOnload(){ try { document.getElementsByName('userid').focus(); //document.loginForm.userid.focus(); } catch(ex) { // alert(ex); } } //window.attachEvent( 'onload',f_pageOnload); //window.onload = f_pageOnload;