// 자동 팝업 관련
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 OpenWindow(target,win_name,w_width,w_height,xpos){
	//var xpos = ( screen.width -  w_width  ) / 2;
	//var ypos = ( screen.height - w_height )  / 2;
	
	var ypos = 50;
	window.open(target,win_name,'toolbar=no,status=no,top='+ ypos +',left='+ xpos +',width=' + w_width + ',height=' + w_height +',directories=no,scrollbars=no,location=no,resizable=yes,border=0,menubar=no').focus();
}
function initWin(){
  if(getCookie("notice") != "checked") {
	  OpenWindow("/popup/popup_20100116.html","INIT_POPUP",600,275,0);
  }
  //if(getCookie("notice2") != "checked") {
	//  OpenWindow("/popup/popup_20091016.html","INIT_POPUP2",300,225,500);
  //}
}

