document.write(""); var theForm, nLoginType, nIDState, nLoginFailCnt, nLoginErrCode, nThisYear; var strTargetFName = 'ifrm_Member_h'; // ½ÇÇà iframe À̸§ var strSSOLoginURL = ''; var IsLoginIng = 0; var nKeyCode_BackSpace = 8, nKeyCode_Tab = 9, nKeyCode_Enter = 13; //document.onkeydown = f_PressKeySubmit; function f_PressKeySubmit() { if(aosProcessCheck()){ var aosIsprotecting = aos_isprotecting("40"); if(aosIsprotecting == 1){ aos_copy_to_form( "fomLogin_h" ); aos_copy_to_form( "fomLogin" ); } } if(typeof(theForm) == 'undefined') { f_formInit(); } if ( event.keyCode == nKeyCode_Enter ) { f_Submit(); return false; } } function f_Submit() { if(IsLoginIng == 1) { alert('·Î±×ÀΠó¸®ÁßÀÔ´Ï´Ù.\r\nÀá½Ã¸¸ ±â´Ù·ÁÁֽʽÿÀ.'); } else { if(f_chkForm()) { f_LoginConv(); } } } function f_GoSSO() { theForm.method = 'post' theForm.target = '_self'; theForm.action = strSSOLoginURL.replace("http://", "https://"); theForm.submit(); } function f_SetLoginIng() { IsLoginIng = 1; } function f_formInit() { theForm = document.fomLogin_h; if(aosProcessCheck()){ var aosIsprotecting = aos_isprotecting("40"); if(aosIsprotecting == 1){ aos_copy_to_form( theForm ); } } strSSOLoginURL = theForm.action; nLoginType = Number(theForm.l_type.value); nThisYear = Number(theForm.l_year.value); nLoginFailCnt = theForm.l_failcnt.value; nLoginErrCode = theForm.l_errcode.value; if(nLoginErrCode != '' && theForm.l_id.value != '') { theForm.put_id.value = unescape(theForm.l_id.value) theForm.put_id.focus(); theForm.put_pwd.focus(); } else { theForm.put_id.focus(); } if(nLoginType >= 100) { nIDState = Number(theForm.l_idstate.value); //if(nIDState >= 20) { //f_setDisplay(document.all['l_putssn'], 'block'); //} else { f_makOption('fomLogin_h', '¼±ÅÃ', 'put_bDay1', '', nThisYear - 90, nThisYear-4) f_makOption('fomLogin_h', '¼±ÅÃ', 'put_bDay2', '', 1, 12) f_makOption('fomLogin_h', '¼±ÅÃ', 'put_bDay3', '', 1, 31) //f_setDisplay(document.all['l_putbDay'], 'block'); //} //f_setDisplay(document.all['l_putname'], 'block'); } else { if(nLoginFailCnt == '9') { openWinN('/Login/NoticePop.asp','', 400, 525, 0) } } } function f_LoginConv() { if(aosProcessCheck()){ var aosIsprotecting = aos_isprotecting("40"); if(aosIsprotecting == 1){ aos_copy_to_form(theForm); } } theForm.l_id.value = theForm.put_id.value; theForm.l_pwd.value = theForm.put_pwd.value; if(nLoginType >= 100) { theForm.l_name.value = theForm.put_name.value; theForm.l_unlockid.value = theForm.put_id.value; theForm.l_unlockname.value = theForm.put_name.value; } f_InputDisabled(theForm, true); f_SetLoginIng(); f_GoSSO(); if(aosProcessCheck()){ aos_stop(); } } function f_chkForm() { if(typeof(theForm) == 'undefined') { f_formInit(); } var strBirthDate = ''; if(!check_space(theForm.put_id.value)) { alert('¾ÆÀ̵𸦠ÀÔ·ÂÇØÁֽʽÿÀ.'); theForm.put_id.focus(); return false; } if(!check_space(theForm.put_pwd.value)) { alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁֽʽÿÀ.'); theForm.put_pwd.focus(); return false; } if(nLoginType >= 100) { if(!check_space(theForm.put_name.value) || theForm.put_name.value.length < 2) { alert('À̸§À» ÀÔ·ÂÇØÁֽʽÿÀ.'); theForm.put_name.focus(); return false; } /*if(nIDState >= 20) { if(!check_space(theForm.put_ssn1.value)) { alert('Áֹεî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁֽʽÿÀ.'); theForm.put_ssn1.focus(); return false; } if(!check_space(theForm.put_ssn2.value)) { alert('Áֹεî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁֽʽÿÀ.'); theForm.put_ssn2.focus(); return false; } strBirthDate = theForm.put_ssn1.value + theForm.put_ssn2.value; } else {*/ strBirthDate = f_getBirthDay(theForm.put_bDay1, theForm.put_bDay2, theForm.put_bDay3); var strGender = theForm.l_gender.value; if(strBirthDate == '') { alert("»ý³â¿ùÀÏÀ» Á¤È®ÇÏ°Ô ÀÔ·ÂÇØÁֽʽÿÀ."); theForm.put_bDay1.focus(); return false; } strBirthDate = strBirthDate.replace(/-/g,''); strBirthDate = strBirthDate.substr(2, 6) + strGender + '000000'; //} theForm.l_ssn.value = strBirthDate; } return true; } /* 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('tooltip'); // Upper case letters are seen without depressing the Shift key, therefore Caps Lock is on } else if ( ( myKeyCode >= 65 && myKeyCode <= 90 ) && !myShiftKey ) { Caps_DivShow('tooltip'); // Lower case letters are seen while depressing the Shift key, therefore Caps Lock is on } else if ( ( myKeyCode >= 97 && myKeyCode <= 122 ) && myShiftKey ) { Caps_DivShow('tooltip'); } else { Caps_DivHide('tooltip'); } } /* 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 aosProcessCheck(){ var aosProcess = document.getElementById("MKD25"); if(aosProcess == null){ return false; }else{ return true; } } /* SecureKeyboard Check */ f_formInit();