// ¸Þ´º½ºÅ©¸³Æ®
function admin() // °ü¸®ÀÚ·Î±×ÀÎ
{ self.location.href = '/admin/'; }

function sub1_1() // Ã»¼Ò³âÀ¯ÇØÈ¯°æ°¨½Ã´Ü - ÃëÁö¹×¸ñÀû
{ self.location.href = '/html/sub_1_1.htm'; }

function sub1_2() // È°µ¿³»¿ª
{ self.location.href = '/html/sub_1_2.htm'; }

function sub1_3() // Á¶Á÷±¸¼º
{ self.location.href = '/html/sub_1_3.htm'; }

function sub1_4() // Ã£¾Æ¿À½Ã´Ã ±æ
{ self.location.href = '/html/sub_1_4.htm'; }

function sub1_5() // ÀÎ»ç¸»
{ self.location.href = '/html/sub_1_5.htm'; }

function sub2_1() // À¯ÇØÈ¯°æ°³¿ä
{ self.location.href = '/html/sub_2_1.htm'; }

function sub2_2() // À¯ÇØ¸ÅÃ¼
{ self.location.href = '/html/sub_2_2.htm'; }

function sub2_3() // À¯ÇØ¾÷¼Ò
{ self.location.href = '/html/sub_2_3.htm'; }

function sub2_4() // À¯ÇØ¾à¹°/À¯ÇØ¹°°Ç
{ self.location.href = '/html/sub_2_4.htm'; }

function sub3_1() // Ã»¼Ò³âÇåÀå
{ self.location.href = '/html/sub_3_1.htm'; }

function sub3_2() // Ã»¼Ò³âº¸È£¹ý
{ self.location.href = '/html/sub_3_2.htm'; }

function sub3_3() // Ã»¼Ò³â ¼ºº¸È£¿¡ °üÇÑ¹ý·ü
{ self.location.href = '/html/sub_3_3.htm'; }

function sub3_4() // Ã»¼Ò³â º¸È£¹ý À§¹Ý½Ã Ã³¹ú³»¿ë
{ self.location.href = '/html/sub_3_4.htm'; }

function sub3_5() // ¿µÈ­¹×ºñµð¿À¹°ÀÇÁøÈï¿¡°üÇÑ¹ý·ü
{ self.location.href = '/html/sub_3_5.htm'; }

function sub4_1() // Ã»¼Ò³âÀ¯ÇØÇÑ°æ ½Å°í - ÀÌ¸ÞÀÏ½Å°í
{ self.location.href = '/html/sub_4_1.htm'; }

function sub4_2() // Ã»¼Ò³âÀ¯ÇØÇÑ°æ ½Å°í - °Ô½ÃÆÇ½Å°í
{ self.location.href = '/board/notify/list.php3?code=YouthNoti112'; }

function sub4_3() // Ã»¼Ò³âÀ¯ÇØÇÑ°æ ½Å°í - ÀüÈ­»ó´ã¿¹¾à
{ self.location.href = '/html/sub_4_3.htm'; }

function sub4_4() // Ã»¼Ò³âÀ¯ÇØÇÑ°æ ½Å°í - Áú¹®°ú´äº¯
{ self.location.href = '/board/qna/list.php3?code=YouthQna'; }

function sub5_1() // Ã»¼Ò³â¸¶´ç - °øÁö»çÇ×
{ self.location.href = '/board/news/list.php3?code=YouthNews'; }

function sub5_2() // Ã»¼Ò³â¸¶´ç - ÀÚÀ¯°Ô½ÃÆÇ
{ self.location.href = '/board/board/list.php3?code=YouthBoard'; }

function sub5_3() // Ã»¼Ò³â¸¶´ç - È«º¸°Ô½ÃÆÇ
{ self.location.href = '/board/pr/list.php3?code=YouthPr'; }

function sub5_4() // Ã»¼Ò³â¸¶´ç - ÀÚ¿øºÀ»çÀÚ ¸ðÁý
{ self.location.href = '/html/sub_5_4.htm'; }

/* function sub5_5() // Ã»¼Ò³â¸¶´ç - Æ÷Åä°¶·¯¸®
{ self.location.href = 'http://youthcb.net/hboard/hub/hub.php?req=&bcode=4'; }
*/
function sub6_1() // µµ³»±â°ü¹×´ÜÃ¼
{ self.location.href = '/html/sub_6_1.htm'; }

function sub6_2() // Á¤ºÎ±â°ü¹×´ÜÃ¼
{ self.location.href = '/html/sub_6_2.htm'; }

function sub7_1() // »çÀÌÆ®¸Ê
{ self.location.href = '/html/sub_7_1.htm'; }

function popup_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';
  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);
}
// TOP ·Î±×ÀÎ ºÎºÐ ½ÃÀÛ
function login_check() {
if (!login_form.id.value) {
   alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À");
   login_form.id.focus();
   return false;
}
else if (!login_form.passwd.value) {
   alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À");
   login_form.passwd.focus();
   return false;
} 
return true;
}
// TOP ·Î±×ÀÎ ºÎºÐ ³¡

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 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_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;
}

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_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 local(ref){
	  var table_name = document.form.table_name;

      ref = ref + "?table_name="+table_name.value;
	  location.href = ref;
}

function popup_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';
	  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 openwindow(name,url,width,height,scrollbar) {
	scrollbar_str = scrollbar ? 'yes' : 'no';
	window.open(url,name,'width='+width+',height='+height+',scrollbars='+scrollbar_str);
}
