var strOurDomain="nate.com";var strAgent=navigator.userAgent.toLowerCase();var bIE=(strAgent.indexOf("msie")!=-1);var bXP=(strAgent.indexOf("nt 5.1")!=-1);var bIE7=(strAgent.indexOf("msie 7.0")!=-1);var bSafari=(strAgent.indexOf("konqueror")!=-1||strAgent.indexOf("safari")!=-1);var bFirefox=(strAgent.indexOf("firefox")!=-1);var bOpera=(strAgent.indexOf("opera")>-1);document.write('<link rel="shortcut icon" href="/images/tong.ico">');function CommonInit(){if(!bFirefox){document.domain=strOurDomain}}function ResizeFrame(D,B,A){try{var K=window.frames[D];var G=K.document.body;var C=null;if(bIE){C=document.getElementById(D);G=(K.document.compatMode!="BackCompat"?K.document.documentElement:K.document.body)}else{C=document.getElementsByName(D)[0]}if(B==undefined||B==="both"||B==="height"){if(bIE){var E=G.scrollHeight+(G.offsetHeight-G.clientHeight);if(A!=undefined&&E<A[1]){E=A[1]}if(E>0){C.style.height=E}}else{var J=(C.contentDocument)?C.contentDocument:C.contentWindow.document;var F=J.body.appendChild(document.createElement("DIV"));F.style.clear="both";var I=F.offsetTop;F.parentNode.removeChild(F);if(A!=undefined&&I<A[1]){I=A[1]}C.style.height=I+"px"}}if(B==undefined||B==="both"||B==="width"){C.style.width=G.scrollWidth+(G.offsetWidth-G.clientWidth)}if(top!=self){try{if(B!=undefined){parent.ResizeFrame(self.name,B)}else{parent.ResizeFrame(self.name)}}catch(H){}}}catch(H){}}function ResizePopup(B,A){window.resizeTo(B+(bIE?10:6),A+50+(bXP?(bIE7?30:10):0))}var aryAsciiWidth=new Array(0,6,6,6,6,6,6,6,6,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,4,3,5,7,7,11,8,4,5,5,6,6,4,6,4,6,6,6,6,6,6,6,6,6,6,6,4,4,8,6,8,6,10,8,8,9,8,8,7,9,8,3,6,7,7,11,8,9,8,9,8,8,7,8,8,10,8,8,8,6,11,6,6,6,4,7,7,7,7,7,3,7,7,3,3,6,3,9,7,7,7,7,4,7,3,7,6,10,6,6,7,6,6,6,9);var aryAsciiBoldWidth=new Array(0,7,7,7,7,7,7,7,7,0,0,0,0,0,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,5,4,6,8,8,12,9,5,6,6,7,7,5,7,5,7,7,7,7,7,7,7,7,7,7,7,5,5,9,7,9,7,11,9,9,10,9,9,8,10,9,4,7,8,8,12,9,10,9,10,9,9,8,9,9,11,9,9,9,7,12,7,7,7,5,8,8,8,8,8,4,8,8,4,4,7,4,10,8,8,8,8,5,8,4,8,7,11,7,7,8,7,7,7,10);function GetPixelSizedText(B,D,C){var G="";var H=0;for(var A=0;A<B.length;A++){var I=_GetCharPixelWidth(B.charAt(A),C);if(H+I>D){break}H=H+I;G=G+B.charAt(A)}if(G!=B){if(H+(C?10:12)>D){var F=0;var E=G.length;for(var A=0;A<E;A++){F=F+_GetCharPixelWidth(G.charAt(E-1-A),C);if(H+(C?10:12)-F<=D){break}}G=G.substring(0,E-A-1)+(C?"..":"...")}else{G=G+(C?"..":"...")}}G=G.split("<").join("&lt;");return G}function _GetCharPixelWidth(C,B){var A=C.charCodeAt(0);if(A>126){return(B?13:12)}return(B?aryAsciiBoldWidth[A]:aryAsciiWidth[A])}function DrawPixelSizedText(B,A,C){B=B.split("&amp;").join("&").split("&quot;").join('"').split("\\;").join(";").split("&gt;").join(">").split("&lt;").join("<").split("&#39;").join("'");document.write(GetPixelSizedText(B,A,C))}function GetPixelSizeOfText(B,A,D){B=B.split("&amp;").join("&").split("&quot;").join('"').split("\\;").join(";").split("&gt;").join(">").split("&lt;").join("<").split("&#39;").join("'");if(A){B=GetPixelSizedText(B,A,D)}var F=0;for(var C=0;C<B.length;C++){var E=_GetCharPixelWidth(B.charAt(C),D);if(A&&F+E>A){break}F=F+E}return F}function CopyToClipboard(A){if(bIE){window.clipboardData.setData("Text",A)}else{if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(E){alert("Please change the user preferences [signed.applets.codebase_principal_support] as true in about:config.");return false}var F=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);if(!F){return false}F.data=A;var B=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!B){return false}B.addDataFlavor("text/unicode");B.setTransferData("text/unicode",F,A.length*2);var D=Components.interfaces.nsIClipboard;var C=Components.classes["@mozilla.org/widget/clipboard;1"].getService(D);if(!C){return false}C.setData(B,null,D.kGlobalClipboard)}}return true}function InsertStatisticsScript(A){document.write('<div><img src="http://stat.nate.com/stat/stat.tiff?cp_url=[tong_ndr.nate.com'+A+']" width=0 height=0 border=0></div>')}function InsertStatisticsScriptEtc(A){document.write('<div><img src="http://stat.nate.com/stat/stat.tiff?cp_url=[tong_ndr.nate.com'+A+']" width=0 height=0 border=0></div>')}function InsertStatisticsScriptNdrEtc(A){document.write('<div><img src="http://statetc.nate.com/stat/stat.tiff?cp_url=[tong_ndretc.nate.com'+A+']" width=0 height=0 border=0></div>')}function InsertStatisticsNdrLayer(A){imgStatistics=new Image();imgStatistics.src="http://stat.nate.com/stat/stat.tiff?cp_url=[tong_ndr.nate.com"+A+"]"}function InsertStatisticsNdrEtcLayer(A){imgStatistics=new Image();imgStatistics.src="http://statetc.nate.com/stat/stat.tiff?cp_url=[tong_ndretc.nate.com"+A+"]"}function CheckValidateChar(E){var B=E.value;var A="";var F=true;for(var C=0;C<B.length;C++){var D=B.charCodeAt(C);if(!(D==9||D==10||D==13||(D>=32&&D<=55295)||(D>=57344&&D<=65533)||(D>=65536&&D<=1114111))){var F=false}else{A=A+B.charAt(C)}}if(F==false){E.value=A}return F}function _CheckByteLength(B,A){var D=0;for(var C=0;C<B.length;C++){if(B.charCodeAt(C)>255){D+=2}else{D++}if(D>A){return false}}return true}function DeleteCookie(A,C,B){if(_GetCookieValue(A)){document.cookie=A+"="+((C)?"; path="+C:"")+((B)?"; domain="+B:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}function _GetCookieValue(A){var B=document.cookie.indexOf(A+"=");if(B!=-1){B=B+A.length+1;var C=document.cookie.indexOf(";",B);if(C==-1){C=document.cookie.length}return unescape(document.cookie.substring(B,C))}return null}function setCookie(C,E){var A=setCookie.arguments;var H=setCookie.arguments.length;var B=(2<H)?A[2]:null;var G=(3<H)?A[3]:null;var D=(4<H)?A[4]:null;var F=(5<H)?A[5]:false;document.cookie=C+"="+E+((B==null)?"":("; expires="+B.toGMTString()))+((G==null)?"":("; path="+G))+((D==null)?"":("; domain="+D))+((F==true)?"; secure":"")}function GoToLogin(A){self.location.href="/user/mlogin.vm?redirect_url="+A}function PopupLogin(A){window.open("/user/plogin.vm?mode=popup"+A,"plogin","status=yes,width=239,height=176,left=200,top=100")}function PopupJoinTong(A,B){var C="";if(B){C=B+C}alert("ÀÌ ±â´ÉÀº ³»ÅëÀÌ ÀÖ´Â È¸¿ø´Ô¸¸ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖÀ¸¸ç,\nÇöÀç Åë ¼­ºñ½º´Â Åë °³¼³ÀÌ Áß´ÜµÇ¾ú½À´Ï´Ù.\n¼­ºñ½º ÀÌ¿ë¿¡ ºÒÆíÀ» µå·Á ÁË¼ÛÇÕ´Ï´Ù.")}function ScrollToTop(A){var B=(A?top:self);B.scrollTo(0,0)}function CopyDetailUrl(A){InsertStatisticsNdrEtcLayer("/report/library/address");if(CopyToClipboard(A)){alert("¼±ÅÃÇÑ ÁÖ¼Ò°¡ Å¬¸³º¸µå¿¡ º¹»çµÇ¾ú½À´Ï´Ù.\nÀ¥ÁÖ¼ÒÃ¢ÀÌ³ª ¸Þ¸ðÀå¿¡ ºÙ¿©³Ö±â(Ctrl+V)ÇØ ÁÖ¼¼¿ä")}}function MyInsertAdjacentHTML(C,D,F){if(bIE){F.insertAdjacentHTML(C,D);return }if(bSafari){var A=document.createElement("DIV");document.body.appendChild(A);A.style.display="none";A.innerHTML=D;if(C.toLowerCase()=="beforebegin"){for(var B=0;B<A.childNodes.length;B++){F.parentNode.insertBefore(A.childNodes[B],F)}}else{if(C.toLowerCase()=="afterbegin"){for(var B=0;B<A.childNodes.length;B++){F.insertBefore(A.childNodes[B],F.firstChild)}}else{if(C.toLowerCase()=="beforeend"){for(var B=0;B<A.childNodes.length;B++){F.appendChild(A.childNodes[B])}}else{if(C.toLowerCase()=="afterend"){for(var B=0;B<A.childNodes.length;B++){F.parentNode.insertBefore(A.childNodes[B],F.nextSibling)}}}}}document.body.removeChild(A);return }var G=document.createRange();if(C.toLowerCase()=="beforebegin"){G.setStartBefore(F)}else{if(C.toLowerCase()=="afterbegin"){G.setStartAfter(F)}else{if(C.toLowerCase()=="beforeend"){G.setEndBefore(F)}else{if(C.toLowerCase()=="afterend"){G.setEndAfter(F)}else{return }}}}var E=G.createContextualFragment(D);F.parentNode.insertBefore(E,F)}function PopupAddNeighborBox(C,B,A){window.open("/boxitem/linkbox.do?action=createForm&_tongID="+C+"&_boxID="+B+"&_linkType="+A,"addneighborbox","scrollbars=yes,status=yes,width=306,height=220,left="+(window.screen.availWidth/2-153)+",top="+(window.screen.availHeight/2-95))}function PopupImageZoom(B){var A=window.open("/mytong/pop_image.vm?strImageUrl="+B,"","status=yes,resizable=yes,scrollbars=yes,width=100,height=100")}function getXMLDOMFromString(B){var A;if(bIE){A=new ActiveXObject("Microsoft.XMLDOM");A.async="false";A.loadXML(B)}else{var C=new DOMParser();A=C.parseFromString(B,"text/xml")}return A}