// Layer Show-Hide
function showLayer(tgtEl)    {    document.getElementById(tgtEl).style.display = "block";    }
function hideLayer(tgtEl)    {    document.getElementById(tgtEl).style.display = "none";    }

function linkAct()	{
	var tgtList = document.getElementById('globurls');
	if(tgtList.style.display)	{
		hideLayer('globurls');
		tgtList.style.display = "";
	} else	{
		showLayer('globurls');
	}
}
function linkAct2()	{
	var tgtList = document.getElementById('globurls');
	if(tgtList.style.display)	{
		hideLayer('globurls');
		tgtList.style.display = "";
		if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) document.getElementById('container').style.zIndex = "0";
	} else	{
		showLayer('globurls');
		if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) document.getElementById('container').style.zIndex = "-1";
	}
}
function selectLinks(tgtEl)	{
	var tgtList = document.getElementById(tgtEl);
	if(tgtList.style.display)	{
		hideLayer(tgtEl);
		tgtList.style.display = "";
	} else	{
		showLayer(tgtEl);
	}
function WinPop2(ref, title, w, h, leftX, topY, scrollbars)
{
	window.open ( 
		ref, 
		title, 
		'' + 'width=' + w + ',' +  'height=' + h + ',' + 'status=no scrollbars=' + scrollbars + ',' + 'top=' + topY + ',' + 'left=' + leftX + '' 
	);
}
//Popup Close
function closeWin()     {    window.close();	}
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 datecheck(startDate ,endDate){//YYYYMMDD 06-03-24 오진호
var X;
X=new Date();
var Y=(X.getFullYear()*100+X.getMonth()+1)*100+X.getDate();
 if (parseInt(Y)>=startDate && parseInt(Y)<=endDate) {
 	return true;
 }
 else return false;
}
}
