// nProtect setCookie ÇÔ¼ö ¼³Á¤ function setCookie( name, value, expiredays ) { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" } // nProtect getCookie ÇÔ¼ö ¼³Á¤ function getCookie( name ) { var nameOfCookie = name + "="; var x = 0; while ( x <= document.cookie.length ) { var y = (x+nameOfCookie.length); if ( document.cookie.substring( x, y ) == nameOfCookie ) { if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) endOfCookie = document.cookie.length; return unescape( document.cookie.substring( y, endOfCookie ) ); } x = document.cookie.indexOf( " ", x ) + 1; if ( x == 0 ) break; } return ""; } // ¹öưÀ» ¼±ÅÃÇßÀ¸¸é ¹Ý´ëÀÛµ¿À» ÇÒ¼öÀÖ°Ô // À̹ÌÁö ¿Í ¼³Á¤°ªÀ» ¹Ý´ë·Î ¸¸µé¾îÁØ´Ù. function hacking(usechk) { if(hackchoice == 'on') { setCookie("nprotect", "done", 100000); //¹ðÅ· nprotect //parent.nprotect.location.replace("http://update.nprotect.net/nprotect/keb/kr_nprotect_1.html"); //2005.06.03º¯°æ parent.nprotect.location.replace("http://www.keb.co.kr/nProtect/open_nprotect.html"); document.images['hack_img'].src = "/fxportal/images/co/hacking_nocut.gif"; hackchoice = "off"; } else { setCookie("nprotect" , "none", 100000); //parent.nprotect.location.replace("http://update.nprotect.net/nprotect/keb/kr_nprotect_3.html"); parent.nprotect.location.replace("http://www.keb.co.kr/nProtect/close_nprotect.html"); document.images['hack_img'].src = "/fxportal/images/co/hacking_cut.gif"; hackchoice = "on"; } }