// Å¬¸¯½Ã ³»¿ëÁö¿ì±â ÇÔ¼ö
function clear_content(name) {
	if (name == "desire_pay")
	{
		if (document.all.desire_pay.value == "¢Æ Èñ¸Á±Þ¿© ¢Æ")
		{
			document.all.desire_pay.value = "";
		}
	}
	if (name == "taste")
	{
		if (document.all.taste.value == "10ÀÚÀÌÇÏ·Î ÀÛ¼ºÇÏ¼¼¿ä")
		{
			document.all.taste.value = "";
		}
	}
	if (name == "skill")
	{
		if (document.all.skill.value == "10ÀÚÀÌÇÏ·Î ÀÛ¼ºÇÏ¼¼¿ä")
		{
			document.all.skill.value = "";
		}
	}
	if (name.value == "300ÀÚ ÀÌ³»·Î ÀÛ¼ºÇÏ¿© ÁÖ¼¼¿ä.")
	{
		name.value = "";
	}
	if (name.value == "500ÀÚ ÀÌ³»·Î ÀÛ¼ºÇÏ¿© ÁÖ¼¼¿ä.")
	{
		name.value = "";
	}
	if (name.value == "700ÀÚ ÀÌ³»·Î ÀÛ¼ºÇÏ¿© ÁÖ¼¼¿ä.")
	{
		name.value = "";
	}
	if (name.value == "2500ÀÚ ÀÌ³»·Î ÀÛ¼ºÇÏ¿© ÁÖ¼¼¿ä.")
	{
		name.value = "";
	}
}
// resume º§·ù Ã¼Å© ÇÔ¼ö
function check_value() {

	var form1;form1 = document.resume_sub;
	if (form1.upload_photo.value == "")
	{
		alert('»çÁøÀ» ¿Ã·Á ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.');
		return false;
	}
	if (form1.desire_section1.value == "")
	{
		alert('Áö¿øºÎ¹®ÀÇ 1Áö¸Á ¼±ÅÃÇØ ÁÖ½Ê½Ã¿ä.');
		form1.desire_section1.focus();
		return false;
	}
	if (form1.desire_section2.value == "")
	{
		alert('Áö¿øºÎ¹®ÀÇ 2Áö¸Á ¼±ÅÃÇØ ÁÖ½Ê½Ã¿ä.');
		form1.desire_section2.focus();
		return false;
	}
	if (form1.desire_position.value == "")
	{
		alert('Áö¿øºÎ¹®ÀÇ Èñ¸ÁÁ÷±ÞÀ» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿ä.');
		form1.desire_position.focus();
		return false;
	}
	if (form1.desire_pay.value == "¢Æ Èñ¸Á±Þ¿© ¢Æ" || form1.desire_pay.value == "")
	{
		alert('Áö¿øºÎ¹®ÀÇ Èñ¸Á±Þ¿©À» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.desire_pay.focus();
		return false;
	}
	if (form1.desire_pay.value == "¢Æ Èñ¸Á±Þ¿© ¢Æ" || form1.desire_pay.value == "")
	{
		alert('Áö¿øºÎ¹®ÀÇ Èñ¸Á±Þ¿©À» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.desire_pay.focus();
		return false;
	}
	if (form1.name_hangul1.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.name_hangul1.focus();
		return false;
	}
	if (form1.name_hangul2.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.name_hangul2.focus();
		return false;
	}
	if (form1.name_hanja1.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.name_hanja1.focus();
		return false;
	}
	if (form1.name_hanja2.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.name_hanja2.focus();
		return false;
	}
	if (form1.birthday_y.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ »ý³â¿ùÀÏÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.birthday_y.focus();
		return false;
	}
	if (form1.birthday_m.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ »ý³â¿ùÀÏÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.birthday_m.focus();
		return false;
	}
	if (form1.birthday_d.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ »ý³â¿ùÀÏÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.birthday_d.focus();
		return false;
	}
	if (form1.id_no1.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.id_no1.focus();
		return false;
	}

	if (form1.idno_check.value == "")
	{
		alert('ÁÖ¹Îµî·Ï¹øÈ£ Áßº¹°Ë»ç¸¦ ÇØ ÁÖ½Ê½Ã¿À.');
		form1.id_no1.focus();
		return false;
	}

	if (form1.id_no2.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.id_no2.focus();
		return false;
	}
	if (form1.address.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ¿ìÆí¹øÈ£°Ë»öÀ» ´©¸£½ÅÈÄ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.address.focus();
		return false;
	}
	if (form1.phone1.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ÁýÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.phone1.focus();
		return false;
	}
	if (form1.phone2.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ÁýÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.phone2.focus();
		return false;
	}
	if (form1.phone3.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ÁýÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.phone3.focus();
		return false;
	}
	if (form1.mobile1.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ÇÚµåÆù¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.mobile1.focus();
		return false;
	}
	if (form1.mobile2.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ÇÚµåÆù¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.mobile2.focus();
		return false;
	}
	if (form1.mobile3.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ÇÚµåÆù¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.mobile3.focus();
		return false;
	}
	if (form1.email.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ E-mailÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.email.focus();
		return false;
	}
	if (form1.height.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ½ÅÀåÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.height.focus();
		return false;
	}
	if (form1.weight.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ Ã¼ÁßÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.weight.focus();
		return false;
	}
	if (form1.sight_r.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ½Ã·ÂÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.sight_r.focus();
		return false;
	}
	if (form1.sight_l.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ ½Ã·ÂÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.sight_l.focus();
		return false;
	}
	if (form1.taste.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ Ãë¹Ì¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.taste.focus();
		return false;
	}
	if (form1.skill.value == "")
	{
		alert('ÀÎÀû»çÇ×ÀÇ Æ¯±â¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.skill.focus();
		return false;
	}
	if (form1.passwd.value == "")
	{
		alert('ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		form1.passwd.focus();
		return false;
	}
	
}
// ÀÔ·Â°ªÀÌ ¼ýÀÚÀÌ¸é ÀÔ·Â, ¼ýÀÚ°¡ ¾Æ´Ï¸é ÀÔ·Â ¸øÇÏ°Ô ÇÔ.
function check_int(eve) {
	eve1 = eve.value;
	re	 = /[^0-9,-]/gi;
	eve.value = eve1.replace(re,"");
}
// ´ÞÀÔ·Â½Ã 1-12 ±îÁö¸¸ ÀÔ·Â¹Þ°Ô ÇÔ. 9ÀÌÇÏ 1ÀÚ¸® °æ¿ì 0 À» ¾Õ¿¡ ºÙÇôÁÜ
function check_month(mon) {
	mon1 = mon.value;
	if (mon1 !== "")
	{
		if (mon1 > 12 || mon1 < 1)
		{
			alert('1 ºÎÅÍ 12 ±îÁö ¼ýÀÚ¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
			mon.focus();
			mon.value = "";
		}
		if (mon1 < 10 && mon1.length == 1)
		{
			mon.value = "0"+mon1;
		}
	}
}	
// ´ÞÀÔ·Â½Ã 1-31 ±îÁö¸¸ ÀÔ·Â¹Þ°Ô ÇÔ. 31ÀÌÇÏ 1ÀÚ¸® °æ¿ì 0 À» ¾Õ¿¡ ºÙÇôÁÜ
function check_day(mon) {
	mon1 = mon.value;
	if (mon1 !== "")
	{
		if (mon1 > 32 || mon1 < 1)
		{
			alert('1 ºÎÅÍ 31 ±îÁö ¼ýÀÚ¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
			mon.focus();
			mon.value = "";
		}
		if (mon1 < 10 && mon1.length == 1)
		{
			mon.value = "0"+mon1;
		}
	}
}
function check_id1(id) {
	id1 = id.value;
	if (id1 !== "")
	{
		if (id1.length !== 6)
		{
			alert('Àß¸øµÈ Ç¥ÇöÀÔ´Ï´Ù. 6ÀÚ¸®¸¦ Á¤È®È÷ ÀÔ·ÂÇØÁÖ¼¼¿ä');
			id.value = "";
			id.focus();
		}
	}
}
function check_id2(id) {
	id1 = id.value;
	if (id1 !== "")
	{
		if (id1.length !== 7)
		{
			alert('Àß¸øµÈ Ç¥ÇöÀÔ´Ï´Ù. 7ÀÚ¸®¸¦ Á¤È®È÷ ÀÔ·ÂÇØÁÖ¼¼¿ä');
			id.value = "";
			id.focus();
		}
	}
	var chk=0;
	var form1;form1 = document.resume_sub;
	for (var i = 0; i <=5 ; i++) { 
	chk = chk + ((i%8+2) * parseInt(form1.id_no1.value.substring(i,i+1))) 
	} 
	for (var i = 6; i <=11 ; i++) { 
	chk = chk + ((i%8+2) * parseInt(form1.id_no2.value.substring(i-6,i-5))) 
	} 

	chk = 11 - (chk %11) 
	chk = chk % 10 

	if (chk != form1.id_no2.value.substring(6,7)) { 
		form1.id_no1.value = "" 
		form1.id_no2.value = "" 
		alert ('¸ÂÁö ¾Ê´Â ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù.'); 
		document.resume_sub.id_no1.focus();
	}
}
/*
' ------------------------------------------------------------------
' Function    : fc_chk_byte(aro_name)
' Description : ÀÔ·ÂÇÑ ±ÛÀÚ¼ö¸¦ Ã¼Å©
' Argument    : Object Name(±ÛÀÚ¼ö¸¦ Á¦ÇÑÇÒ ÄÁÆ®·Ñ)
' Return      : 
' ------------------------------------------------------------------
*/
function fc_chk_byte(aro_name,ari_max,change_value)
{

   var ls_str     = aro_name.value; // ÀÌº¥Æ®°¡ ÀÏ¾î³­ ÄÁÆ®·ÑÀÇ value °ª
   var li_str_len = ls_str.length;  // ÀüÃ¼±æÀÌ

   // º¯¼öÃÊ±âÈ­
   var li_max      = ari_max; // Á¦ÇÑÇÒ ±ÛÀÚ¼ö Å©±â
   var i           = 0;  // for¹®¿¡ »ç¿ë
   var li_byte     = 0;  // ÇÑ±ÛÀÏ°æ¿ì´Â 2 ±×¹Ü¿¡´Â 1À» ´õÇÔ
   var li_len      = 0;  // substringÇÏ±â À§ÇØ¼­ »ç¿ë
   var ls_one_char = ""; // ÇÑ±ÛÀÚ¾¿ °Ë»çÇÑ´Ù
   var ls_str2     = ""; // ±ÛÀÚ¼ö¸¦ ÃÊ°úÇÏ¸é Á¦ÇÑÇÒ¼ö ±ÛÀÚÀü±îÁö¸¸ º¸¿©ÁØ´Ù.

   for(i=0; i< li_str_len; i++)
   {
      // ÇÑ±ÛÀÚÃßÃâ
      ls_one_char = ls_str.charAt(i);

      // ÇÑ±ÛÀÌ¸é 2¸¦ ´õÇÑ´Ù.
      if (escape(ls_one_char).length > 4)
      {
         li_byte = li_byte+1;  // ÇöÀç´Â ÇÑ±Û, ¿µ¾î ¸ðµÎ ÇÑ±ÛÀÚ·Î Ãë±ÞÇÏ±â À§ÇØ °ªÀÌ 1ÀÌ´Ù
      }
      // ±×¿ÜÀÇ °æ¿ì´Â 1À» ´õÇÑ´Ù.
      else
      {
         li_byte++;
      }

      // ÀüÃ¼ Å©±â°¡ li_max¸¦ ³ÑÁö¾ÊÀ¸¸é
      if(li_byte <= li_max)
      {
         li_len = i + 1;
      }
	  change_value.value = li_len;
   }
   
   // ÀüÃ¼±æÀÌ¸¦ ÃÊ°úÇÏ¸é
   if(li_byte > li_max)
   {
      alert( li_max + " ±ÛÀÚ¸¦ ÃÊ°ú ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù. \n ÃÊ°úµÈ ³»¿ëÀº ÀÚµ¿À¸·Î »èÁ¦ µË´Ï´Ù. ");
      ls_str2 = ls_str.substr(0, li_len);
      aro_name.value = ls_str2;
 	  change_value.value = li_len;
      
   }
   aro_name.focus();   
}

/*
' ------------------------------------------------------------------
' Function    : fc_chk2()
' Description : EnterÅ°¸¦ ¸øÄ¡°ÔÇÑ´Ù.
' Argument    : 
' Return      : 
' ------------------------------------------------------------------
*/
function fc_chk2()
{
  // if(event.keyCode == 13)
  //    event.returnValue=false;
}
//±ÛÀÚ¼ö¸¦ 10ÀÚ·Î Á¦ÇÑÇÕ´Ï´Ù.<br>
//10ÀÚ ÀÌ»ó ÀÔ·ÂµÇ¸é ÀÚµ¿À¸·Î Àß¶ó¹ö¸®°í ³ª¸ÓÁö¸¸ ³²°ÜµÓ´Ï´Ù.<br>
//<textarea name="txt_aaa" rows="5" cols="60" onkeyup="fc_chk_byte(this,10);" onkeyup="fc_chk2()" onkeypress="fc_chk2()"></textarea>

//°æ·Â ¼Ò°³¼­ Áö¿ì±â
function carreer_del(db,idx,id_no,r_no) {
	if (confirm('Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?'))
	{
		var del_url = "carreer_sub.asp?mode=carreer_del&idx=" + idx + "&id_no=" + id_no + "&r_no=" + r_no;
		location.href(del_url);
	} else {
	alert('Ãë¼ÒµÇ¾ú½À´Ï´Ù');
	}
}
// ¿¹ (³âµµ ÀÔ·Â½Ã 4ÀÚ¸® ÀÔ·Â ¹Þ±â)
function check_byte(length,object) {
   {
	   object1 = object.value;
	   if (object1.length !== length && object1 !== "")
	   {
		   alert("ÀÔ·ÂÀÌ Àß¸øµÇ¾ú½À´Ï´Ù. "+ length+ " ÀÚ¸®·Î Á¤È®È÷ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		   object.focus();
	   }
   }
}
// Ã¼Å©¹Ú½º Ã¼Å©¿©ºÎ ÆÄ¾ÇÇÏ±â
function check_box(name,idx,rno) {
	var f_value;f_value = 0;
	var s_value;s_value = 0;
	var t_value;t_value = 0;
	var d_value;d_value = 2;
	var f_full;
	var d_full;
	var f_score; //1Â÷ÇÕ°Ý Á¡¼ö
	var s_score; //2Â÷ÇÕ°Ý Á¡¼ö
	var t_score; //3Â÷ÇÕ°Ý Á¡¼ö
	var f_select;
	var s_select;
	var test_result;
	f_full = "document.all.f_test_" + name + ".checked";
	f_full = eval(f_full);
	s_full = "document.all.s_test_" + name + ".checked";
	s_full = eval(s_full);
	t_full = "document.all.t_test_" + name + ".checked";
	t_full = eval(t_full);
	d_full1 = "document.all.desire_selected_"+ name + "[0].checked";
	d_full2 = "document.all.desire_selected_"+ name + "[1].checked";
	d_full1 = eval(d_full1);
	d_full2 = eval(d_full2);
	f_score = "document.all.f_score_" + name + ".value";
	f_score = eval(f_score);
	s_score = "document.all.s_score_" + name + ".value";
	s_score = eval(s_score);
	t_score = "document.all.t_score_" + name + ".value";
	t_score = eval(t_score);
	first_select = "document.all.first_select.value";
	first_select = eval(first_select);
	second_select = "document.all.second_select.value";
	second_select = eval(second_select);
	test_result = "document.all.test_result.value";
	test_result = eval(test_result);

	if (f_full == true)
	{
		f_value = 1;
	}
	if (s_full == true)
	{
		s_value = 1;
	}
	if (t_full == true)
	{
		t_value = 1;
	}
	if (d_full1 == true)
	{
		d_value = 0;
	}
	if (d_full2 == true)
	{
		d_value = 1;
	}
	if (d_value == 2)
	{
		alert('Áö¿ø1,2 Áß ÇÑ°¡Áö¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.');
		return false;
	}

	location.href = "volunteer_sub.asp?desire_selected="+ d_value +"&f_test=" + f_value + "&s_test=" + s_value + "&t_test=" + t_value + "&r_no=" + rno + "&idx=" + idx + "&f_score=" + f_score + "&s_score=" + s_score +"&t_score="+ t_score + "&first_select=" + first_select + "&second_select=" + second_select + "&test_result=" + test_result;

}
// º§·ù°ª ÇÕÄ¡±â (¿¢¼¿ÀÀ¿ë)
function add_value(obj) {
	var frm
	var frm2
		frm = "document.summary." + obj
		frm = eval(frm);
		frm2 = "document.summary"
		frm2 = eval(frm2);

	if (obj == "acc_inven")
	{
		var a, b, c

		a = frm2.account.value;
		b = frm2.inventory.value;

		if (a == "")
		{
			a = 0;
		}
		if (b == "")
		{
			b = 0;
		}

		a = parseInt(a);
		b = parseInt(b);

		frm.value = a + b;	

		c = frm.value;
		d = frm2.in_ta_in_le.value;
		if (c == "")
		{
			c = 0;
		}
		if (d == "")
		{
			d = 0;
		}
		c = parseInt(c);
		d = parseInt(d);

		frm2.total_jasan.value = c + d;


	}
	if (obj == "in_ta_in_le")
	{
		var a, b

		a = frm2.investment.value;
		b = frm2.tangible.value;
		c = frm2.intangible.value;
		d = frm2.lease.value;

		if (a == "")
		{
			a = 0;
		}
		if (b == "")
		{
			b = 0;
		}
		if (c == "")
		{
			c = 0;
		}
		if (d == "")
		{
			d = 0;
		}
		a = parseInt(a);
		b = parseInt(b);
		c = parseInt(c);
		d = parseInt(d);

		frm.value = a + b + c + d;

		e = frm.value;
		f = frm2.acc_inven.value;

		if (e == "")
		{
			e = 0;
		}
		if (f == "")
		{
			f = 0;
		}
		e = parseInt(e);
		f = parseInt(f);

		frm2.total_jasan.value = e + f;

	}
	if (obj == "total_lia")
	{
		var a, b, c

		a = frm2.crnt_lia.value;
		b = frm2.fixed_lia.value;

		if (a == "")
		{
			a = 0;
		}
		if (b == "")
		{
			b = 0;
		}

		a = parseInt(a);
		b = parseInt(b);

		frm.value = a + b;	
		}
	if (obj == "total_capital")
	{
		var a, b

		a = frm2.capital.value;
		b = frm2.ca_surplus.value;
		c = frm2.profit.value;
		d = frm2.settle.value;

		if (a == "")
		{
			a = 0;
		}
		if (b == "")
		{
			b = 0;
		}
		if (c == "")
		{
			c = 0;
		}
		if (d == "")
		{
			d = 0;
		}
		a = parseInt(a);
		b = parseInt(b);
		c = parseInt(c);
		d = parseInt(d);

		frm.value = a + b + c + d;
	}
}
function change_value() {
	document.summary.write2.value = "";
	document.summary.submit();
}
function model_auditor(idx,mode) {
	var frm, frm2;
	frm = "document.auditor_model"+ idx + ".auditor_mode";
	frm = eval(frm);

	if (mode == "m")
	{
		frm.value = "auditor_modify";
	}
	if (mode == "d")
	{
		frm.value = "auditor_del";
	}
	frm2 = "document.auditor_model"+ idx;
	frm2 = eval(frm2);
	frm2.submit();
}
function model_committee(idx,mode) {
	var frm, frm2;
	frm = "document.committee_model"+ idx + ".committee_mode";
	frm = eval(frm);

	if (mode == "m")
	{
		frm.value = "committee_modify";
	}
	if (mode == "d")
	{
		frm.value = "committee_del";
	}
	frm2 = "document.committee_model"+ idx;
	frm2 = eval(frm2);
	frm2.submit();
}
function model_outside(idx,mode) {
	var frm, frm2;
	frm = "document.outside_model"+ idx + ".outside_mode";
	frm = eval(frm);

	if (mode == "m")
	{
		frm.value = "outside_modify";
	}
	if (mode == "d")
	{
		frm.value = "outside_del";
	}
	frm2 = "document.outside_model"+ idx;
	frm2 = eval(frm2);
	frm2.submit();
}

// ÇÃ·¡½Ã ¸Þ´º ¸µÅ© ¼³Á¤
// ±âÁØ ---------------
// depth¿¡ µû¶ó, ÆäÀÌÁö ÀÌµ¿
// ¿¹) 624
//  6(depth1)  2(depth2)  4(depth3)
function goto_url(menu_num)
{
//alert(menu_num);
	switch(menu_num)
	{
		case 100 : // È¸»ç¼Ò°³
			location.href="/jap/introduce/ceo.asp"; // CEO ÀÎ»ç¸»
		break;
			case 110 : // CEO ÀÎ»ç¸»
				location.href="/jap/introduce/ceo.asp"; 
			break;
			case 120 : // È¸»ç¼Ò°³
				location.href="/jap/introduce/introduce.asp"; 
			break;
			case 130 : // °æ¿µÀÌ³ä
				location.href="/jap/introduce/manageidea.asp"; 
			break;
			case 140 : // È¸»ç ¿¬Çõ
				location.href="/jap/introduce/history.asp"; 
			break;
			case 150 : // »ç¾÷¿µ¿ª
				location.href="/jap/introduce/Barea.asp"; 
			break;
			case 160 : // Á¶Á÷µµ
				location.href="/jap/introduce/organ.asp"; 
			break;
			case 170 : // °è¿­»ç ¼Ò°³
				location.href="/jap/introduce/relation.asp"; 
			break;
			case 180 : // ¿À½Ã´Â ±æ
				location.href="/jap/introduce/location.asp";
			break;

		case 200: // Á¦Ç° ¼Ò°³
			location.href="/jap/product/mobileP.asp"; // Mobile Phone
		break;
			case 210 : // Mobile Phone
				location.href="/jap/product/mobileP.asp";
			break;
			case 220 : // Memory Module
				location.href="/jap/product/module.asp";
			break;
			case 230 : // TFT-LCD
				location.href="/jap/product/lcd.asp";
			break;
			case 240 : // Package Subtrate
				location.href="/jap/product/substrate.asp";
			break;
			case 250 :  // High Layer Board
				location.href="/jap/product/highLayerB.asp";
			break;
			case 260 : // Automotive
				location.href="/jap/product/automotive.asp";
			break;
			case 270 : // FPCB
				window.open("http://www.interflex.co.kr","new","");
			break;
			case 280 : // Á¦Ç°¹®ÀÇ
				location.href="/jap/product/product_q.asp";
			break;
		case 300 :// ¿¬±¸ - ±â¼ú  
			location.href="/jap/tech_research/mlb.asp";
		break;
			case 310 :// Technical Roadmap
				location.href="/jap/tech_research/mlb.asp";
			break;
				case 311 :// Technical Roadmap
				location.href="/jap/tech_research/mlb.asp";
				break;
				case 312 :// Technical Roadmap
				location.href="/jap/tech_research/pkg.asp";
				break;
				case 313 :// Technical Roadmap
				location.href="/jap/tech_research/memory.asp";
				break;
			case 320 :// °øÁ¤µµ
				location.href="/jap/tech_research/flow_sheet.asp";
			break;
			case 330 :// »ý»ê´É·Â
				location.href="/jap/tech_research/capacity.asp";
			break;
			case 340 :// ºÎ¼³ ¿¬±¸¼Ò 
				location.href="/jap/tech_research/lab.asp";
			break;
			case 350 :// ±â¼ú°ü·Ã Site
				location.href="/jap/tech_research/site.asp";
			break;
			case 360 :// ±â¼ú¹®ÀÇ
				location.href="/jap/tech_research/tech_q.asp";
			break;

		case 400 : // Ç°Áú - È¯°æ
			location.href="/jap/quality_env/Bpolicy.asp"; // Ç°Áú ¹æÄ§
		break;
			case 410 : // Ç°Áú °æ¿µ ¹æÄ§
				location.href="/jap/quality_env/Bpolicy.asp";
			break;
				case 411 : // Ç°Áú °æ¿µ ¹æÄ§
					location.href="/jap/quality_env/Bpolicy.asp";
				break;
				case 412 : // Ç°Áú °æ¿µ Ã¼Á¦
					location.href="/jap/quality_env/Bsystem.asp";
				break;
				case 413 : // Ç°Áú ÀÎÁõ ÇöÈ²
					location.href="/jap/quality_env/certification.asp";
				break;
				case 414 : // Ç°Áú ºñÀü
					location.href="/jap/quality_env/vision.asp";
				break;
				case 415 : // Ç°Áú È°µ¿
					location.href="/jap/quality_env/qualityAc.asp";
				break;
			case 420 : // ½Å·Ú¼º °Ë»ç Àåºñ
					location.href="/jap/quality_env/authen_Be.asp";
			break;
				case 421 : // ½Å·Ú¼º °Ë»ç Àåºñ
					location.href="/jap/quality_env/authen_Be.asp";
				break;
				case 422 : // Afi Àåºñ
					location.href="/jap/quality_env/authen_afi.asp";
				break;
			
			case 430 : // Ç°Áú ¹®ÀÇ
				location.href="/jap/quality_env/quality_q.asp";
			break;

			case 440 : // È¯°æ ¹æÄ§
				location.href="/jap/quality_env/env_policy.asp";
			break;
				case 441 : // Ç°Áú °æ¿µ ¹æÄ§
					location.href="/jap/quality_env/env_policy.asp";
				break;
				case 442 : // È¯°æ ÀÎÁõ
					location.href="/jap/quality_env/env_certification.asp";
				break;
				case 443 : // ´ë±â °ü¸®
					location.href="/jap/quality_env/env_atmosphere.asp";
				break;
				case 444 : // ¼öÁú °ü¸®
					location.href="/jap/quality_env/env_waterP.asp";
				break;

		case 500 : // È«º¸¶ó¿îÁö
			location.href="/board/board_l.asp?board_id=jap_news"; // ´º½º
		break;
			case 510 : // ´º½º
				location.href="/board/board_l.asp?board_id=jap_news";
			break;
			case 520 : // È«º¸¿µ»ó 
				location.href="/jap/pr_lounge/movie.asp";
			break;
			case 530 : // ¿Â¶óÀÎ ºê·Î¼Å
				location.href="/jap/pr_lounge/brochure.asp";
			break;

		case 600 : // IR
				location.href="/jap/ir/BS.asp";
		break;
			case 610 : // IR Á¤º¸
			window.open('/jap/ir/jugapop.asp','juga','width=500 height=235 toolbars=no');// IR Á¤º¸
			break;
				case 611 : // °ø½Ã/IR ÀÚ·á
					location.href="/jap/board/board_l.asp?board_id=irData";
				break;
				case 612 : // »ç¾÷°¨»çº¸°í¼­
					location.href="/jap/board/board_l.asp?board_id=bizRep";
				break;
				case 613 : // ±â¾÷ºÐ¼®¸®Æ÷Æ®
					location.href="/jap/board/board_l.asp?board_id=comAnaly";
				break;
				case 614 : // ÁÖ°¡ Á¤º¸
					window.open('/ir/jugapop.asp','juga','width=500 height=235 toolbars=no');
				break;
			case 620 : // ¿ä¾à Àç¹« ÀçÇ¥
				location.href="/jap/ir/BS.asp";
			break;
				case 621 : // ¿ä¾à Àç¹« ÀçÇ¥
				location.href="/jap/ir/BS.asp";
				break;
				case 622 : // ¿ä¾à Àç¹« ÀçÇ¥
				location.href="/jap/ir/profitLoss.asp";
			break;
			case 630 : // ±â¾÷ Áö¹è±¸Á¶
				location.href="/jap/ir/com.asp";
			break;
				case 631 : // È¸»ç°³¿ä
					location.href="/jap/ir/com.asp";
				break;
				case 632 : // ÁÖÁÖ
					location.href="/jap/ir/stockholder.asp";
				break;
				case 633 : // ÀÌ»çÈ¸
					location.href="/jap/ir/council.asp";
				break;
				case 634 : // °¨»ç±â±¸
					location.href="/jap/ir/inspection.asp";
				break;
				case 635 : // °¨»ç±â±¸
					location.href="/jap/ir/irOpen.asp";
				break;
			
		case 700 : // ÀÎÀç Ã¤¿ë 
			location.href="/jap/board/board_l.asp?board_id=recruit";	 //Ã¤¿ë °ø°í
		break;
			case 710 : // Ã¤¿ë °ø°í
				location.href="/jap/board/board_l.asp?board_id=recruit";
			break;
				case 711 : // Á¤½Ã Ã¤¿ë °ø°í
					location.href="/jap/board/board_l.asp?board_id=recruit";
				break;
				case 712 : // »ó½Ã Ã¤¿ë °ø°í
					location.href="/jap/board/board_l.asp?board_id=ordinary";
				break;
				case 713 : // Ã¤¿ë¹®ÀÇ
					location.href="/jap/recruit/recruit_q.asp";
				break;
				case 714 : // ±âÅ¸ QnA
					location.href="/jap/recruit/Q&A.asp";
				break;
			break;
			case 720 : // ÀÎ»ç Á¦µµ 
				location.href="/jap/recruit/performance.asp";
			break;

		case 800 : 
			location.href="/jap/index2.asp";
		break;
			case 810 : // home
				location.href="/jap/index2.asp";
			break;
			case 820 : // sitemap 
				location.href="/jap/sitemap/sitemap.asp";
			break;
			case 830 : // contact us
				location.href="mailto:info@kcg.co.kr";
			break;
			case 840 : // client center
				location.href="/jap/customer_center/product_q.asp";
			break;
			case 850 : // intranet
				location.href="/jap/intranet/intranet.asp";
			break;

		case 900 : 
			alert("¾ÆÁ÷ ÁØºñÁßÀÔ´Ï´Ù. *^^* ");
		break;
			case 910 : // 
				location.href="/";
			break;
			case 920 : // 
				location.href="/eng/";
			break;
			case 930 : // 
				location.href="/chi/";
			break;

		case 1010 : // Á¦Ç° ¹®ÀÇ 
			location.href="/jap/customer_center/product_q.asp";
		break;
		case 1020 : // ±â¼ú ¹®ÀÇ
			location.href="/jap/customer_center/tech_q.asp";
		break;
		case 1030 : // Ç°Áú ¹®ÀÇ 
			location.href="/jap/customer_center/quality_q.asp";
		break;
		case 1040 : // Ã¤¿ë¹®ÀÇ
			location.href="/jap/customer_center/recruit_q.asp";
		break;
	}
}

function checkForm() 
{
	var f = document.frm;
	// Á¦¸ñ
	if (!f.title.value)
	{
		alert('Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		f.title.focus();
		return false;
	}
	// ÀÛ¼ºÀÚ
	if (!f.name.value)
	{
		alert('¼º¸í ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		f.name.focus();
		return false;
	}
	// ¿¬¶ôÃ³
	if (!f.tel.value)
	{
		alert('¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		f.tel.focus();
		return false;
	}
	// ÀÌ¸ÞÀÏ
	if (!f.email.value && f.email.value.search(/(\s+)@(\s+)\.(\s+)/) == -1 ) 
	{ 
		alert("e-mail ÁÖ¼Ò°¡ ºÎÁ¤È®ÇÕ´Ï´Ù."); 
		f.email.focus(); 
		return false; 
	}
	return true;
}

function checkForm_carreer() 
{
	var f = document.carreer_sub;
	if (f.carreer_contents.value == "" || f.carreer_contents.value == "2500ÀÚ ÀÌ³»·Î ÀÛ¼ºÇÏ¿© ÁÖ¼¼¿ä.") 
	{ 
		f.carreer_contents.value = " ½ÅÀÔ Áö¿øÀÌ°Å³ª ÀÔ·Â ÇÒ °æ·ÂÀÌ ¾ø½À´Ï´Ù.";
		alert("ÀÌ·Â¼­ Ã¼ÃâÇÏ±â¸¦ ¹Ýµå½Ã Å¬¸¯ÇÏ¼Å¾ß Á¦ÃâÀ» ÇÒ ¼ö ÀÖ½À´Ï´Ù.");
	}
	return true;
}

function goIdCheck()
{
	var f = document.resume_sub;
	var id_no = f.id_no1.value + f.id_no2.value;
	window.open('/recruit/idno_check.asp?id_no=' + id_no,'idno_check','width=220 height=130 toolbars=no');
}
function input_score(j)
{
	var f_object;
	f_object = "document.all.f_test_"+ j +".checked";
	f_object = eval(f_object);
	s_object = "document.all.s_test_"+ j +".checked";
	s_object = eval(s_object);
	t_object = "document.all.t_test_"+ j +".checked";
	t_object = eval(t_object);
	f_score  = "document.all.f_score_"+ j;
	f_score  = eval(f_score);
	s_score  = "document.all.s_score_"+ j;
	s_score  = eval(s_score);
	t_score  = "document.all.t_score_"+ j;
	t_score  = eval(t_score);

	if (f_object == true)
	{
		f_score.style.display = "";
	}
	else
	{
		f_score.style.display = "none";
	}
	if (s_object == true)
	{
		s_score.style.display = "";
	}
	else
	{
		s_score.style.display = "none";
	}
	if (t_object == true)
	{
		t_score.style.display = "";
	}
	else
	{
		t_score.style.display = "none";
	}
}
