/*!
 *===============================================================
 * MapKonest－맵코네스트／コネスト韓国地図／KONEST韩国地图
 *===============================================================
 */
function MM_reloadPage(init){if(init==true){with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage}}}else{if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH){location.reload()}}}MM_reloadPage(true);function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function na_page_width(){return(navigator.appName.indexOf("Netscape",0)!=-1)?innerWidth:document.body.clientWidth}function na_page_height(){return(navigator.appName.indexOf("Netscape",0)!=-1)?innerHeight:document.body.clientHeight}function wppCenterWindow(a,c,b){var d,e;var f="width="+a+",height="+c;if(b){d=(screen.width-a)/2;e=(screen.height-c)/2}else{d=window.screenLeft+(na_page_width()-a)/2;e=window.screenTop+(na_page_height()-c)/2}f+=",left="+d+",top="+e;return f}function wppOpenWindow(a,k,i,b,g,e,d){var c="width="+k+",height="+i+",scrollbars="+(b?1:0)+",resizable="+(g?1:0);if(!isUndefined(d)){c+=","+d}var j="";if(e){j=e}var f=window.open(a,j,c);if(f){f.opener=self;f.focus()}return(f)}function wppResizeWindow(a,b){window.resizeTo(a,b)}function getCookie(c){var b=c+"=";var a=0;while(a<=document.cookie.length){var d=(a+b.length);if(document.cookie.substring(a,d)==b){if((endOfCookie=document.cookie.indexOf(";",d))==-1){endOfCookie=document.cookie.length}return unescape(document.cookie.substring(d,endOfCookie))}a=document.cookie.indexOf(" ",a)+1;if(a==0){break}}return""}function setCookie(c,e){var h=setCookie.arguments.length;var a=setCookie.arguments;var b=(h>2)?a[2]:null;var g=(h>3)?a[3]:null;var d=(h>4)?a[4]:null;var f=(h>5)?a[5]:false;document.cookie=c+"="+escape(e)+((b==null)?"":("; expire="+b.toGMTString()))+((g==null)?"":("; path="+g))+((d==null)?"":("; domain="+d))+((f==true)?"; secure":"")}function setStatus(a){window.status=(a==""?" ":a);return true}Number.prototype.roundNumber=function(a){var b=Math.pow(10,a);var c=Math.round(this.valueOf()*b);return c/b};Number.prototype.commaNumber=function(){var b=this.toString();var a=/(-?[0-9]+)([0-9]{3})/;while(a.test(b)){b=b.replace(a,"$1,$2")}return b};Number.prototype.zeroNumber=function(a){var b=this.toString();if(b.length>=a){return b}return"0".repeat(a-b.length)+b};Number.prototype.roundNumber=function(b){if(b>=0){return parseFloat(this.toFixed(b))}b=Math.pow(10,b);var a=Math.round(this*b)/b;return parseFloat(a.toFixed(0))};function roundXL(c,b){if(b>=0){return parseFloat(c.toFixed(b))}b=Math.pow(10,b);var a=Math.round(c*b)/b;return parseFloat(a.toFixed(0))}function evtGetKeyCode(a){return(window.event?window.event.keyCode:a.which)}function evtCheckNumKey(a){var b=evtGetKeyCode(a);if(b==null||b==0||b==8||b==9||b==13||b==27||b==45){return true}if(b<48||b>57){alert(WPPLang.chknumkey);return false}return true}function evtCheckSignNumKey(a){var b=evtGetKeyCode(a);if(b==null||b==0||b==8||b==9||b==13||b==27||b==45){return true}if(b<48||b>57){alert(WPPLang.chknumkey);return false}return true}function evtCRFunc(evt,func){var kc=evtGetKeyCode(evt);if(kc==13){eval(func);return false}return true}function evtCheckAsignedKey(a,d){var b=evtGetKeyCode(a);if(b==null||b==0||b==8||b==9||b==13||b==27||b==45){return true}var c=String.fromCharCode(event.keyCode);if(d.indexOf(c)<0){alert(WPPLang.chkasignedkey+d);return false}return true}function countChecked(elem){var tot=0;if(eval(elem)){for(var i=0;i<elem.length;i++){if(elem[i].checked){tot++}}}return tot}function checkFormText(a,c,b){if(a.value==c){alert(b);a.focus();return false}return true}function checkFormSelect(a,c,b){if(a.selectedIndex==c){alert(b);a.focus();return false}return true}function checkValidDate(c){if(!(c.value.length==10||c.value.length==8)){return false}var b=c.value.replace(/-/g,"");var e=b.substr(0,4);var d=b.substr(4,2)-1;var f=b.substr(6,2);var a=new Date(e,d,f);if(a.getFullYear()!=e||a.getMonth()!=d||a.getDate()!=f){return false}return true}function getCheckedValue(b){for(var a=0;a<b.length;a++){if(b[a].checked){return b[a].value}}return""}function getSelectValue(a){return a[a.selectedIndex].value}function getSelectText(a){return a[a.selectedIndex].text}function goSelectbox(b,e,a){var d=-1;for(var c=0;c<b.length;c++){if(e==""){if(b[c].text==a){d=c;break}}else{if(b[c].value==e){d=c;break}}}if(d>=0){b.selectedIndex=d}}function goSelectValue(a,b){goSelectbox(a,b,"")}function goSelectText(b,a){goSelectbox(b,"",a)}function checkSelect(b,c,a){if(c==""){if(b[b.selectedIndex].text==a){return true}}else{if(b[b.selectedIndex].value==c){return true}}return false}function checkSelectValue(a,b){return checkSelect(a,b,"")}function checkSelectText(b,a){return checkSelect(b,"",a)}function trimSelectList(a,b){b=setUndefined(b,1);a.selectedIndex=0;a.length=b}function isChecked(a){return a.checked}Function.prototype.setDefaults=function(c){for(var b=0,a=1;a<arguments.length;b++,a++){if(typeof origArgs[b]=="undefined"){c[b]=arguments[a]}}};function setUndefined(a,b){return(typeof a=="undefined"?b:a)}function isUndefined(a){return(typeof a=="undefined")}function URLEncode(e){var d={},b=[];var a=e.toString();var c=function(h,g,i){var f=[];f=i.split(h);return f.join(g)};d["'"]="%27";d["("]="%28";d[")"]="%29";d["*"]="%2A";d["~"]="%7E";d["!"]="%21";d["%20"]="+";a=encodeURIComponent(a);for(search in d){replace=d[search];a=c(search,replace,a)}return a.replace(/(\%([a-z0-9]{2}))/g,function(h,g,f){return"%"+f.toUpperCase()});return a}String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)|($\s*)/g,"")};String.prototype.ltrim=function(){return this.replace(/(^\s*)/g,"")};String.prototype.rtrim=function(){return this.replace(/(\s*$)|($\s*)/g,"")};String.prototype.replaceAll=function(c,b,a){a=setUndefined(a,true);if(a){return this.replace(new RegExp(c,"g"),b)}else{return this.replace(new RegExp(c,"gi"),b)}};String.prototype.repeat=function(a){var c="",b=this.toString();while(--a>=0){c+=b}return c};String.prototype.hLen=function(){var b=0;for(var a=0;a<this.length;a++){b+=(this.charCodeAt(a)>128?2:1)}return b};String.prototype.hLeft=function(a,c){c=setUndefined(c,"...");var e=0;for(var d=0;d<this.length;d++){e+=(this.charCodeAt(d)>128?2:1);if(e>a){var b=this.substring(0,d);if(c){b+=c}return b}}return this.toString()};if(!Array.prototype.forEach){Array.prototype.forEach=function(f,e){var h=this.length>>>0;if(typeof f!="function"){throw new TypeError}for(var g=0;g<h;g++){g in this&&f.call(e,this[g],g,this)}}}function wppRollMenu(id,after){eval(id+'.src="'+after+'";')}function wppRollMenuTrans(id,after){eval(id+".filters.blendTrans.stop();");eval(id+".filters.blendTrans.Apply();");eval(id+'.src="'+after+'";');eval(id+".filters.blendTrans.Play();")}function ByID(a){return document.getElementById(a)}function getServerFullName(){return(location.protocol+"//"+location.host)}var wppIsMSIE=false;var userBrowser=navigator.userAgent.toLowerCase();if(userBrowser.indexOf("msie")!=-1&&document.all){wppIsMSIE=true}else{wppIsMSIE=false}function copy2Clipboard(a){try{var c=document.getElementById(a);if(c){var d=document.body.createTextRange();d.moveToElementText(c);d.execCommand("Copy");alert(WPPLang.clipboardok)}}catch(b){alert(WPPLang.clipboardfail+"\n\n"+b)}}function checkEmail(b){var d=b.indexOf("@");var e=b.lastIndexOf(".");var a=b.indexOf(" ");var c=b.length-1;if((d<1)||(e<=d+1)||(e==c)||(a!=-1)){return false}return true}function getOuterHTML(b){var a=b.clone().wrapAll("<div/>").parent();return a.html()}if(typeof WPP_LANG=="undefined"){WPP_LANG=1}var WPPLang;if(WPP_LANG==1){WPPLang={chknumkey:"数字以外は入力できません。",chkasignedkey:"使用できない文字テキストが含まれています\n\n使用可能文字 : ",clipboardok:"データをクリップボードにコピーしました。\n\nWord, Excelなどのファイルに貼付(Ctrl+V)してください。",clipboardfail:"クリップボードにデータをコピーしている最中にエラーが発生しました。"}}else{if(WPP_LANG==2){WPPLang={chknumkey:"只能输入数字。",chkasignedkey:"您输入的字符错误。\n\n正确的字符 : ",clipboardok:"数据已复制到剪贴板。\n\n请复制(Ctrl+V)到Word等文档。",clipboardfail:"复制到剪贴板时发生错误。"}}else{if(WPP_LANG==3){WPPLang={chknumkey:"You can not enter non-numeric.",chkasignedkey:"The text contains illegal characters\n\ncharacters available : ",clipboardok:"Data copied to the clipboard.\n\nPlease past(Ctrl+V) in files such as word, excel.",clipboardfail:"An error occurred while copying data to the clipboard."}}else{WPPLang={chknumkey:"숫자만 입력할 수 있습니다.",chkasignedkey:"사용할 수 없는 문자가 입력되었습니다.\n\n사용 가능 문자 : ",clipboardok:"클립보드에 데이터가 복사되었습니다.\n\nWord, Excel등의 파일에 복사(Ctrl+V)해 주세요.",clipboardfail:"클립보드에 데이터를 복사하는 도중 에러가 발생했습니다."}}}};
