//언어 쿠키값 받아오기 function language_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 onShowEnglish(){ fireCookie('rec_language','_en',30); alert("English has changed. Is valid for 30 days. Clicking again will remain 30 days."); top.location.href='http://0co.in'; return ""; } //일본어로 보이도록 하기 function onShowJapanese(){ fireCookie('rec_language','_jp',30); alert("日本語で変更されました。30日間有効です。 もう一度クリックすると30日間残ります。"); top.location.href='http://0co.in'; return ""; } //한글로 보이도록 하기 function onShowKorean(){ fireCookie('rec_language','_kr',30); alert("한국어로 변경되었습니다."); top.location.href='http://0co.in'; return ""; } // 쿠키 설정하기 function fireCookie( name, value, expiredays) { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays); document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + todayDate.toGMTString() + ';' return ""; }