﻿// JScript 파일
if(GetPopCookie("SECURITYINSIGHTCHUSEOK2010") != '1') 
{
    ViewPopup();
    try 
    {
        window.setTimeout("FocusPopup()",1000);
    }
    catch(e) 
    { }
}

function GetPopCookie( 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 FocusPopup()
{
    try
    {
        wndPop.focus();
    }
    catch(e)
    { }
}

function ViewPopup()
{ 
    //wndPop = window.open("./Popup/Chuseok2010/Chuseok2010.html", "", "width=348,height=474,left=20,top=20,toolbar=no,status=no,scrollbars=no,resizable=no");
}
