//ÆË¾÷Á¤º¸¸¦ ³Ö¾îµÎ´Â °÷ÀÔ´Ï´Ù.
//  »çÀÌÆ® »õ·Î¿ÀÇÂ±â³çÆË¾÷
function kepco_newopen(){
	SimpleCenterWindow('./pop_0214.html', '_newopen', 480,342,0,0);
}
// ½Ã½ºÅÛ ÁßÁö¾Ë¸²
function openStopPopup(){
	if ( parseInt(SetToday()) < 161600)
	{	 
		SimpleCenterWindow('/kepco_main/popup/welfare_discount/system_out.html', '_stop', 420,358,0,480);
	} 	
}
//¿À´ÃÇÏ·ç Ã¢´Ý±â Àû¿ë
function notice_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 SimpleCenterWindow(url,name,width,height,top,left)
{
	if (top == null ) top		= (screen.height - height) / 2;
	if (left == null) left	= (screen.width - width) / 2;

	var centerWindow = window.open(url, name, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+width+',height='+height+',top='+top+',left='+left);

	centerWindow.focus();
}
//»çÀÌÆ® »õ·Î¿ÀÇÂ±â³çÆË¾÷
//if ( notice_getCookie( "newopen" ) != "done" ) {
//	setTimeout("kepco_newopen()",1000);
//}
//³¯Â¥ Àû¿ë
function SetToday() 
{
	var theyear = '';
	var themonth = '';
	var theday = '';

	var mydate=new Date();
	themonth=mydate.getMonth()+1;
	if (themonth<10) themonth="0"+themonth;
	theday=mydate.getDate();
	if (theday<10) theday="0"+theday;
	theHour = mydate.getHours();
	if( theHour < 10 ) theHour = "0" + theHour;
	theMin = mydate.getMinutes();
	if( theMin < 10 ) theMin = "0" + theMin;

	return new String(theday) + new String(theHour) + new String(theMin);
}