/******************************************************************************************** * NAME : common.js * DESC : °øÅë±â´É Á¤ÀÇ * VER : v1.0 * PROJ : ´Ú½ºÅ¬·´ ¸®´º¾ó ÇÁ·ÎÁ§Æ® * Copyright 2007 ´Ú½ºÅ¬·´ All rights reserved ******************************************************************************************** * º¯ °æ »ç Ç× ******************************************************************************************** * DATE AUTHOR DESCRIPTION ******************************************************************************************** * 2007.12.04 ±¸½Å¼­ ÃÖÃÊ ÀÛ¼º * 2007.12.05 ¼­¿µÇö Ç÷¡½¬ Å׵θ® ¾ø¾ÖÁÖ´Â ½ºÅ©¸³Æ® Ãß°¡ * 2007.12.06 ±¸½Å¼­ ·Î±×Àΰü·Ã ÇÔ¼ö Ãß°¡() ********************************************************************************************/ /********************************************************************************************* * ÇÔ¼ö¸í : * »ó¼¼ : À̹ÌÁö°ü·Ã ÇÔ¼öµé * ÆÄ¶ó¹ÌÅÍ : * ¸®ÅͰª : *********************************************************************************************/ function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i'); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); } /************************************************************************************************ * ÇÔ¼ö¸í : dsDoOnlyNumber * »ó¼¼ : ¼ýÀÚ¸¸ Çã¿ë * ÆÄ¶ó¹ÌÅÍ : ev=ºê¶ó¿ìÀú Á¾·ù È®ÀÎ; * ¸®Åϰª : boolean *************************************************************************************************/ function dsIsOnlyNumber(ev) { var evCode = ( window.netscape ) ? ev.which : event.keyCode ; if (!(evCode == 0 || evCode == 8 || (evCode > 47 && evCode < 58))) { if ( window.netscape ) { Ev.preventDefault() ; } else { event.returnValue = false; } } } /************************************************************************************************ * ÇÔ¼ö¸í : dsDoOnlyHangle * »ó¼¼ : Çѱ۸¸ Çã¿ë * ÆÄ¶ó¹ÌÅÍ : ev=ºê¶ó¿ìÀú Á¾·ù È®ÀÎ; * ¸®Åϰª : boolean *************************************************************************************************/ function dsIsOnlyHangle() { if (!(event.keyCode == 8) || (event.keyCode == 9) || (event.keyCode == 46)) { event.returnValue = false; } } /************************************************************************************************ * ÇÔ¼ö¸í : dsDoMoveFocus * »ó¼¼ : Æ÷Ä¿½º À̵¿ * ÆÄ¶ó¹ÌÅÍ : arg=ÇØ´ç Æû¿¤¸®¸ÕÆ®; len=±æÀÌ; ename=À̵¿ÇÒ Æû¿¤¸®¸ÕÆ®³×ÀÓ; * ¸®Åϰª : ¾øÀ½ *************************************************************************************************/ function dsDoMoveFocus(arg, len, ename) { if (arg.value.length == len) { ename.focus(); return; } } /************************************************************************************************ * ÇÔ¼ö¸í : dsIsRrn * »ó¼¼ : Áֹεî·Ï¹øÈ£ À¯È¿¼º üũ * ÆÄ¶ó¹ÌÅÍ : rrn1=Áֹεî·Ï¹øÈ£ ¾ÕÀÚ¸®; rrn2=Áֹεî·Ï¹øÈ£ µÞÀÚ¸®; * ¸®Åϰª : boolean *************************************************************************************************/ function dsIsRrn(rrn1, rrn2){ var tot = 0, result = 0, re = 0, se_arg = 0; var chk_num = ""; var rrn = rrn1 + rrn2; if (rrn.length != 13) { return false; } else { for (var i=0; i <12; i++) { if (isNaN(rrn.substr(i, 1))) { return false; } se_arg = i; if (i >= 8) { se_arg = i - 8; } tot = tot + Number(rrn.substr(i, 1)) * (se_arg + 2) } if (chk_num != "err") { re = tot % 11; result = 11 - re; if (result >= 10) { result = result - 10; } if (result != Number(rrn.substr(12, 1))) { return false; } if ((Number(rrn.substr(6, 1)) < 1) || (Number(rrn.substr(6, 1)) > 4)) { return false; } } } return true; } /************************************************************************************************ * ÇÔ¼ö¸í : dsValidateFE() * »ó¼¼ : Æû¿¤¸®¸ÕÆ® À¯È¿¼º üũ * ÆÄ¶ó¹ÌÅÍ : tgt:Æû.À̸§, msg:¸Þ½ÃÁö, str:Çã¿ë¹®ÀÚ¿­, min:ÃÖ¼Ò°ª, max:ÃÖ´ë°ª * ¸®Åϰª : boolean *************************************************************************************************/ function dsValidateFE(tgt, msg, str, min, max) { var i = 0; var t = tgt.value; if (t.search(/\S/) < 0) { alert(msg + ' ÀԷ¶õ¿¡ °ø¹éÀÌ ÀÖ½À´Ï´Ù. ³»¿ëÀ» ÀÔ·ÂÇϼ¼¿ä.'); tgt.focus(); return false; } var temp = t.replace(' ', ''); if (temp.length == 0) { alert(msg + ' ÀԷ¶õ¿¡ ³»¿ëÀ» ÀÔ·ÂÇϼ¼¿ä.'); tgt.focus(); return false; } if (min != 0 && max != 0) { if (t.length < min || t.length > max) { if (min == max) { alert(msg + ' ÀԷ¶õÀº ' + min + ' ÀÚ À̳»·Î ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.'); } else { alert(msg + ' ÀԷ¶õÀº ' + min + ' ~ ' + max + ' ÀÚ À̳»·Î ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.'); } tgt.focus(); return false; } } if (str.length > 1) { for (var i=0; i < t.length; i++) { if (str.indexOf(t.substring(i, i+1)) < 0) { alert(msg + ' ÀԷ¶õ¿¡ Çã¿ëÇÒ ¼ö ¾ø´Â ¹®ÀÚ°¡ ÀԷµǾú½À´Ï´Ù.'); tgt.focus(); return false; } } } return true; } /************************************************************************************************ * ÇÔ¼ö¸í : dsShowPopup() * »ó¼¼ : ÆË¾÷â ¿­±â * ÆÄ¶ó¹ÌÅÍ : url : ÆË¾÷â ÁÖ¼Ò name : ÆË¾÷â¸í left : ÆË¾÷â ¿ÞÂÊ À§Ä¡ top : ÆË¾÷â »ó´Ü À§Ä¡ width : °¡·Î»çÀÌÁî height : ¼¼·Î»çÀÌÁî toolbar : Åø¹Ù Ç¥½Ã ¿©ºÎ ( yes | no | 1 | 0 ) menubar : ¸Þ´º¹Ù Ç¥½Ã ¿©ºÎ ( yes | no | 1 | 0 ) statusbar : »óŹ٠ǥ½Ã ¿©ºÎ ( yes | no | 1 | 0 ) scrollbar : ½ºÅ©·Ñ¹Ù Ç¥½Ã ¿©ºÎ ( yes | no | 1 | 0 ) resizable : âũ±â Á¶Àý °¡´É¿©ºÎ ( yes | no | 1 | 0 ) * ¸®Åϰª : ¾øÀ½ *************************************************************************************************/ function dsShowPopup(url, name, width, height, left, top, toolbar, menubar, statusbar, scrollbar, resizable) { // toolbar_str = toolbar ? 'yes' : 'no'; // menubar_str = menubar ? 'yes' : 'no'; // statusbar_str = statusbar||typeof(scrollbar)=='undefined' ? 'yes' : 'no'; // scrollbar_str = scrollbar||typeof(scrollbar)=='undefined' ? 'yes' : 'no'; // resizable_str = resizable||typeof(scrollbar)=='undefined' ? 'yes' : 'no'; width = width ? width : screen.width / 3 * 2; height = height ? height : screen.height / 2; top = top > 0 ? top : (screen.height - height) / 2; left = left > 0 ? left : (screen.width - width) / 2; return window.open(url, name, 'width='+width+', height='+height+', left='+left+', top='+top+', toolbar='+toolbar+', menubar='+menubar+', status='+statusbar+', scrollbars='+scrollbar+', resizable='+resizable); } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } /************************************************************************************************ * ÇÔ¼ö¸í : dsShowModal() * »ó¼¼ : ¸ð´Þâ ¿­±â * ÆÄ¶ó¹ÌÅÍ : url : ÆË¾÷â ÁÖ¼Ò arg : (window or self), ÀÎÀÚ°ªµé width : ´ÙÀ̾ó·Î±× â °¡·Î»çÀÌÁî (px) height : ´ÙÀ̾ó·Î±× â ¼¼·Î»çÀÌÁî (px) left : ÆË¾÷â ¿ÞÂÊ À§Ä¡ top : ÆË¾÷â »ó´Ü À§Ä¡ center : âÀ§Ä¡ Áß¾Ó¹èÄ¡ ¿©ºÎ ( yes | no | 1 | 0 | on | off ) help : µµ¿ò¸» Ç¥½Ã ¿©ºÎ ( yes | no | 1 | 0 | on | off ) resizable : âũ±â Á¶Àý°¡´É ¿©ºÎ ( yes | no | 1 | 0 | on | off ) scroll : ½ºÅ©·Ñ¹Ù Ç¥½Ã ¿©ºÎ ( yes | no | 1 | 0 | on | off ) status : »óŹ٠ǥ½Ã ¿©ºÎ ( yes | no | 1 | 0 | on | off ) * ¸®Åϰª : ¾øÀ½ *************************************************************************************************/ function dsShowModal(url, arg, width, height, left, top, center, help, resizable, scroll, status) { var sFeatures = new Array(); sFeatures[0] = (width > 0) ? "dialogWidth:"+width+"px" : "dialgWidth:300px"; sFeatures[1] = (height > 0) ? "dialogHeight:"+height+"px" : "dialogHeight:300px"; sFeatures[3] = (left > 0) ? "dialogLeft:"+left+"px" : ""; sFeatures[2] = (top > 0) ? "dialogTop:"+top+"px" : ""; sFeatures[4] = (!top && !left) ? "center:Yes" : ""; sFeatures[5] = "help:No"; sFeatures[6] = (resizable) ? "resizeable:"+resizable : "resizeable:No"; sFeatures[7] = (scroll) ? "scroll:"+scroll : "scroll:No"; sFeatures[8] = "status:No"; sFeatures = sFeatures.join(";"); // var setting = "dialogLeft: eval(window.screenLeft + window.event.clientX )px; " + "dialogTop: eval(window.screenTop + window.event.clientY )px; "; return window.showModalDialog(url, arg, sFeatures); } /************************************************************************************************ * ÇÔ¼ö¸í : dsPopupInit * »ó¼¼ : ÆË¾÷â ÃʱâÈ­ * ÆÄ¶ó¹ÌÅÍ : ¾øÀ½ * ¸®Åϰª : ¾øÀ½ *************************************************************************************************/ function dsPopupInit() { var tblEl = document.getElementsByTagName("TABLE")[0]; var divEl = document.createElement("div"); divEl.style.position = "absolute"; divEl.style.left = "0px"; divEl.style.top = "0px"; divEl.style.width = "100%"; divEl.style.height = "100%"; document.body.appendChild(divEl); window.resizeBy(tblEl.offsetWidth-divEl.offsetWidth, tblEl.offsetHeight-divEl.offsetHeight); document.body.removeChild(divEl); } /************************************************************************************************ * ÇÔ¼ö¸í : dsGetCookieVal * »ó¼¼ : ÇØ´ç Äí۸íÀÇ Äí۰ª ¹Ýȯ * ÆÄ¶ó¹ÌÅÍ : name:Äí۸í * ¸®Åϰª : string:Äí۰ª *************************************************************************************************/ function dsGetCookieVal(name) { var arg = name + "="; var resPos = ""; var resVal = ""; var respreStr = ""; var tmpArr = (unescape(document.cookie)).substring(56).split("&"); for (var i=0; i < tmpArr.length; i++) { if ((resPos = tmpArr[i].indexOf("=")) != -1) { resPreStr = tmpArr[i].substring(0, resPos+1); if (resPreStr == arg) { resVal = tmpArr[i].substring(resPos+1); } } } if (resVal == null || resVal == "") { return ""; } else { return unescape(resVal); } } /************************************************************************************************ * ÇÔ¼ö¸í : dsLimitLen() * »ó¼¼ : ±ÛÀÚ¼ö ÀÔ·ÂÁ¦ÇÑ(byte ±âÁØ) * ÆÄ¶ó¹ÌÅÍ : tFE:ÅØ½ºÆ®°¡ ÀԷµǴ Æû¿¤¸®¸ÕÆ® nFE:ÃÖ¼Ò/ÃÖ´ë¼ýÀÚ°¡ Ç¥½ÃµÇ´Â Æû¿¤¸®¸ÕÆ® maxByteLen:ÃÖ´ëÇã¿ë ¹ÙÀÌÆ®¼ö byteCheck:true(ÇѱÛ=2¹ÙÀÌÆ® °è»ê) * ¸®Åϰª : boolean *************************************************************************************************/ function dsLimitLen(tFE, nFE, maxByteLen, byteCheck) { var tmpStr; var temp = 0; var onechar; var tcount = 0; var orgStr = tFE.value; tmpStr = new String(orgStr); temp = tmpStr.length; if (byteCheck == true) { for (k=0; k < temp; k++) { onechar = tmpStr.charAt(k); if (escape(onechar).length > 4) { tcount += 2; } else if (onechar != '\r') { tcount++; } } } else { tcount = temp; } if (parseInt(tcount) > parseInt(maxByteLen)) { alert("Çã¿ëµÈ ÀԷ¹üÀ§¸¦ ÃʰúÇÏ¿´½À´Ï´Ù."); tFE.value = tFE.value.substring(0, temp-1); fnWriteLen(nFE, maxByteLen, maxByteLen); return; } else { fnWriteLen(nFE, tcount, maxByteLen); return; } } function fnWriteLen(el, len, max) { var v = len + "/" + max; if (el.value == undefined) { el.innerHTML = v; } else { el.value = v; } } //string Ŭ·¡½º - ltrim ¸Þ¼­µå Ãß°¡ String.prototype.ltrim = function() { var re = /\s*((\S+\s*)*)/; return this.replace(re, "$1"); } //string Ŭ·¡½º - rtrim ¸Þ¼­µå Ãß°¡ String.prototype.rtrim = function() { var re = /((\s*\S+)*)\s*/; return this.replace(re, "$1"); } //string Ŭ·¡½º - trim ¸Þ¼­µå String.prototype.trim = function() { return this.ltrim().rtrim(); } /************************************************************************************************ * ÇÔ¼ö¸í : open_flayer(), close_flayer() * »ó¼¼ : ·¹À̾îÆË¾÷ *************************************************************************************************/ function setCenter(obj,t) { if (obj) { var h = window.innerHeight || self.innerHeight || document.body.clientHeight; var w = window.innerWidth || self.innerWidth || document.body.clientWidth; var l = (document.body.scrollLeft + ((w-(obj.width||parseInt(obj.style.width)||obj.offsetWidth))/2)); if((obj.width||parseInt(obj.style.width)||obj.offsetWidth) >= w) l = 0; if (t==0 || t=="undefined" || t==null) { t = (document.body.scrollTop + ((h-(obj.height||parseInt(obj.style.height)||obj.offsetHeight))/2)); if((obj.height||parseInt(obj.style.height)||obj.offsetHeight) >= h) t = document.body.scrollTop; } obj.style.top = t + "px"; obj.style.left = l + "px"; obj.style.visibility = 'visible'; } } function open_flayer(url,w,h,t) { var bg_film = document.getElementById('bg_film'); var layer = document.getElementById('ifrm_flayer'); var ifrmbox = document.getElementById('ifrmbox'); // ½ÇÁ¦ÆäÀÌÁö Å©±â¿Í ½ºÅ©·Ñ ¿µ¿ª Å©±âÁß Å«°ÍÀ» ¹è°æÀ¸·Î ÇÑ´Ù. if (document.body.clientHeight > document.body.scrollHeight) bg_film.style.height = document.body.clientHeight; else bg_film.style.height = document.body.scrollHeight; if (document.body.clientWidth > document.body.scrollWidth) bg_film.style.width = document.body.clientWidth; else bg_film.style.width = document.body.scrollWidth; bg_film.style.display = "block"; ifrmbox.src = url; ifrmbox.style.width = w; ifrmbox.style.height = h; layer.style.width = w + 61; layer.style.height = h + 49; layer.style.display = "block"; //setCenter(layer,t); } function close_flayer() { var bg_film = document.getElementById('bg_film'); var layer = document.getElementById('ifrm_flayer'); var ifrmbox = document.getElementById('ifrmbox'); bg_film.style.display = "none"; layer.style.display = "none"; } function open_flayer2(url,w,h,t) { var bg_film = document.getElementById('bg_film'); var layer = document.getElementById('ifrm_flayer'); var ifrmbox = document.getElementById('ifrmbox'); // ½ÇÁ¦ÆäÀÌÁö Å©±â¿Í ½ºÅ©·Ñ ¿µ¿ª Å©±âÁß Å«°ÍÀ» ¹è°æÀ¸·Î ÇÑ´Ù. if (document.body.clientHeight > document.body.scrollHeight) bg_film.style.height = document.body.clientHeight; else bg_film.style.height = document.body.scrollHeight; if (document.body.clientWidth > document.body.scrollWidth) bg_film.style.width = document.body.clientWidth; else bg_film.style.width = document.body.scrollWidth; bg_film.style.display = "block"; ifrmbox.src = url; ifrmbox.style.width = w; ifrmbox.style.height = h; layer.style.width = w + 0; layer.style.height = h + 49; layer.style.display = "block"; setCenter(layer,t); } // ¹ÌÆÃÆÄƼ °áÁ¦Çϱâ function Meeting_party_pay(Seqid,nWidth,nHeight) { //alert(nHeight); //open_flayer('/mypage/propose_pay.asp?num='+Seqid,400,318,200); open_flayer2('/mypage/meeting_party_pay.asp?num='+Seqid,400,295,150); //var HtmlFile = "/mypage/propose_pay.asp?num="+Seqid //open_flayer(HtmlFile,nWidth,nHeight,100); } // ¹ÌÆÃÆÄƼ Âü°¡ÀÚº¸±â function meeting_party_view(Seqid) { if (Seqid == 0) {alert('¹ÌÆÃÆÄƼ Âü¼®ÇϽŠȸ¿ø´Ô¸¸ °¡´ÉÇÕ´Ï´Ù.');} else if (Seqid == 1) {alert('°áÁ¦¿Ï·á ÈÄ Âü¿©ÇÒ ¼ö ÀÖ½À´Ï´Ù.');} else {location.href = "/mypage/meeting_party_view.asp?num="+Seqid} } //ÇÁ·ÎÆ÷Áî Çϱâ function meeting_party_propose(nPartner,nWidth,nHeight,nPpType,event_idx) { var ProposeMaxCnt = document.getElementById("ProposeMaxCnt").value; if (!dsIsLogin()) { var w = 500; var h = 300; LeftPosition = (document.body.clientWidth) ? (document.body.clientWidth-w)/2 : 0; TopPosition = (document.body.clientHeight ) ? (document.body.clientHeight -h)/2 : 0; alert("·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØÁֽñ⠹ٶø´Ï´Ù."); parent.dsShowLogin(LeftPosition,TopPosition); return; } else if (ProposeMaxCnt >= 4) { alert("´õÀÌ»ó ÇÁ·ÎÆ÷Á ÇÒ ¼ö ¾ø½À´Ï´Ù."); return; } else { TopPosition = (document.body.clientHeight ) ? (document.body.clientHeight -270)/2 + document.body.scrollTop-50 : 0; open_flayer2('/mypage/PP_meeting_party_time_confirm.asp?nPartner='+nPartner+'&nPpType='+nPpType+'&event_idx='+event_idx,400,275,TopPosition); } } // ÇÁ·ÎÆ÷Áî ¼ö¶ô/°áÁ¦ function Propose_confirm_meeting_party(Seqid,state,intOption) { var stateName = ""; if (state == 3){ stateName = "¼ö¶ô ÇϽðڽÀ´Ï±î?" }else{ stateName = "°ÅÀý ÇϽðڽÀ´Ï±î?" } vn_con = confirm(stateName); if ( vn_con == true ) { location.href = "propose_proc_meeting_party.asp?num=" + Seqid + "&state="+state+"&nOption="+intOption; } if ( vn_con == false ) { return ; } } // ÇÁ·ÎÆ÷Áî ¿¬¶ôó È®ÀÎÇϱâ function Propose_tel(Seqid,nWidth,nHeight,nOption) { //alert(nHeight); //open_flayer('/mypage/propose_pay.asp?num='+Seqid,400,318,200); //var a=document.body.scrollTop+180 TopPosition = (document.body.clientHeight ) ? (document.body.clientHeight -270)/2 + document.body.scrollTop-50 : 0; open_flayer2('/mypage/propose_tel.asp?num='+Seqid+'&nOption='+nOption,400,305,TopPosition); //var HtmlFile = "/mypage/propose_pay.asp?num="+Seqid //open_flayer(HtmlFile,nWidth,nHeight,100); } // ÆË¾÷ height ¿¬»êÇØ¼­ resize function popup_resize(w) { var ua = navigator.userAgent, h = 0, height = 0; if (ua.indexOf("SV1") > 0){ h = 14; } // ie6 else if(ua.indexOf("MSIE 7") > 0) { h = 45; } // ie7 else if(ua.indexOf("MSIE 8") > 0) { h = 40; } // ie8 else if(ua.indexOf("Chrome") > 0) { h = 22; } // chrome else if(ua.indexOf("Gecko") > 0 && ua.indexOf("Firefox") <= 0 && ua.indexOf("Netscape") <= 0 ){ h=22; } //safari else if(ua.indexOf("Firefox") > 0 && ua.indexOf("rv:1.8") > 0){ h = 22; } // ff2 else if(ua.indexOf("Firefox") > 0 && ua.indexOf("rv:1.9") > 0){ h = 45; } // ff3 else if(ua.indexOf("Opera") >= 0 ) { h = 22; } // opera else if(ua.indexOf("Netscape") > 0 ){ h= -2; } else { h = 0; } h=0; //·¹À̾îÆË¾÷À̶ó »çÀÌÁî Á¶Á¤ ÇÊ¿ä¾øÀ½ var ch = document.body.clientHeight, sh = document.body.scrollHeight, buffer = 0, // header + footer = 100px height = 0; height = document.getElementById('msgBody').scrollHeight; height = height + buffer + h; window.resizeTo(w, height); } function worldcupOpen() { window.open("http://worldcup.daksclub.com/","worldcup",'top=0,left=0,width=1200,height='+screen.availHeight+',resizable=1,scrollbars=1,location=1'); //window.open("http://www.daksclub.com/event/20100426_worldcup/20100426_worldcup_main.html","worldcup",'width='+screen.availWidth+',height='+screen.availHeight+',left=0,top=100,fullscreen=0,toolbar=0,scrollbars=1,location=0,status=0,menubar=0'); //window.worldcup.focus(); } function worldcupOpen_event(idx) { window.open("http://worldcup.daksclub.com/?event="+idx,"worldcup",'top=0,left=0,width='+screen.availWidth+',height='+(screen.availHeight)+',resizable=1'); } function worldcupOpen_new() { window.open("http://www.daksclub.com/event/20100426_worldcup/20100426_worldcup_main.html","worldcup",'top=200,left=10,width='+screen.availWidth+',height='+(screen.availHeight-200)+',resizable=1'); //'width='+screen.availWidth+',height='+screen.availHeight+'-100,left=0,top=100,fullscreen=0,toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizeble=1'); //window.worldcup.focus(); } //ÆË¾÷â ÄíŰ ±â°£ ¼³Á¤ ÇÔ¼ö function setCookie( name, value, expiredays ){ var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" } //ÆË¾÷â Äí۰ª °¡Á®¿À±â 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 popupResize(nWidth, nHeight) { 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 bIE8 = (strAgent.indexOf("msie 8.0") != -1); var bSafari = (strAgent.indexOf("konqueror") != -1 || strAgent.indexOf("safari") != -1); var bFirefox = (strAgent.indexOf("firefox")!= -1); window.resizeTo(nWidth, nHeight); } //ÆË¾÷»çÀÌÁî ÀÚµ¿Á¶Àý function popupResize1() { var Dwidth = parseInt(document.body.scrollWidth); var Dheight = parseInt(document.body.scrollHeight); var divEl = document.createElement("div"); divEl.style.position = "absolute"; divEl.style.left = "0px"; divEl.style.top = "0px"; divEl.style.width = "100%"; divEl.style.height = "100%"; document.body.appendChild(divEl); window.resizeBy(Dwidth-divEl.offsetWidth, Dheight-divEl.offsetHeight); document.body.removeChild(divEl); } //ÆË¾÷â ¼¾ÅÍÁ¤·Ä function popupCenter(){ var x,y; if (self.innerHeight) { // IE ¿Ü ¸ðµç ºê¶ó¿ìÀú x = (screen.availWidth - self.innerWidth) / 2; y = (screen.availHeight - self.innerHeight) / 2; }else if (document.documentElement && document.documentElement.clientHeight) { // IE >= 6 x = (screen.availWidth - document.documentElement.clientWidth) / 2; y = (screen.availHeight - document.documentElement.clientHeight) / 2; }else if (document.body) { // ´Ù¸¥ IE ºê¶ó¿ìÀú( IE < 6) x = (screen.availWidth - document.body.clientWidth) / 2; y = (screen.availHeight - document.body.clientHeight) / 2; } window.moveTo(x,y); //âÀ» ¿òÁ÷¿©¶ó } //ÆË¾÷⠴ݱâ function closeWin(idx) { if( eval("document.dspopup_"+ idx +".todaynotice.checked") ) { setCookie( "dspopupview_"+idx, "view" , 1); } self.close(); }