	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 "";
	}

	/* ¿À´ÃÀÇ ³¯Â¥¸¦ YYYYMMDD ÇüÅÂ·Î ±¸ÇÔ. sday */

	var todayDate = new Date();
	var ty = todayDate.getFullYear();
	var tm = todayDate.getMonth() + 1;
	var td = todayDate.getDate();

	var sty = ty.toString();
	var stm = tm.toString();
	var std = td.toString();

	if (stm.length < 2) stm = "0" + stm;
	if (std.length < 2) std = "0" + std;

	var sday = sty + stm + std;

	var th = todayDate.getHours();
	var tmm = todayDate.getMinutes();
	var sth = th.toString();
	var stmm = tmm.toString();

	if (sth.length < 2) sth = "0" + sth;
	if (stmm.length < 2) stmm = "0" + stmm;

	var scday = sty + stm + std + sth + stmm;
	

//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// ÇöÀç¾²´Â ½ºÅ©¸³Æ®-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


	function popup_20080801_test() {
		if ( getCookie( "20080801_Event" ) != sday ){
				noticeWindow5 = window.open('/event/contents/2008/0801/popup.asp', '20080801_Event', 'left=0, top=0, width=320, height=400');
				noticeWindow5.opener = self;
		} 
	}

	function popup_20080711_test() {
		if ( getCookie( "20080711_Event" ) != sday ){
				noticeWindow5 = window.open('/event/contents/2008/0711/popup.asp', '20080711_Event', 'left=330, top=0, width=320, height=400');
				noticeWindow5.opener = self;
		} 
	}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

	function popup_20080807() {
		if ( getCookie( "20080807_Event" ) != sday ){
				noticeWindow5 = window.open('/event/contents/2008/0807/popup.asp', '20080807_Event', 'left=0, top=0, width=320, height=400');
				noticeWindow5.opener = self;
		} 
	}

	function popup_20080801() {
		if ( getCookie( "20080801_Event" ) != sday ){
				noticeWindow5 = window.open('/event/contents/2008/0801/popup.asp', '20080801_Event', 'left=330, top=0, width=320, height=400');
				noticeWindow5.opener = self;
		} 
	}

	function popup_20080711() {
		if ( getCookie( "20080711_Event" ) != sday ){
				noticeWindow5 = window.open('/event/contents/2008/0711/popup.asp', '20080711_Event', 'left=660, top=0, width=320, height=400');
				noticeWindow5.opener = self;
		} 
	}
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// Ê×Ò³µ¯³ö-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	
	function popupFunction(ck_name, url, wLeft, wTop) {
		if ( getCookie( ck_name ) != sday ){
				noticeWindow = window.open(url, ck_name, 'left='+ wLeft +', top='+ wTop +', width=322, height=428');
				noticeWindow.opener = self;
		} 
	}

	function popupFunction(ck_name, url, wLeft, wTop,width,height) {
		if ( getCookie( ck_name ) != sday ){
				noticeWindow = window.open(url, ck_name, 'left='+ wLeft +', top='+ wTop +', width='+width+', height='+height+'');
				noticeWindow.opener = self;
		} 
	}
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
