
// ¾Æ·¡ setCookieÇÔ¼ö´Â ÄíÅ°¸¦ ¸¸µå´Â ÀÚ¹Ù ½ºÅ©¸³Æ® ÇÔ¼öÀÔ´Ï´Ù.
// ÀÌ´Â ÀÎÅÍ³Ý¿¡ ¸¹À¸´Ï ´ë°­¸¸ ÀÌÇØÇÏ¼Åµµ µË´Ï´Ù.
function setCookie( name, value, expiredays ) // ÄíÅ°ÀÌ¸§/°ª/À¯È¿ ³¯Â¥
{
	// ³¯Â¥Çü½ÄÀÇ º¯¼ö todayDate¸¦ »ý¼ºÇÏ¶ó
	var todayDate = new Date();
	todayDate     = new Date( todayDate.getYear(), todayDate.getMonth(), todayDate.getDate()+expiredays, 0,0,0 );		

	// ³¯Â¥ Çü½ÄÀÇ todayDate¿¡ ¿À´ÃÀÇ ³¯Â¥ + À¯È¿³¯Â¥¸¦ ¸¸µç´Ù. ¿¹) 11¿ù3ÀÏ + 1 = 11¿ù4ÀÏ±îÁö À¯È¿ÇÏ´Ù.
	// todayDate.setDate( todayDate.getDate() + expiredays );	

	// Notice=done;path=/;expires=11¿ù4ÀÏ¸¦ ÄíÅ°¿¡ ÀúÀå ÇÑ´Ù.
	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 closeWin(name) 
{
//  À§ÀÇ setCookieÇÔ¼ö¿¡ name="Notice" value="done" expiredays=1 ¸¦ ´ëÀÔÇÑ´Ù.
	setCookie(name, "done", 1);	
/* 
	 ÄíÅ°¸¦ »ý¼ºÇÕ´Ï´Ù. ÄíÅ°¸íÀº Notice °ªÀº done. 1Àº ÇÏ·ç¿¡ 1¹øÀ» ÀÇ¹Ì
	 ÀÌ·Î ÀÎÇØ XPÀÇ °æ¿ì C:\Documents and Settings\(WINDOW¾ÆÀÌµð)\Cookies Æú´õ¿¡ ÄíÅ° ÆÄÀÏÀÌ »ý±é´Ï´Ù.
	 ÀÌ ÆÄÀÏÀº Æú´õ¿¡¼­ ÀÓÀÇ·Î »èÁ¦ÇÏ°Å³ª ¸ÅÀÏ 00:00:00ÀÌ µÇ¸é ÀÚµ¿À¸·Î »èÁ¦ µË´Ï´Ù.
	 Cookie Æú´õ¸¦ º¸¸é si@www.victoriagc.co[1].txt ¶ó´Â ÆÄÀÏÀÌ »ý±é´Ï´Ù. ³»¿ëÀ» º¸½Ã¸é ´õ¿í ÀÌÇØÇÏ±â ½±½À´Ï´Ù.
*/
	window.close();
}

//À©µµ¿ìÃ¢À» ´ÝÀ½
function closeDiv(name, isCookie)
{
    if (isCookie == "1" )
    {
        setCookie( name, "done", 1 );
    }
    document.getElementById("divpop").style.display ="none";
}
