/* 
	ÆË¾÷Ã¢ °ü¸®ÇÏ±â À§ÇÑ Å¬·¡½º 
*/
var popup = {

	// ÄíÅ°¸¦ °¡Á®¿Â´Ù 
	getCookie : function ( szCookieName ) {
		var SearchCookieName = szCookieName.trim()+"=";
		if ( document.cookie.length > 0 )
		{
			var iStartIdx = document.cookie.indexOf(SearchCookieName);
			if (iStartIdx != -1 )
			{
				iStartIdx += SearchCookieName.length;
				iEndIdx = document.cookie.indexOf(";", iStartIdx);
				if ( iEndIdx  == -1 ) iEndIdx = document.cookie.length ;
				return unescape(document.cookie.substring(iStartIdx, iEndIdx));
			} else
			{
			    return null
			}
		} else {
			    return null;
		}
	},


	// ÄíÅ°¸¦ set ÇÑ´Ù 
	setCookie : function( name, value, expiredays ) { 
        var todayDate = new Date(); 
        todayDate.setDate( todayDate.getDate() + expiredays ); 
        document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
	} ,


	// ÆË¾÷Ã¢À» ¶ç¿î´Ù 
	openWindow : function( szCookieName, url, name, width, height, left, top) {
		if ( popup.getCookie( szCookieName ) != "done" )
		{
			window.open(url,name,'scrollbars=no,width=' + width + ',height=' + height + ',left=' + left + ',top=' + top);
		}
	}
};
