function HideContent(d) {
	if(d.length < 1) { return; }
	document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
	if(d.length < 1) { return; }
	document.getElementById(d).style.left        = window.event.clientX;
	document.getElementById(d).style.top        = window.event.clientY;
	document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
	if(d.length < 1) { return; }
	if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
	else { document.getElementById(d).style.display = "none"; }
}
function ch()
{
	document.zb_login.user_id.style.backgroundImage="";
}
function ch1()
{
	document.zb_login.password.style.backgroundImage="";
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function check_submit()
 {
  if(!login.user_id.value)
  {
   alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");
   login.user_id.focus();
   return false;
  }
  if(!login.password.value)
  {
   alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");
   login.password.focus();
   return false;
  }
  check=confirm("ÀÚµ¿ ·Î±×ÀÎ ±â´ÉÀ» »ç¿ëÇÏ½Ã°Ú½À´Ï±î?\n\nÀÚµ¿ ·Î±×ÀÎ »ç¿ë½Ã ´ÙÀ½ Á¢¼ÓºÎÅÍ´Â ·Î±×ÀÎÀ» ÇÏ½ÇÇÊ¿ä°¡ ¾ø½À´Ï´Ù.\n\n´Ü, °ÔÀÓ¹æ, ÇÐ±³µî °ø°øÀå¼Ò¿¡¼­ ÀÌ¿ë½Ã °³ÀÎÁ¤º¸°¡ À¯ÃâµÉ¼ö ÀÖÀ¸´Ï Á¶½ÉÇÏ¿© ÁÖ½Ê½Ã¿ä");
  if(check) {login.auto_login.value=1;}
  return true;
 }

function getCookie(name)
{
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
	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 AdverPop() {
	if ( getCookie( "Notice" ) == "" ) 
	{
		window.open('popup/p_window0711_event.htm','Notice','width=450,height=620,scrollbars=no');
	}  
}

function openWindow(url, name, width, height) {
	window.open(url,name,'width='+width+',height='+height+',scrollbars=no,status=1');
}


//document.oncontextmenu=function () {return false;} // ¸¶¿ì½º ¿À¸¥ÂÊ ¸Þ´º ±ÝÁö
//document.ondragstart=function () {return false;} // µå·¡±× ±ÝÁö
//document.onselectstart=function () {return false;} // ¼±ÅÃº¹»ç ±ÝÁö

