
function  CookieSet( Name, Value, ExpireDays )
{
   var  Today = new Date() ;


   Today.setDate( Today.getDate() + ExpireDays ) ;

   document.cookie = Name + "=" + escape(Value) + ";expires=" + Today.toGMTString() + ";" ;
}

function  CookieGet( Name )
{
   var  StringName = Name + "=" ;
   var  StringCookie = document.cookie ;
   var  StringReturn = "" ;
   var  IndexBegin ;
   var  IndexEnd ;


   if( StringCookie.length > 0 )
   {
       IndexBegin = StringCookie.indexOf( StringName ) ;

       if( IndexBegin != -1 )
       {
           IndexBegin += StringName.length ;

           IndexEnd = StringCookie.indexOf( ";", IndexBegin ) ;

           if( IndexEnd == -1 )
               IndexEnd = StringCookie.length ;

           StringReturn = unescape( StringCookie.substring( IndexBegin, IndexEnd ) ) ;
       }
   }

   return( StringReturn ) ;
}

function  HpMap()
{
    WindowOpenCenter( './h_030102.htm', 'WindowHp', 650, 500, 0, 0 ) ;
}


function  HpRegist( Code )
{
    WindowOpenCenter( 'http://kahpa.or.kr/hp/hp.php?WORK=1'+Code+'00', 'WindowHp', 650, 500, 1, 1 ) ;
}


function  HpRegist1()
{
    WindowOpenCenter( 'http://kahpa.or.kr/hp/hp.php?WORK=9021', 'WindowHp', 100, 100, 1, 1 ) ;
}


function  HpShow( Class, Serial )
{
    WindowOpenCenter( './hp_show.htm?CLASS='+Class+'&SERIAL='+Serial, 'WindowHp', 650, 500, 1, 1 ) ;
}

function  HpShow1( Serial )
{
    WindowOpenCenter( 'http://kahpa.or.kr/hp/hp.php?WORK=9022&SERIAL='+Serial, 'WindowHp', 100, 100, 1, 1 ) ;
}


function  HpSeek()
{
    WindowOpenCenter( './hp/hp.php?WORK=2100', 'WindowHp', 650, 500, 1, 1 ) ;
}


function  HpLog()
{
    var  Log = parent.FrameHead.idLog.innerText ;
    var  CodeCmp = parent.FrameHead.idCodeCmp.innerText ;

    WindowOpenCenter( './hp_0080.htm?LOG='+Log+'&CODE_CMP='+CodeCmp, 'WindowHp', 100, 100, 0, 0 ) ;
}


function  HpLog1()
{
    var  Log = parent.FrameHead.idLog.innerText ;
    var  CodeCmp = parent.FrameHead.idCodeCmp.innerText ;

    WindowOpenCenter( './hp_1080.htm?LOG='+Log+'&CODE_CMP='+CodeCmp, 'WindowHp', 100, 100, 0, 0 ) ;
}


function  HpMail()
{
    WindowOpenCenter( './hp_mail.php', 'WindowHp', 650, 500, 0, 0 ) ;
}


function  HpCompany( CodeCmp )
{
    WindowOpenCenter( './hp_company.htm?CODE_CMP='+CodeCmp, 'WindowHp', 650, 500, 1, 1 ) ;
}


