function deleteCookie ( cookieName ) { var expireDate = new Date(); var domainis = ".01consulting.co.kr"; //¾îÁ¦ ³¯Â¥¸¦ ÄíÅ° ¼Ò¸ê ³¯Â¥·Î ¼³Á¤ÇÑ´Ù. expireDate.setDate( expireDate.getDate() - 1 ); document.cookie = cookieName + "= " + "; expires=" + expireDate.toGMTString()+ "; domain=" + domainis + "; path=/"; } function logout_mem() { //·Î±×¾Æ¿ô ÇßÀ»¶§ ÀúÀåµÇ¾îÀÖ´Â ÄíÅ°¸¦ »èÁ¦½ÃŲ´Ù location.href = "https://pass.01consulting.co.kr/2025/m/logout/"; } function setCookie( name, value, expirehours ) { var todayDate = new Date(); var domainis = ".01consulting.co.kr"; todayDate.setHours( todayDate.getHours() + expirehours ); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + "; domain=" + domainis + ";"; } function getCookie( cookieName ) { var search = cookieName + "="; var cookie = document.cookie; // ÇöÀç ÄíÅ°°¡ Á¸ÀçÇÒ °æ¿ì if( cookie.length > 0 ) { // ÇØ´ç ÄíÅ°¸íÀÌ Á¸ÀçÇÏ´ÂÁö °Ë»öÇÑ ÈÄ Á¸ÀçÇϸé À§Ä¡¸¦ ¸®ÅÏ. startIndex = cookie.indexOf( cookieName ); // ¸¸¾à Á¸ÀçÇÑ´Ù¸é if( startIndex != -1 ) { // °ªÀ» ¾ò¾î³»±â À§ÇØ ½ÃÀÛ À妽º Á¶Àý startIndex += cookieName.length; // °ªÀ» ¾ò¾î³»±â À§ÇØ Á¾·á À妽º ÃßÃâ endIndex = cookie.indexOf( ";", startIndex ); // ¸¸¾à Á¾·á À妽º¸¦ ¸øã°Ô µÇ¸é ÄíÅ° Àüü±æÀÌ·Î ¼³Á¤ if( endIndex == -1) endIndex = cookie.length; // ÄíÅ°°ªÀ» ÃßÃâÇÏ¿© ¸®ÅÏ return unescape( cookie.substring( startIndex + 1, endIndex ) ); } else { // ÄíÅ° ³»¿¡ ÇØ´ç ÄíÅ°°¡ Á¸ÀçÇÏÁö ¾ÊÀ» °æ¿ì return false; } } else {// ÄíÅ° ÀÚü°¡ ¾øÀ» °æ¿ì return false; } } function Encrypt(theText) { //¸ð¹ÙÀÏ ·Î±×ÀÎ Á¤º¸ ¾Ïȣȭ output = new String; Temp = new Array(); Temp2 = new Array(); TextSize = theText.length; for (i = 0; i < TextSize; i++) { rnd = Math.round(Math.random() * 122) + 68; Temp[i] = theText.charCodeAt(i) + rnd; Temp2[i] = rnd; } for (i = 0; i < TextSize; i++) { output += String.fromCharCode(Temp[i], Temp2[i]); } return output; } /* function unEncrypt(theText) { //¸ð¹ÙÀÏ ·Î±×ÀÎ Á¤º¸ º¹È£È­ output = new String; Temp = new Array(); Temp2 = new Array(); TextSize = theText.length; for (i = 0; i < TextSize; i++) { Temp[i] = theText.charCodeAt(i); Temp2[i] = theText.charCodeAt(i + 1); } for (i = 0; i < TextSize; i = i+2) { output += String.fromCharCode(Temp[i] - Temp2[i]); } return output; } */ function auto_set_cookie ( ) { var auto_login = getCookie('AUTOLOGIN'); //ÀÚµ¿·Î±×ÀÎ ÄíÅ°°ª var IDKEY = getCookie('IDKEY'); //ÀÚµ¿·Î±×ÀÎ ÄíÅ°°ª var PWDKEY = getCookie('PWDKEY'); //ÀÚµ¿·Î±×ÀÎ ÄíÅ°°ª if ( auto_login == "Y" ) { //ÀÚµ¿·Î±×ÀÎÀÌ ¼³Á¤µÇ¾îÀÖÀ¸¸é ÄíÅ°¸¦ ÀÚµ¿À¸·Î ±¸¿öÁØ´Ù(½ºÅ©¸³Æ®·Î) //setCookie("AUTOLOGIN",auto_login,720); //setCookie("IDKEY",IDKEY,720); //setCookie("PWDKEY",PWDKEY,720); } } $(document).ready(function() { auto_set_cookie(); //ÆäÀÌÁö ¿Àǽà ÀÚµ¿À¸·Î ÄíÅ°¸¦ ±¸¿öÁÖ´Â ºÎºÐ $("#m_login").click(function(){ //¸ð¹ÙÀÏ¿¡¼­ ·Î±×ÀÎ ¹öưŬ¸¯½Ã È£Ãâ var auto_login = $(':input[id=keepid]:checkbox:checked').val(); //ÀÚµ¿·Î±×ÀÎ var uid = $("#uid").val(); var upw = $("#uid").val()+"_"+$("#upw").val(); var auto_pwd = MD5(upw); if ( auto_login == "Y" ) { //ÀÚµ¿·Î±×ÀÎÀÌ ¼³Á¤µÇ¾îÀÖÀ¸¸é ·Î±×ÀÎÇßÀ»¶§ ÄíÅ°¸¦ ±¸¿öÁØ´Ù //setCookie("AUTOLOGIN",auto_login,720); //setCookie("AUTO_ID",uid,720); //setCookie("AUTO_PWD",auto_pwd,720); } $("#g_login").submit(); }); $("#upw").on("keyup",function(key){ if(key.keyCode==13){ $("#m_login").click(); } }); });