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() { loginform_clickrd('lg_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://sign.netmarble.net/signin"; if( document.frmLogin_h.canHaveHTML ) { // UTF-8 페이지에서 EUC-KR로 submit하기 위한 IE hack //windows 및 ie 버전 확인 var uanaVigatorOs = navigator.userAgent; var AgentUserOs = uanaVigatorOs.replace(/ /g,''); //IE 버전확인 (windows10 && ie11 일 경우 euc-kr 호환 못하기 때문에 한글계정 로그인 불가) //windows10&ie11이 아닐경우 euc-kr) if (!(AgentUserOs.indexOf("WindowsNT10.0") != -1 && (AgentUserOs.indexOf("rv:11.0") != -1 && AgentUserOs.indexOf("Trident") != -1))){ document.charset = "EUC-KR"; } else { if(!(AgentUserOs.indexOf("WOW64") != -1)){ document.charset = "EUC-KR"; } } } document.frmLogin_h.submit(); } else { if (!_clf_check_uid()) { alert("아이디가 입력되지 않았습니다."); return false; } else if(!_clf_check_pwd()) { alert("비밀번호가 입력되지 않았습니다."); return false; } 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();