// ÄíŰ¾²±â // name: Äí۸í // value: Äí۰ª // expire: À¯È¿±â°£(Date°´Ã¼) function setCookie(name, value, expire) { document.cookie = name + "=" + escape( value ) + "; path=/" + ((expire == null) ? "" : ("; expires=" + expire.toGMTString())); } // ÄíŰ ¾ò±â // name: Äí۸í 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 ""; } // ÇϷ絿¾È ÆË¾÷âÀÌ ¶ßÁö¾Ê°Ô Çϱâ // o: üũÆû °´Ã¼ // cookie_name: Äí۸í, '¿À´Ã ÇÏ·ç ÀÌâÀ» ¿­Áö¾ÊÀ½'À» üũÇÏ´Â ÄíŰ function closeWin(o, cookie_name) { if ( o.checked ) { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + 1 ); setCookie(cookie_name, "done", todayDate); } self.close(); } // ÆË¾÷â ´Ý°í º»Ã¢ ÁÖ¼Ò À̵¿ // url: À̵¿ÇÒ ÁÖ¼Ò function gotoURL(url) { opener.document.location = url; opener.focus(); window.close(); } // ÆË¾÷â ´Ý°í »õâ ¶ç¿ì±â // url: À̵¿ÇÒ ÁÖ¼Ò function openURL(url) { window.open(url).focus(); window.close(); } // ÆË¾÷â ¶ç¿ì±â // addr: ÁÖ¼Ò // cookie_name: Äí۸í, '¿À´Ã ÇÏ·ç ÀÌâÀ» ¿­Áö¾ÊÀ½'À» üũÇÏ´Â ÄíŰ // param: ÆË¾÷â »óŸ¦ °áÁ¤ÇÏ´Â ÆÄ¶ó¸ÞÅÍ width|height|scrollbars|left|top function openPopup(addr, cookie_name, param) { if ( getCookie(cookie_name) != "done" ) { window.open(addr, cookie_name, param).focus(); } } // param ÀÛ¼º function makeParam(marginLeft, marginTop, sizeWidth, sizeHeight, scrollbars, alignCenter, valignCenter) { var param = ""; if (alignCenter == "T") marginLeft = screen.width / 2 - sizeWidth / 2; if (valignCenter == "T") marginTop = screen.height / 2 - sizeHeight / 2; if (marginLeft != "") param += "left=" + marginLeft + ","; if (marginTop != "") param += "top=" + marginTop + ","; param += "width=" + sizeWidth + ",height=" + sizeHeight; if (scrollbars == "T") param += ",scrollbars=yes"; return param; } // ·¹ÀÌ¾î ÆË¾÷ ´Ý±â function ClosePopup(popId) { document.getElementById(popId).style.display = "none"; } // ·¹ÀÌ¾î ÆË¾÷ ¶ç¿ì±â function AppendPopup(popId, left, top, width, height, content, autoClose) { tags = document.createElement("DIV"); tags.id = popId; tags.style.position = "absolute"; tags.style.left = left + "px"; tags.style.top = top + "px"; tags.style.width = width + "px"; tags.style.height = height + "px"; tags.innerHTML = content; document.body.appendChild(tags); setTimeout("ClosePopup('" + popId + "')", autoClose); } function init() { }