/*************************************************************** 본 스크립트 파일에서 선언하는 함수는 반드시 'cm_'를 함수명 앞에 붙인다. ****************************************************************/ var IE = false ; if (window.navigator.appName.indexOf("Explorer") !=-1) { IE = true; } // 무료스킨 좌측2단의 경우. 포스트폭 사이지를 조절한다. var applyResizeContentWidth = false; // Iframe 내에서 호출하여 페이지 높이를 맞춘다. function cm_paperInit(minHeight) { var timeArray = new Array(200, 500, 1500, 3500, 7000, 12000, 20000); //alert("1_cm_paperInit, timeArray.length="+timeArray.length); for(var i=0; i < timeArray.length; i++) setTimeout('_cm_paperInit(\''+minHeight+'\')', timeArray[i]); if(self.name!=null && self.name=="papermain") { top.window.scrollTo(0,0); } } // Iframe 내에서 호출하여 페이지 높이를 맞춘다. // 최대 하위 3단까지만 리사이징을 하도록 한다. function _cm_paperInit(minHeight) { // alert("2_cm_paperInit"); if(minHeight==null) minHeight = 0; if (self.name!=null && self.name!="" && parent!=null && parent._cm_resizeIframe!=null) { parent._cm_resizeIframe(self.name, minHeight); } if (parent.name!=null && parent.name!="" && (parent.name=="papermain" || parent.name=="mainFrame") && parent.parent!=null && parent.parent._cm_resizeIframe!=null && parent.parent._cm_paperInit!=null) { parent.parent._cm_resizeIframe(parent.name, minHeight); } if (parent.parent.name!=null && parent.parent.name!="" && (parent.parent.name=="papermain" || parent.parent.name=="mainFrame") && parent.parent.parent!=null && parent.parent.parent._cm_resizeIframe!=null && parent.parent.parent._cm_paperInit!=null) { parent.parent.parent._cm_resizeIframe(parent.parent.name, minHeight); } } // 직접사용은 금함. cm_paperInit()를 사용할것. function _cm_resizeIframe(name, minHeight) { //alert("cm_resizeIframe, name="+name); if(minHeight==null) minHeight = 0; if(name==null || name=="") return; try { if (IE) var oBody = document.frames(name).document.body; else var oBody = document.getElementById(name).contentDocument.body; var oIFrame = document.getElementById(name); var frmWidth = oBody.scrollWidth;// + (oBody.offsetWidth - oBody.clientWidth); var frmHeight = oBody.scrollHeight;// + (oBody.offsetHeight - oBody.clientHeight); if(name=="papermain" || name=="mainFrame") { if(frmHeight >= 500) oIFrame.style.height = frmHeight; else oIFrame.style.height = 500; var oOpacityDiv = document.getElementById("opacityDiv"); if(oOpacityDiv!=null) { oOpacityDiv.style.height = parseInt(oIFrame.style.height) + 200; } } else { oIFrame.style.height = frmHeight; } if(applyResizeContentWidth) { if(frmWidth > 590) oIFrame.style.width = frmWidth; //else oIFrame.style.width = 590; } }catch (e) {} } // 외부 페이지를 Iframe으로 호출할 경우에 외부페이지에서 호출하기 위한 함수. function cm_paperInitExternal(name, minHeight) { //alert("cm_paperInitExternal, name="+name); var timeArray = new Array(200, 500, 1500, 3500, 7000, 12000, 20000); for(var i=0; i < timeArray.length; i++) { setTimeout('_cm_paperInitExternal(\''+name+'\',\''+minHeight+'\')', timeArray[i]); } } // Iframe 내에서 호출하여 페이지 높이를 맞춘다. // 최대 하위 3단까지만 리사이징을 하도록 한다. function _cm_paperInitExternal(name, minHeight) { if(minHeight==null) minHeight = 0; if (name!=null && name!='') { _cm_resizeIframe(name, minHeight); } if (self.name!=null && self.name!='' && (self.name=="papermain" || self.name=="mainFrame") && parent!=null && parent._cm_resizeIframe!=null) { parent._cm_resizeIframe(self.name, minHeight); } if (parent.name!=null && parent.name!='' && (parent.name=="papermain" || parent.name=="mainFrame") && parent.parent!=null && parent.parent._cm_resizeIframe!=null) { parent.parent._cm_resizeIframe(parent.name, minHeight); } } /* onLoad Handler */ LOAD_LIST = new Array(); function LH_create() { this.LIST = LOAD_LIST; this.add = LH_add; this.exec = LH_exec; } function LH_add(strExec) { LOAD_LIST[LOAD_LIST.length] = strExec; } function LH_exec() { var list_len = LOAD_LIST.length; for (var i = 0; i < list_len; i++) { try {eval(LOAD_LIST[i]); }catch(e){} } } function cm_imageZoom(url) { window.open("/common/util/imageZoom.jsp?url="+url,"imageZoom","scrollbars=no,width=100,height=100"); } //============================================================================ // 아래의 함수를 사용할 경우 연락바람. by jhhany. //============================================================================ function reSize() { var ParentFrame = papermain.document.body; var ContentFrame = document.all["papermain"]; ContentFrame.style.height = ParentFrame.scrollHeight + (ParentFrame.offsetHeight - ParentFrame.clientHeight) + 100; //ContentFrame.style.width = ParentFrame.scrollWidth + (ParentFrame.offsetWidth - ParentFrame.clientWidth); } function paperInit() { parent.reSize(); //parent.document.location.href = '#'; } function settop() { /* var topurl = document.location.href; if (topurl.indexOf('#') > 0) document.location.href = document.location.href; else document.location.href = document.location.href + '#';*/ window.scrollTo(0,0); } // 팝업 관련 함수 최용철 20050531 추가 function open_window(url, name, width, height, feature) { var oWnd; if (IE && width < window.screen.width && height < window.screen.height) { var windowX = Math.ceil( (window.screen.width - width) / 2 ); var windowY = Math.ceil( (window.screen.height - height) / 2 ); oWnd = window.open(url, name, feature+",width=" + width +",height=" + height+",left="+windowX+",top="+windowY + ",resizable=yes"); } else { oWnd = window.open(url, name, feature+",width=" + width +",height=" + height + ",resizable=yes"); } return oWnd; } var IE = false ; if (window.navigator.appName.indexOf("Explorer") !=-1) { IE = true; } function roundTableNew(targetObjID, roundType) { var attrsRound1 = getSytleAttributes("round1"); var attrsRound2 = getSytleAttributes("round2"); //var attrsRound3 = getSytleAttributes("round3"); //var attrsRound4 = getSytleAttributes("round4"); var attrsRound5 = getSytleAttributes("round5"); var rborder1 = ''; // round1의 rborder색. var rbgcolor1 = ''; // round1의 rbgcolor색. var rborder2 = ''; // round2의 rborder색. var rbgcolor2 = ''; // round2의 rbgcolor색. var rborder5 = ''; // round5의 rborder색. var rbgcolor5 = ''; // round5의 rbgcolor색. if(attrsRound1!=null && attrsRound2) { rborder1 = attrsRound1[1]; // round1의 rborder색. rbgcolor1 = attrsRound1[2]; // round1의 rbgcolor색. rborder2 = attrsRound2[1]; // round2의 rborder색. rbgcolor2 = attrsRound2[2]; // round2의 rbgcolor색. rborder5 = attrsRound5[1]; // round5의 rborder색. rbgcolor5 = attrsRound5[2]; // round5의 rbgcolor색. }else{ rborder1 = "#FFFFFF"; // round1의 rborder색. rbgcolor1 = "#FFFFFF"; // round1의 rbgcolor색. rborder2 = "#FFFFFF"; // round2의 rborder색. rbgcolor2 = "#FFFFFF"; // round2의 rbgcolor색. rborder5 = "#FFFFFF"; // round5의 rborder색. rbgcolor5 = "#FFFFFF"; // round5의 rbgcolor색. } var obj = null; if(roundType!=null && (roundType=='round1'||roundType=='round2'||roundType=='round3'||roundType=='round4')) { obj = document.getElementById(targetObjID); // roundTableNewSub(obj, rborder1, rborder2, rbgcolor2); roundTableNewSub(obj, rborder1); }else{ obj = document.getElementById(targetObjID); // roundTableNewSub(obj, rborder5, rbgcolor5, rbgcolor5); roundTableNewSub(obj, rborder1); } } function roundTableNewSub2(objDiv, rgb1, rgb2, rgb3) { //alert("objDiv.style.width="+objDiv.style.width+", rbg1="+rbg1+", rbg2="+rbg2+", rbg3="+rbg3); var objDivWidth = parseInt(objDiv.style.width); var objDivHTML = objDiv.innerHTML; var roundBox = ""; roundBox += "
"; roundBox += ""; roundBox += " "; roundBox += "
"; roundBox += ""; roundBox += " "; roundBox += "
"; roundBox += ""; roundBox += " "; roundBox += "
"; roundBox += ""; roundBox += " "; roundBox += " "; roundBox += " "; roundBox += " "; roundBox += "
"; roundBox += ""; roundBox += " "; roundBox += " "; roundBox += "
"; roundBox += ""; roundBox += " "; roundBox += " "; roundBox += " "; roundBox += " "; roundBox += " "; roundBox += "
"; roundBox += ""; roundBox += " "; roundBox += "
"; roundBox += ""; roundBox += objDivHTML; roundBox += ""; roundBox += "
"; roundBox += ""; roundBox += " "; roundBox += " "; roundBox += " "; roundBox += " "; roundBox += " "; roundBox += "
"; roundBox += ""; roundBox += " "; roundBox += " "; roundBox += "
"; roundBox += ""; roundBox += "
"; roundBox += ""; roundBox += " "; roundBox += "
"; roundBox += ""; roundBox += " "; roundBox += "
"; roundBox += ""; roundBox += " "; roundBox += "
"; roundBox += ""; roundBox += "
"; objDiv.innerHTML = roundBox; } function roundTableNewSub(objDiv, rgb1) { //alert("objDiv.style.width="+objDiv.style.width+", rbg1="+rbg1+", rbg2="+rbg2+", rbg3="+rbg3); var objDivWidth = parseInt(objDiv.style.width); //var objDivWidth = 215; var objDivHTML = objDiv.innerHTML; var roundBox = ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += ""; roundBox += "
"; roundBox += ""; roundBox += "
"; roundBox += "

"; roundBox += objDivHTML; roundBox += "

"; roundBox += "

"; roundBox += "
"; objDiv.innerHTML = roundBox; } function getSytleAttributes(objID){ var rets = new Array("","","") if(!IE) { rets[0]=1; rets[1]='FFFFFF'; rets[2]='FFFFFF'; /* for(var i=0;i