function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

 var isView=false;
 
 function view(temp){
  var elem = document.getElementById(temp);
  elem.style.display="block";
   isView=false;
 }

  function hide(temp){
  var elem = document.getElementById(temp);
  elem.style.display="none";
   isView=true;
 }

	function zipcode(a,b,c){
	top.parent.document.TheForm.zipcode1.value = a ;
	top.parent.document.TheForm.zipcode2.value = b ;
	top.parent.document.TheForm.zipcode3.value = c ;
	top.parent.document.TheForm.zipcode3.focus();
	var logon = top.parent.document.getElementById("addrcheck")
	logon.style.display="none";
 }

	function zipcode1(a,b,c){
	top.parent.document.TheForm.zipcode11.value = a ;
	top.parent.document.TheForm.zipcode21.value = b ;
	top.parent.document.TheForm.zipcode31.value = c ;
	top.parent.document.TheForm.zipcode31.focus();
	var logon = top.parent.document.getElementById("addrcheck1")
	logon.style.display="none";
 }

	function company_select(a){
	top.parent.document.TheForm.company.value = a ;
	var logon = top.parent.document.getElementById("comsearch")
	logon.style.display="none";
 }

function login_on() {
	var logon = document.getElementById("login")
	logon.style.display="block";
}

function login_off() {
	var logout = document.getElementById("login")
	logout.style.display="none";
}

function passck_on() {
	var passck = document.getElementById("passck")
	passck.style.display="block";
}

function passck_off() {
	var passck = document.getElementById("passck")
	passck.style.display="none";
}

function idcheck()
{
var str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var i, j;
  if ( document.member.u_id.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ID¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.member.u_id.focus();
	document.member.u_id.value="";
	document.member.u_id1.value="";
  return;
  }
  
  if ( document.member.u_id.value.length < 4 || document.member.u_id.value.length > 12)
  {
    alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù\n ID´Â 4ÀÚ ÀÌ»ó 12ÀÚ ÀÌÇÏ·Î ÀÔ·ÂÇÏ¼¼¿ä         \n");
    document.member.u_id.focus();
	document.member.u_id.value="";
	document.member.u_id1.value="";
    return;
  }

  for (i=0; i< document.member.u_id.value.length; i++)
  {
    idcheck2 = document.member.u_id.value.charAt(i);
    for (j=0;  j< str.length; j++)
      if (idcheck2 == str.charAt(j))
        break;
    if (j == str.length)
    {
      alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ID´Â ¿µ¾î³ª ¼ýÀÚµî¸¸ °¡´ÉÇÏ¸ç  \n°ø¹é,Æ¯¼ö¹®ÀÚ µîÀº °¡´ÉÇÏÁö ¾Ê½À´Ï´Ù          \n");
      document.member.u_id.value="";
	  document.member.u_id1.value="";
      document.member.u_id.focus();
      return;
    }
  }
  document.member.submit();
  return true;
}

	function iduse(a){

	if ( document.member.u_id1.value.length == 0)
	{
	alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
	return;
	}

	top.parent.document.TheForm.u_id.value = document.member.u_id.value ;
	var logon = top.parent.document.getElementById("idcheck")
	logon.style.display="none";
	}

	function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
	}

function pool_reg() {

  if ( document.pool.kname.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ±¹¹®ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.pool.kname.focus();
  return;
  }
  if ( document.pool.ename.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¿µ¹®ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.pool.ename.focus();
  return;
  }
  if ( document.pool.tel1.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.pool.tel1.focus();
  return;
  }
  if ( document.pool.tel2.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.pool.tel2.focus();
  return;
  }
  if ( document.pool.tel3.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.pool.tel3.focus();
  return;
  }
  if ( document.pool.hp1.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÈÞ´ëÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.pool.hp1.focus();
  return;
  }
  if ( document.pool.hp2.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÈÞ´ëÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.pool.hp2.focus();
  return;
  }
  if ( document.pool.hp3.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÈÞ´ëÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.pool.hp3.focus();
  return;
  }
  if ( document.pool.cdate1.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n Á¹¾÷³âµµ¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.pool.cdate1.focus();
  return;
  }
  if ( document.pool.cdate2.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n Á¹¾÷³âµµ¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.pool.cdate2.focus();
  return;
  }
  if ( document.pool.cschool.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n Á¹¾÷ÇÐ±³¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.pool.cschool.focus();
  return;
  }
  if ( document.pool.cmajor.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n Àü°øÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.pool.cmajor.focus();
  return;
  }
  if ( document.pool.cdegree.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÇÐÀ§¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.pool.cdegree.focus();
  return;
  }
  document.pool.submit();
  return true;
}

function cname_check(){
	top.document.TheForm.cname1.value = top.document.TheForm.cname.value;
}

function company_add() {

  if ( document.TheForm.cname.value.length == 0)
  {
  alert(" È¸¿øÁ¤º¸ ¿À·ùÀÔ´Ï´Ù \n ¾÷Ã¼È¸¿ø¸¸ÀÌ È«º¸ ½ÅÃ»À» ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù         \n ¾÷Ã¼È¸¿øÀ¸·Î ·Î±×ÀÎÇØÁÖ¼¼¿ä");
    document.TheForm.cname.focus();
  return;
  }
  if ( document.TheForm.present.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ´ëÇ¥ÀÚ ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.present.focus();
  return;
  }
  if ( document.TheForm.ctype1.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¾÷Á¾À» µî·ÏÇØÁÖ¼¼¿ä         \n");
    document.TheForm.ctype1.focus();
  return;
  }
  if ( document.TheForm.ctype2.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÁÖ»ý»êÇ°¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.ctype2.focus();
  return;
  }
  if ( document.TheForm.ctype3.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n Á¾¾÷¿ø¼ö¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.ctype3.focus();
  return;
  }
  if ( document.TheForm.esdate.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¼³¸³ÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.esdate.focus();
  return;
  }
  if ( document.TheForm.intro.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n È¸»ç ¼Ò°³¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.intro.focus();
  return;
  }
  document.TheForm.submit();
  return true;
}

var KEYVALUE=" '<>!@#$%^&*(){}[]=-+|\"/,.:;`~";

function OnlyNumber()
{
	// left=37, up=38, right=39, down=40
	// back=8, tab=9, enter=13, del=46,
	// NumLock=144, NumKeyPad0~9=96~105
	if (event.keyCode < 48 || event.keyCode > 57) {
		if ((event.keyCode>=37 && event.keyCode<=40)
			|| (event.keyCode>=96 && event.keyCode<=105)
			|| (event.keyCode==8 || event.keyCode==9 || event.keyCode==13
			|| event.keyCode==46 || event.keyCode==144) ) {
			event.returnValue = true
		} else {
			event.returnValue = false;
		}
	}
}

function checkNum(obj)
	{
		var kc = event.keyCode;
		if((kc < 48 || kc > 57) && (kc < 96 || kc > 105) && (kc != 8 && kc != 9))

		{                  

		alert('¼ýÀÚ¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù.');             
		obj.focus();
		window.event.returnValue = false;                
		}
	}

function member_add() {

  if ( document.TheForm.u_id.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.u_id.focus();
  return;
  }
  if ( document.TheForm.pass.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.pass.focus();
  return;
  }

  if ( document.TheForm.pass.value != document.TheForm.pass1.value)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ºñ¹Ð¹øÈ£¿Í ºñ¹Ð¹øÈ£ È®ÀÎÀÌ µ¿ÀÏÇÏÁö ¾Ê½À´Ï´Ù         \n ºñ¹Ð¹øÈ£¸¦ ´Ù½Ã ÇÑ¹ø ÀÔ·ÂÇØÁÖ¼¼¿ä         ");
    document.TheForm.pass.focus();
  return;
  }
  if ( document.TheForm.name.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.name.focus();
  return;
  }

  if ( document.TheForm.tel1.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀüÈ­¹øÈ£¸¦ µî·ÏÇØÁÖ¼¼¿ä         \n");
    document.TheForm.tel1.focus();
  return;
  }
  if ( document.TheForm.tel2.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀüÈ­¹øÈ£¸¦ µî·ÏÇØÁÖ¼¼¿ä         \n");
    document.TheForm.tel2.focus();
  return;
  }
  if ( document.TheForm.tel3.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀüÈ­¹øÈ£¸¦ µî·ÏÇØÁÖ¼¼¿ä         \n");
    document.TheForm.tel3.focus();
  return;
  }
  if ( document.TheForm.tel4.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀüÈ­¹øÈ£¸¦ µî·ÏÇØÁÖ¼¼¿ä         \n");
    document.TheForm.tel4.focus();
  return;
  }

  if ( document.TheForm.email1.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.email1.focus();
  return;
  }
  if ( document.TheForm.email2.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.email2.focus();
  return;
  }

  if ( document.TheForm.zipcode1.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.zipcode1.focus();
  return;
  }
  if ( document.TheForm.zipcode3.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ³ª¸ÓÁö ÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.zipcode3.focus();
  return;
  }
  document.TheForm.submit();
  return true;
}

function company_search() {

  if ( document.TheForm.cname.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n »ç¾÷Ã¼¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.cname.focus();
  return;
  }
  if ( document.TheForm.cnum.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n »ç¾÷ÀÚµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.cnum.focus();
  return;
  }
  document.TheForm.submit();
  return true;
}

function commember_add() {

  if ( document.TheForm.u_id.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.u_id.focus();
  return;
  }
  if ( document.TheForm.pass.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.pass.focus();
  return;
  }

  if ( document.TheForm.pass.value != document.TheForm.pass1.value)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ºñ¹Ð¹øÈ£¿Í ºñ¹Ð¹øÈ£ È®ÀÎÀÌ µ¿ÀÏÇÏÁö ¾Ê½À´Ï´Ù         \n ºñ¹Ð¹øÈ£¸¦ ´Ù½Ã ÇÑ¹ø ÀÔ·ÂÇØÁÖ¼¼¿ä         ");
    document.TheForm.pass.focus();
  return;
  }
  if ( document.TheForm.cname.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¾÷Ã¼¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.cname.focus();
  return;
  }

  if ( document.TheForm.cnum.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n »ç¾÷ÀÚµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.cnum.focus();
  return;
  }

  if ( document.TheForm.tel1.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀüÈ­¹øÈ£¸¦ µî·ÏÇØÁÖ¼¼¿ä         \n");
    document.TheForm.tel1.focus();
  return;
  }
  if ( document.TheForm.tel2.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀüÈ­¹øÈ£¸¦ µî·ÏÇØÁÖ¼¼¿ä         \n");
    document.TheForm.tel2.focus();
  return;
  }
  if ( document.TheForm.tel3.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀüÈ­¹øÈ£¸¦ µî·ÏÇØÁÖ¼¼¿ä         \n");
    document.TheForm.tel3.focus();
  return;
  }
  if ( document.TheForm.tel4.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀüÈ­¹øÈ£¸¦ µî·ÏÇØÁÖ¼¼¿ä         \n");
    document.TheForm.tel4.focus();
  return;
  }

  if ( document.TheForm.email1.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.email1.focus();
  return;
  }
  if ( document.TheForm.email2.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.email2.focus();
  return;
  }

  if ( document.TheForm.zipcode1.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.zipcode1.focus();
  return;
  }
  if ( document.TheForm.zipcode3.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ³ª¸ÓÁö ÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.zipcode3.focus();
  return;
  }
	document.TheForm.submit();
  return true;
}

function content_reg() {

  if ( document.TheForm.title.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n Á¦¸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.title.focus();
  return;
  }
  if ( document.TheForm.email.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.email.focus();
  return;
  }
  document.TheForm.submit();
  return true;
}

function content_reg1() {

  if ( document.TheForm.title.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n Á¦¸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.title.focus();
  return;
  }
  if ( document.TheForm.writerck.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¼º¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.writerck.focus();
  return;
  }
  if ( document.TheForm.pass.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.pass.focus();
  return;
  }
  if ( document.TheForm.email.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.email.focus();
  return;
  }
  document.TheForm.submit();
  return true;
}

function content_edit() {

  if ( document.TheForm.title.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n Á¦¸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.title.focus();
  return;
  }
  if ( document.TheForm.writerck.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ¼º¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.writerck.focus();
  return;
  }
  if ( document.TheForm.email.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.email.focus();
  return;
  }
  if ( document.TheForm.pass.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.password.focus();
  return;
  }
	document.TheForm.action = "/process/brd(edit).kom"
	document.TheForm.submit();
	return true;
}

function content_delete()
{
var cdel_con = confirm(" ÄÁµ§Ã÷ °ü¸® ¼³Á¤À» º¯°æÇÕ´Ï´Ù        \n [È®ÀÎ]À» ´©¸£½Ã¸é, º¯°æÀÌ ¿Ï·á°¡ µË´Ï´Ù.");
if(cdel_con)
{
	document.TheForm.action = "/process/brd(del).kom"
	document.TheForm.submit();
}
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';

  cookie_str = document.cookie;
  cookie_str.toString();

  pos_start  = cookie_str.indexOf(name);
  pos_end    = cookie_str.indexOf('=', pos_start);

  cookie_name = cookie_str.substring(pos_start, pos_end);

  pos_start  = cookie_str.indexOf(name);
  pos_start  = cookie_str.indexOf('=', pos_start);
  pos_end    = cookie_str.indexOf(';', pos_start);
  
  if (pos_end <= 0) pos_end = cookie_str.length;
  cookie_val = cookie_str.substring(pos_start + 1, pos_end);
  if (cookie_name == name && cookie_val  == "done")
    return;

  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function edit_myinfo() {
  if ( document.TheForm.pass.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.pass.focus();
  return;
  }

  if ( document.TheForm.pass.value != document.TheForm.pass1.value)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ºñ¹Ð¹øÈ£¿Í ºñ¹Ð¹øÈ£ È®ÀÎÀÌ µ¿ÀÏÇÏÁö ¾Ê½À´Ï´Ù         \n ºñ¹Ð¹øÈ£¸¦ ´Ù½Ã ÇÑ¹ø ÀÔ·ÂÇØÁÖ¼¼¿ä         ");
    document.TheForm.pass.focus();
  return;
  }
  document.TheForm.submit();
  return true;
}

function edit_cmyinfo() {
  if ( document.TheForm.pass.value.length == 0)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n");
    document.TheForm.pass.focus();
  return;
  }

  if ( document.TheForm.pass.value != document.TheForm.pass1.value)
  {
  alert(" ÀÔ·Â¿À·ùÀÔ´Ï´Ù \n ºñ¹Ð¹øÈ£¿Í ºñ¹Ð¹øÈ£ È®ÀÎÀÌ µ¿ÀÏÇÏÁö ¾Ê½À´Ï´Ù         \n ºñ¹Ð¹øÈ£¸¦ ´Ù½Ã ÇÑ¹ø ÀÔ·ÂÇØÁÖ¼¼¿ä         ");
    document.TheForm.pass.focus();
  return;
  }
  document.TheForm.submit();
  return true;
}

function ckagroup(val){
top.document.TheForm1.mgcode.value = val;
top.document.TheForm4.mgcode.value = val;
top.document.TheForm2.mgcode.value = val;
top.parent.groupm.location.href = "/process/adminmgroup.kom?mgcode=" + val;
}

function ckamgroup(val){
	top.document.TheForm2.uid.value = val;
}

function adgr_del() {

	if ( document.TheForm1.mgcode.value.length == 0)
	{
	alert(" ±×·ì¸íÀ» ¼±ÅÃÇØÁÖ¼¼¿ä         \n ");
	return;
	}
	document.TheForm1.submit();
	return true;
	}

function adgr_reg() {

	if ( document.TheForm.mgname.value.length == 0)
	{
	alert(" ±×·ì¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä         \n ");
	return;
	}
	document.TheForm.submit();
	return true;
	}

function adgrm_reg() {

	if ( document.TheForm3.mgmid.value.length == 0)
	{
	alert(" È¸¿ø ¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä         \n ");
	return;
	}
	document.TheForm3.submit();
	return true;
	}

function adgrm_reg1() {

	if ( document.TheForm4.uid.value.length == 0)
	{
	alert(" È¸¿øÀ» °Ë»öÇØ ÁÖ¼¼¿ä         \n ");
	return;
	}
	if ( document.TheForm4.mgcode.value.length == 0)
	{
	alert(" ±×·ìÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä         \n ");
	return;
	}
	document.TheForm4.submit();
	return true;
	}

function adgrm_del() {

	if ( document.TheForm2.uid.value.length == 0)
	{
	alert(" È¸¿øÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä         \n ");
	return;
	}
	if ( document.TheForm2.mgcode.value.length == 0)
	{
	alert(" È¸¿øÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä         \n ");
	return;
	}
	document.TheForm2.submit();
	return true;
	}

function agreecmem() {
	document.TheForm.action="/process/autho_cmem.kom"
	document.TheForm.submit();
	return true;
	}
function bagreecmem() {
	document.TheForm.action="/process/bautho_cmem.kom"
	document.TheForm.submit();
	return true;
	}
function ejectcmem() {
	document.TheForm.action="/process/del_cmem.kom"
	document.TheForm.submit();
	return true;
	}

function agreemem() {
	document.TheForm.action="/process/autho_mem.kom"
	document.TheForm.submit();
	return true;
	}
function bagreemem() {
	document.TheForm.action="/process/bautho_mem.kom"
	document.TheForm.submit();
	return true;
	}

function agreermem() {
	document.TheForm.action="/process/autho_rmem.kom"
	document.TheForm.submit();
	return true;
	}
function bagreermem() {
	document.TheForm.action="/process/bautho_rmem.kom"
	document.TheForm.submit();
	return true;
	}

function agree1()
{
    if (document.TheForm.agree.checked == true)
    {
    }
    else
    {
     alert(" È¸¿ø°¡ÀÔ ¾È³»ÀÔ´Ï´Ù          \n ¾à°ü¿¡ µ¿ÀÇÇØÁÖ¼¼¿ä.\n");
     return;
    }
	location.href="/view.kom?vrn=99&vrn2=1&mpghref=member_join.html"
	return true;
}

function agree2()
{
    if (document.TheForm.agree.checked == true)
    {
    }
    else
    {
     alert(" È¸¿ø°¡ÀÔ ¾È³»ÀÔ´Ï´Ù          \n ¾à°ü¿¡ µ¿ÀÇÇØÁÖ¼¼¿ä.\n");
     return;
    }
	location.href="/view.kom?vrn=99&vrn2=1&mpghref=company_member_join.html"
	return true;
}

function brdcfedit()
{
var brdcfedit_con = confirm(" ÄÁµ§Ã÷ °ü¸® ¼³Á¤À» º¯°æÇÕ´Ï´Ù        \n [È®ÀÎ]À» ´©¸£½Ã¸é, º¯°æÀÌ ¿Ï·á°¡ µË´Ï´Ù.");
if(brdcfedit_con)
{
  document.adminForm.action = "/process/brdcfedit.kom";
  document.adminForm.submit();
}
}

function mem_eject()
{
var cdel_con = confirm(" À¥»çÀÌÆ® È¸¿ø¿¡¼­ Å»Åð¸¦ ÇÕ´Ï´Ù        \n [È®ÀÎ]À» ´©¸£½Ã¸é, Å»Åð°¡ ¿Ï·á°¡ µË´Ï´Ù.");
if(cdel_con)
{
	document.TheForm.action = "/process/member(eject).kom"
	document.TheForm.submit();
}
}

function tmenuOn(name,name2) {

	var name2;

	for (i=0;i < name2 ;i++ )
	{
		k = i +1 ;
	tmenu = eval("tmenu"+k+".style"); 
	tmenu.visibility = "hidden"; 
	}

 tmenu = eval("tmenu"+name+".style"); 
 tmenu.visibility = "visible"; 
}

function tmenueOn(name,name2) {

	var name2;

	for (i=0;i < name2 ;i++ )
	{
		k = i +1 ;
	tmenu = eval("tmenue"+k+".style"); 
	tmenu.visibility = "hidden"; 
	}

 tmenu = eval("tmenue"+name+".style"); 
 tmenu.visibility = "visible"; 
}

function tmenusOn(name,name2) {

	var name2;

	for (i=0;i < name2 ;i++ )
	{
		k = i +1 ;
	tmenu = eval("tmenus"+k+".style"); 
	tmenu.visibility = "hidden"; 
	}

 tmenu = eval("tmenus"+name+".style"); 
 tmenu.visibility = "visible"; 
} 

function tmenusOff(name,name2) {

	var name2;

	for (i=0;i < name2 ;i++ )
	{
		k = i +1 ;
	tmenu = eval("tmenus"+k+".style"); 
	tmenu.visibility = "hidden"; 
	}

 tmenu = eval("tmenus"+name+".style"); 
 tmenu.visibility = "hidden"; 
} 

function smenuOn(name) { 
 smenu = eval("smenu"+name+".style"); 
 smenu.visibility = "visible"; 
} 
function smenuOff(name,name2,name3) { 
 smenu = eval("smenu"+name+".style"); 
 smenu.visibility = "hidden"; 
}

function sbrdOn(name,name2) {

	var name2;

	for (i=0;i < name2 ;i++ )
	{
		k = i +1 ;
	sbrd = eval("sbrd"+k+".style"); 
	sbrd.visibility = "hidden"; 
	}

 sbrd = eval("sbrd"+name+".style"); 
 sbrd.visibility = "visible"; 
} 

	var bWait = true;
	var rot	 = 0;
	var bMouseOver = false;
	var arotate_pic=new Array();    //±×¸²¿¡ »ç¿ëÇÒ ¹è¿­ ¼±¾ð
		arotate_pic[0]='num0';
		arotate_pic[1]='num1';
	vl=arotate_pic.length;           //¹è¿­ÀÇ ¿ä¼Ò¸¸Å­ ·£´ý ¼ö¸¦ ¸¸µé¾î¾ß ÇÔ
 
 
	function startscroll() {			// ½ºÅ©·Ñ ½ÃÀÛ
		rot = 0;
		rotate_func();
 
		if (!bMouseOver && bWait) {
			window.setInterval('rotate_func()', 3000);
		}
	}
 
 
	function rotate_func(){     //±×¸² ¼ø¼­´ë·Î º¸¿©ÁÖ±â ÇÔ¼ö
		if(bWait) {
			//vr=Math.floor(Math.random() * vl); //¹è¿­ ¿ä¼Ò¸¦ °öÇØ ·£´ý ¼öÀÇ ¹üÀ§¸¦ ¼³Á¤
			vr = rot;
 
			switch(arotate_pic[vr]){
				case 'num0':	
					MM_swapImage('num01','','/image/popup/btn1on.gif','num02','','/image/popup/btn2.gif','num03','','/image/popup/btn3.gif','num04','','/image/popup/btn4.gif','num05','','/image/popup/btn5.gif',1);
					MM_showHideLayers('festival01','','show','festival02','','hide','festival03','','hide','festival04','','hide','festival05','','hide');
					break;
				case 'num1':	
					MM_swapImage('num01','','/image/popup/btn1.gif','num02','','/image/popup/btn1on.gif','num03','','/image/popup/btn3.gif','num04','','/image/popup/btn4.gif','num05','','/image/popup/btn5.gif',1);
					MM_showHideLayers('festival01','','hide','festival02','','show','festival03','','hide','festival04','','hide','festival05','','hide');
					break;
				case 'num2':	
					MM_swapImage('num01','','/image/popup/btn1.gif','num02','','/image/popup/btn2.gif','num03','','/image/popup/btn3on.gif','num04','','/image/popup/btn4.gif','num05','','/image/popup/btn5.gif',1);
					MM_showHideLayers('festival01','','hide','festival02','','hide','festival03','','show','festival04','','hide','festival05','','hide');
					break;
				case 'num3':	
					MM_swapImage('num01','','/image/popup/btn1.gif','num02','','/image/popup/btn2.gif','num03','','/image/popup/btn3.gif','num04','','/image/popup/btn4on.gif','num05','','/image/popup/btn5.gif',1);
					MM_showHideLayers('festival01','','hide','festival02','','hide','festival03','','hide','festival04','','show','festival05','','hide');
					break;
				case 'num4':	
					MM_swapImage('num01','','/image/popup/btn1.gif','num02','','/image/popup/btn2.gif','num03','','/image/popup/btn3.gif','num04','','/image/popup/btn4.gif','num05','','/image/popup/btn5on.gif',1);
					MM_showHideLayers('festival01','','hide','festival02','','hide','festival03','','hide','festival04','','hide','festival05','','show');
					break;
			}
 
		rot++;
		if(rot > 2){
			rot = 0;
		}
		//setTimeout("rotate_func()",3000);  //±×¸² º¯È¯ ¼Óµµ. ¼öÄ¡°¡ Å¬¼ö·Ï ´À¸²
		}
	}
 
	function startscrolling() {		// ½ºÅ©·Ñ Àç½ÃÀÛ
		bWait = true;
		//rot = 0;
		rotate_func();
	}
 
	function stopscroll() {		// ½ºÅ©·Ñ Á¤Áö
		bWait = false;
		//rot = 0;
	}


function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

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 stopscroll(){
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

