function setCookie( name, value, expiredays ) 
{ 
	var todayDate = new Date(); 
	todayDate.setDate( todayDate.getDate() + expiredays ); 
	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 "";
}


if ( getCookie( "pop01" ) != "done" ){
	//pop01Window  =  window.open('/english/popup_files/popup20080430.htm','pop01','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=556,left=300,top=0');
	try{
		pop01Window.opener = self;
	}catch(e){}
}


 
function adsys_popup(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable, kind)
{
	if(kind == 1){
		var winl = (screen.width/2)-(width/2); 
		var wint = (screen.height/2)-(height/2); 
	}
	else{
		var winl = left; 
		var wint = top; 
	}
	toolbar_str = toolbar ? 'yes' : 'no';
	menubar_str = menubar ? 'yes' : 'no';
	statusbar_str = statusbar ? 'yes' : 'no';
	scrollbar_str = scrollbar ? 'yes' : 'no';
	resizable_str = resizable ? 'yes' : 'no';
	fo = window.open(url, name, 'left='+winl+',top='+wint+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
	fo.focus();
}

function show_popup()
{

	if ( getCookie( "pop02" ) != "false" ){

		//ÆË¾÷¸ðÀ½
		adsys_popup('2005', '/popup_files/all_new.jsp', 0, 0, 300, 585, 0, 0, 0, 0, 0, 0);
	}
}