var ie4 = (document.all) ? true : false;
var ns4 = (document.layers) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;
function hidelayer(lay) {
if (ie4) {document.all[lay].style.visibility = "hidden";}
if (ns4) {document.layers[lay].visibility = "hide";}
if (ns6) {document.getElementById([lay]).style.display = "none";}
}


//ÄíÅ° SET
function notice_setCookie( name, value , expiredays )
{
  var todayDate = new Date();
  todayDate.setDate( todayDate.getDate() + expiredays );
  document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() +  ";"
 }

// ÄíÅ° GET
function notice_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 pop_win(val2){ //val2´Â ·¹ÀÌ¾î id
 if(document.all[val2].style.display==""){
 document.all[val2].style.display="none"
 }
}

 

//·¹ÀÌ¾î close¹öÆ° 

function notice_closeWin(form,val,val2) // ·¹ÀÌ¾î form¸í, ·¹ÀÌ¾î ¼ø¼­,·¹ÀÌ¾îid 
{
 if ( form.Notice.value=="checked" ) notice_setCookie( "Notice_ps"+val, "done" , 1); // ¿À´ÃÇÏ·ç Ã¢¿­Áö¾ÊÀ½ Å¬¸¯½Ã ÄíÅ° »ý¼º 
   pop_win(val2); // ·¹ÀÌ¾î ¾Èº¸ÀÌ°Ô ÇØÁÜ
}


//Å×ÀÌºí À§Ä¡ ±¸ÇÏ±â
function getRealOffsetTop() 
{ 
 standard_table=document.getElementById("standard_tb");
 //return standard_table ? standard_table.offsetTop + getRealOffsetTop(standard_table.offsetParent) : 0;
 val=standard_table.offsetTop;
 return val;
} 

function getRealOffsetLeft() 
{ 
 standard_table=document.getElementById("standard_tb");
 val=standard_table.offsetLeft;
 //alert(val);
 return val;
} 
//getRealOffsetLeft();
//getRealOffsetTop();
function position_chk(){
var div_center = document.getElementById("popWindow1");
var div_top = getRealOffsetTop();
var div_left = getRealOffsetLeft();
div_center.style.top   = div_top+100;
div_center.style.left = div_left+24;
}
