function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=120; //½Ã°£¼³Á¤
Timer();
}

function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
document.all['divpop_wh'].style.visibility = "hidden";
document.all['divpop_wh_01'].style.visibility = "hidden";
}
else{
window.setTimeout("Timer()",5000)}
}


function setCookie( name, value, expiredays ) { 
var todayDate = new Date(); 
todayDate.setDate( todayDate.getDate() + expiredays ); 
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
} 

function closeWin() { 
if ( document.notice_form.chkbox.checked ){ 
setCookie( "maindiv", "done" , 1 ); 
} 
document.all['divpop_wh'].style.visibility = "hidden";
}


 function closeWin01() { 
 if ( document.notice_form1.chkbox.checked ){ 
 setCookie( "maindiv1", "done" , 1 ); 
 } 
 document.all['divpop_wh_01'].style.visibility = "hidden";
 }

// ÆË¾÷ µÎ °³ÀÏ °æ¿ì ¾Æ·¡ Àû¿ë
// function closeWin01() { 
// if ( document.notice_form1.chkbox.checked ){ 
// setCookie( "maindiv1", "done" , 1 ); 
// } 
// document.all['divpop_wh_01'].style.visibility = "hidden";
// }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

