/*****************************************************/
/***		ÇÁ·Î±×·¥¸í :pop.js(¸ÅÀÎ popup °ü·Ã - ¿À´ÃÇÏ·ç¸¸ º¸±â ½ºÅ©¸³Æ® )
/***		¼­ºê½Ã½ºÅÛ : index_nf
/***		ÇÔ¼ö¼³¸í :
/***		°ü·Ã sp : 
/***		ÀÛ¼ºÀÚ : ½ÅÇö»ó
/***		ÀÛ¼ºÀÏ : 2003.2.18
/***		¼öÁ¤ÀÏ : 
/***		1.  
/***		2.
/***		include ÆÄÀÏ¼³¸í : 
/*****************************************************/
/******************************************************
//ÆË¾÷Ã¢ ¶Ù¿ì´Â ÇÔ¼ö
//»ç¿ë¿¹ : MM_openBrWindow('ÆÄÀÏ°æ·Î','ºê¶ó¿ìÀú¸í','±âÅ¸¼Ó¼º');	
******************************************************/

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}	
	
	
	/******************************************************
// ÄíÅ° ÄÁÆ®·Ñ ÇÔ¼ö
******************************************************/

function cookie_value_confirm(cookiename)
{
	var cookie_A = getCookie("nacross").split("&");
	for(var i = 0 ; i <= cookie_A.length ; i++)
	{
		if(cookie_A[i].split("=")[0] == cookiename)
		{
			return cookie_A[i].split("=")[1];
		}
	}
}	

	
function cookie_set(cookie_value)
{
	var today = new Date();
	var expire = new Date(today.getTime() + 60*60*24*1000);
	setCookie(cookie_value,"yes", expire);
}

function setCookie(name, value, expire) {
          document.cookie = name + "=" + escape(value) + ( (expire) ? "; expires=" + expire.toGMTString() : "") + ";path = /; domain = cinemaparty.com"; 
}

function getCookie( name )
{
	var nameOfCookie = name + "=";
	var x = 0;
	var tempCookie;
	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 "";
}

