function sendit()
{ 
 if (document.makeboard.admin_id.value=="")
  {alert("°ü¸®ÀÚ ID¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.makeboard.admin_id.focus();
  return;}
 if (document.makeboard.admin_pass.value=="")
  {alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.makeboard.admin_pass.focus();
  return;}
 if (document.makeboard.admin_passre.value=="")
  {alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» ÇØÁÖ½Ê½Ã¿ä");
  document.makeboard.admin_passre.focus();
  return;}
 if (document.makeboard.board_id.value=="")
  {alert("°Ô½ÃÆÇ ID¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.makeboard.board_id.focus();
  return;}
 if (document.makeboard.board_title.value=="")
  {alert("°Ô½ÃÆÇ ÀÌ¸§À» ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.makeboard.board_title.focus();
  return;}
 if (document.makeboard.board_upload.value > 5)
  {alert("ÆÄÀÏ ¾÷·Îµå °³¼ö¸¦ ÃÊ°úÇÏ¿´½À´Ï´Ù.");
  document.makeboard.board_upload.focus();
  return;}
 document.makeboard.submit();
 return true;
}

function GAdmin_sendit()
{ 
 if (document.GAdmin_setup.GAdmin_id.value=="")
  {alert("ÀüÃ¼ °ü¸®ÀÚ ID¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.GAdmin_setup.GAdmin_id.focus();
  return;}
 if (document.GAdmin_setup.GAdmin_pass.value=="")
  {alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.GAdmin_setup.GAdmin_pass.focus();
  return;}
 if (document.GAdmin_setup.GAdmin_passre.value=="")
  {alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» ÇØÁÖ½Ê½Ã¿ä");
  document.GAdmin_setup.GAdmin_passre.focus();
  return;}
 if (document.GAdmin_setup.setup_dir.value=="")
  {alert("°Ô½ÃÆÇÀ» ¼³Ä¡ÇÑ Æú´õ¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.GAdmin_setup.setup_dir.focus();
  return;}
 document.GAdmin_setup.submit();
 return true;
}

function GAdmin_Login()
{ 
 if (document.GLoginform.GAdmin_id.value=="")
  {alert("ÀüÃ¼ °ü¸®ÀÚ ID¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.GLoginform.GAdmin_id.focus();
  return;}
 
  	pattern = /([^a-z0-9A-Z])/;
	pattern = document.GLoginform.GAdmin_id.value.match(pattern);
		
		if(pattern != null) {
			alert("¾ÆÀÌµð´Â ¿µ¹®ÀÚ ¶Ç´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù.	");
			document.GLoginform.GAdmin_id.focus();
			return;
		}
		
 if (document.GLoginform.GAdmin_pass.value=="")
  {alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.GLoginform.GAdmin_pass.focus();
  return;}
  
  pattern = /([^a-z0-9A-Z])/;
  pattern = document.GLoginform.GAdmin_pass.value.match(pattern);
		
		if(pattern != null) {
			alert("ºñ¹Ð¹øÈ£´Â ¿µ¹®ÀÚ ¶Ç´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù.	");
			document.GLoginform.GAdmin_pass.focus();
			return;
		}
  
  
 document.GLoginform.submit();
 return true;
}

function editit()
{ 
 if (document.makeboard.admin_pass.value=="")
  {alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.makeboard.admin_pass.focus();
  return;}
 if (document.makeboard.admin_passre.value=="")
  {alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» ÇØÁÖ½Ê½Ã¿ä");
  document.makeboard.admin_passre.focus();
  return;}
 if (document.makeboard.board_title.value=="")
  {alert("°Ô½ÃÆÇ ÀÌ¸§À» ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.makeboard.board_title.focus();
  return;}
 document.makeboard.submit();
 return true;
}

function write()
{ 
 if (document.writeform.name.value=="")
  {alert("ÀÛ¼ºÀÚ ÀÌ¸§À» ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.writeform.name.focus();
  return;}
 if (document.writeform.title.value=="")
  {alert("±ÛÁ¦¸ñÀ» ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.writeform.title.focus();
  return;}
 if (document.writeform.content.value=="")
  {alert("±Û³»¿ëÀ» ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.writeform.content.focus();
  return;}
 if (document.writeform.password.value=="")
  {alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.writeform.password.focus();
  return;}
 
 document.writeform.submit();
 return true;
}

function search_wd()
{ 
 if (document.search.search_wd.value=="")
  {alert("°Ë»öÇÒ ´Ü¾î¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.search.search_wd.focus();
  return;}
 document.search.submit();
 return true;
}

function dellist()
{ 
 if (document.deleteform.password.value=="")
  {alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
  document.deleteform.password.focus();
  return;}
 document.deleteform.submit();
 return true;
}

function comment()
{ 
 document.commentform.submit();
 return true;
}

function Delete(board_id) {
		if (confirm('\nÇØ´ç°Ô½ÃÆÇÀ» Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')) {
			location.href="Admin_dropboard.asp?board_id="+board_id;
			}
	}
	
function AdminDelete(board_id,page,num) {
		if (confirm('\nÀÌ±ÛÀ» Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')) {
			document.admindeletefrm.submit();
			}
	}

function BoundDelete() {
		if (confirm('\n¼±ÅÃµÈ±ÛÀ» Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')) {
			document.bound.submit();
			}
	}
	
function BoundCheck() {

	var j, Cnt = new Number(document.bound.rwchk.value);

	for(j = 1; j <= Cnt; j++) {
		document.bound["Chk" + j].checked = !document.bound["Chk" + j].checked;
	}
}

