// 팝업창 시작
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
function fInit() {
  if(getCookie("openevent4") != "done4") {
        vObj = window.open('/root_pop/pop_100322.html','pop3','width=560,height=835,top=0,left=0');
   }

//  if(getCookie("openevent3") != "done3") {
//        vObj = window.open('/root_pop/pop_100701.html','pop4','width=300,height=260,top=0,left=570');
//   }
   
//  if(getCookie("openevent5") != "done5") {
//         vObj = window.open('/evt/20100601/index.asp','pop5','width=900,height=720,top=100,left=100');
//   }

//  if(getCookie("openevent2") != "done5") {
//        vObj = window.open('/evt/20100406/index.asp','pop5','width=900,height=600,top=200,left=100');
 //  }

}
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("openevent") != "N" )<!---------함수값 변경 ----------->
{
 fInit();
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////    
// 팝업창 끝
