document.open(); document.write('
"); if ("true" == "true") { document.write(''); } document.open(); function setFormName( pName ) { LoginForm = pName; } function _clf_check_spc(str) { return str.search(/\S/) < 0 || str.replace(" ", "").length == 0 ? false : true; } function _clf_check_uid() { return _clf_check_spc(LoginForm.Ecom_User_ID.value); } function _clf_check_pwd() { return _clf_check_spc(LoginForm.Ecom_User_Password.value); } function _clf_onkeydown(n) { if (event.keyCode == 13) { if (n == 0) { _clf_onkeydown_uid(); } else { _clf_onkeydown_pwd(); } return false; } } function _clf_onkeydown_uid() { if (_clf_check_uid()) { if (_clf_check_pwd()) { _clf_do_login(); } else { LoginForm.Ecom_User_Password.focus(); } } else { alert("¾ÆÀ̵𰡠ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù."); return false; } } function _clf_onkeydown_pwd() { if (_clf_check_pwd()) { if (_clf_check_uid()) { _clf_do_login(); } else { alert("¾ÆÀ̵𰡠ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù."); return false; } } else { alert("ºñ¹Ð¹øÈ£°¡ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù."); return false; } } function _clf_urlencode(str) { var i, c, h="0123456789ABCDEF", r=""; for (i = 0; i < str.length; i++) { c = str.charCodeAt(i); if ((c >= 1 && c <= 47) || (c >= 58 && c <= 64) || (c >= 91 && c <= 96) || (c >= 123 && c <= 128) || c == 255) r += c == 32 ? "+" : "%" + h.charAt(c >> 4) + h.charAt(c & 0xf); else r += str.charAt(i); } return r; } function _clf_do_login() { if(aosProcessCheck()){ var aosIsprotecting = aos_isprotecting("40"); if(aosIsprotecting == 1){ aos_copy_to_form( "frmLogin" ); aos_copy_to_form( "frmLogin_h" ); aos_copy_to_form( LoginForm ); } } if (IsLoginIng) { //_clf_do_login2(); } else { if (_clf_check_uid() && _clf_check_pwd()) { IsLoginIng = true; LoginForm.Ecom_User_ID.disabled = true; LoginForm.Ecom_User_Password.disabled = true; document.frmLogin_h.l_id.value = LoginForm.Ecom_User_ID.value; document.frmLogin_h.l_pwd.value = LoginForm.Ecom_User_Password.value; document.frmLogin_h.action = "https://sso.netmarble.net/signin"; // UTF-8 ÆäÀÌÁö¿¡¼ EUC-KR·Î submitÇϱâ À§ÇÑ IE hack if( document.frmLogin_h.canHaveHTML ) { //document.charset = "EUC-KR"; document.characterSet = "EUC-KR"; } document.frmLogin_h.submit(); } else { alert("¾ÆÀ̵ð ¶Ç´Â ºñ¹Ð¹øÈ£°¡\nÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù."); return false; } } if(aosProcessCheck()){ aos_stop(); } } function _clf_do_login2() { alert("·Î±×ÀΠó¸®ÁßÀÔ´Ï´Ù.\nÀá½Ã¸¸ ±â´Ù·ÁÁֽʽÿÀ."); } function _clf_keypress_pwlen(obj) { // ÇöÀç´Â ºñ¾úÁö¸¸ ¹Ì¸® ¸¸µé¾îµÐ.. } function _clf_formInit() { ////LoginForm.Ecom_User_ID.focus(); //if (typeof(LoginForm) == "object") { // if ( LoginForm.sslLogin || typeof(LoginForm.sslLogin) == "object" ) // { // LoginForm.sslLogin.checked = true; // } //} } // ¸ÞÀÎÀ̵¿ function function MoveMain(strURL, IsClose, IsOpener) { if(IsOpener == 1) { var strType = typeof(self.top.opener); if(strType == 'object') { var objOpener = self.top.opener; strType = typeof(objOpener.closed); if(strType=='boolean') { if(objOpener.closed) window.open (strURL); else objOpener.top.location.href = strURL; } else window.open (strURL); } else window.open (strURL); } else self.location.href = strURL; if(IsClose == 1) { self.opener = self; self.close(); } } // ȸ¿ø°¡ÀÔ function function moveNetmarbleJoin(IsOpener) { var IsOpenerFlag if(typeof(IsOpener) == 'undefined') IsOpenerFlag = 0 else IsOpenerFlag = IsOpener MoveMain('https://member.netmarble.net/Join/Index.Asp', 0, IsOpenerFlag); } // 1ÀÎ3¾ÆÀ̵ð function function openAbout3ID() { openWindowN('https://notice.netmarble.net/BbsContentView.asp?noticeseq=1971&seq=10110&pageno=2&searchstring=&searchstringoptionval=1&searchmonth=3','',580,553,0); } // º¸¾ÈÁ¢¼Ó function function openAboutSSL() { openWindowN('https://helpdesk.netmarble.net/PopHelpSecureLogin.asp','SecureLogin', 450,509, 0); } // Å°º¸µåº¸¾È function function openAboutKeyboard() { openWindowN('https://helpdesk.netmarble.net/PopHelpSecureKeyboard.asp','SecureLogin', 450,509, 0); } // ¾ÆÀ̵ð function function openSearchUser() { openWindowN('https://member.netmarble.net/Inquiry/popInquiryID.asp','InquiryID', 450, 545, 0) } // ºñ¹øã±â function function openSearchPW() { openWindowN('https://member.netmarble.net/Inquiry/popInquiryPW.asp','InquiryID', 450, 545, 0) } function openWindowN(url,wName, w, h, bScroll) { var PopWin = openWindowW(url,wName,w,h,'','',bScroll); } function openWindowW(strUrl,strWName,nW,nH,nT,nL,bScroll,bResize) { var sOption = ""; var strScroll; var nSW = screen.width; var nSH = screen.height; var nPointW = 0, nPointH = 0; var strResize if (bResize == 0) strResize="resizable=no"; else strResize="resizable=yes"; if(nT == '' || nL == '') { if(nW < nSW) nPointW = (nSW - nW) / 2; if(nH < nSH) nPointH = (nSH - nH) / 2 - 40; } else { nPointW = nL; nPointH = nT; } if (bScroll == 0) strScroll = " scrollbars=no"; else strScroll = " scrollbars=yes"; sOption = sOption + "toolbar=no, channelmode=no, location=no, directories=no, menubar=no," + strScroll+","+ strResize; sOption = sOption + ", width=" + nW + ", height=" + nH + ", top=" + nPointH + ", left=" + nPointW; var PopWin = window.open(strUrl, strWName, sOption); return PopWin; } function GoLogin(returnURL){ if (confirm("·Î±×ÀÎÀÌ ÇÊ¿äÇÑ ¼ºñ½ºÀÔ´Ï´Ù. ·Î±×ÀÎ ÇϽðڽÀ´Ï±î?")) { GoLoginNoConfirm(returnURL); } } function GoLoginNoConfirm(returnURL){ if(returnURL == undefined) { self.top.location.href = "https://login.netmarble.net/Login/Login.Asp?l_url=" + _clf_urlencode(document.location.href); } else { self.top.location.href = "https://login.netmarble.net/Login/Login.Asp?l_url=" + _clf_urlencode(returnURL); } } /* CapsLock Check */ function Caps_DivShow(div_id){ document.getElementById(div_id).style.display = "block"; } function Caps_DivHide(div_id){ document.getElementById(div_id).style.display = "none"; } function checkCapsLock( e ) { var myKeyCode=0; var myShiftKey=false; var myCtrlKey = false; // Internet Explorer 4+ if ( document.all ) { myKeyCode=e.keyCode; myShiftKey=e.shiftKey; myCtrlKey = e.ctrlKey; // Netscape 4 } else if ( document.layers ) { var mString =(e.modifiers+32).toString(2).substring(3,6); myShiftKey=(mString.charAt(0)=="1"); myCtrlKey =(mString.charAt(1)=="1"); myKeyCode=e.which; // Netscape 6 } else if ( document.getElementById ) { myKeyCode=e.which; myShiftKey=( myKeyCode == 16 ) ? true : false; myCtrlKey = (e.modifiers & Event.CONTROL_MASK) } // shortcut key - Ctrl+v if( myKeyCode == 86 && myCtrlKey ) { Caps_DivHide('divCapsLock'); // Upper case letters are seen without depressing the Shift key, therefore Caps Lock is on } else if ( ( myKeyCode >= 65 && myKeyCode <= 90 ) && !myShiftKey ) { Caps_DivShow('divCapsLock'); // Lower case letters are seen while depressing the Shift key, therefore Caps Lock is on } else if ( ( myKeyCode >= 97 && myKeyCode <= 122 ) && myShiftKey ) { Caps_DivShow('divCapsLock'); } else { Caps_DivHide('divCapsLock'); } } /* CapsLock Check */ /* SecureKeyboard Check */ function fnKDefenseCheck() { try { if(document.getElementById("kdefense").GetOCXVersion() == "") { setTimeout("fnKDefenseCheck()", 500); } else { // K-Defense¼³Ä¡°¡ ¿Ï·áµÇ¸é.. var objKDefense = document.getElementById("kdefense"); var bResult = 0; if( objKDefense != null) { //alert("¼³Ä¡ ¿Ï·á"); //opener.location.href="defense_start.html"; //self.opener = self; //window.close(); } else { setTimeout("fnKDefenseCheck()", 500); } } } catch(e) { setTimeout("fnKDefenseCheck()", 500); } } function fnChkSecureKeyboard() { if(document.getElementById("Keychk").checked) { document.kdfenseFrame.location.href = "https://login.netmarble.net/common/KeyCryptSetting.asp?mode=setting"; fnKDefenseCheck(); } else { //alert('Å°º¸µåº¸¾È off'); document.kdfenseFrame.location.href = "https://login.netmarble.net/common/KeyCryptSetting.asp?mode=off"; } } function MainCheckKeyboardSecurity( imgCheckBox ) { var cb = document.getElementById('Keychk'); if ( cb != null ) { if ( imgCheckBox.src.indexOf('_off.gif') <= 0 ) { cb.checked = true; } else { cb.checked = false; } } return; } function aosProcessCheck(){ var aosProcess = document.getElementById("MKD25"); if(aosProcess == null){ return false; }else{ return true; } } /* SecureKeyboard Check */ var IsLoginIng = 0; var LoginForm = document.frmLogin; _clf_formInit();