// Å¬¸¯½Ã ³»¿ëÁö¿ì±â ÇÔ¼ö
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.member_join;
	if (form1.user_id.value == "")
	{
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form1.focus()
		return false;
	}
	if (form1.passwd.value == "")
	{
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form1.passwd.focus();
		return false;
	}
	if (form1.passwd2.value == "")
	{
		alert('ºñ¹Ð¹øÈ£ È®ÀÎÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form1.passwd2.focus();
		return false;
	}
	if (form1.name.value == "")
	{
		alert('ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form1.name.focus();
		return false;
	}
	if (form1.feelname.value == "")
	{
		alert('ÇÊ¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form1.feelname.focus();
		return false;
	}
	if (form1.email1.value == "")
	{
		alert('E-MailÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form1.email1.focus();
		return false;
	}
	if (form1.email2.value == "")
	{
		alert('E-MailÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form1.email2.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.id_no1.value == "")
	{
		alert('ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form1.id_no1.focus();
		return false;
	}
	if (form1.id_no2.value == "")
	{
		alert('ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form1.id_no2.focus();
		return false;
	}
//	if (form1.job.value == "0")
//	{
//		alert('Á÷¾÷À» ¼±ÅÃÇØ ÁÖ¼¼¿ä.');
//		form1.job.focus();
//		return false;
//	}
}
// ÀÔ·Â°ªÀÌ ¼ýÀÚÀÌ¸é ÀÔ·Â, ¼ýÀÚ°¡ ¾Æ´Ï¸é ÀÔ·Â ¸øÇÏ°Ô ÇÔ.
function check_int(eve,lengt,focu) {
	focu1 = "document." + focu;
	focu1 = eval(focu1);
	eve1 = eve.value;
	re	 = /[^0-9]/gi;
	eve.value = eve1.replace(re,"");
	if (lengt !== "")
	{
		if (eve1.length == lengt)
		{
			focu1.focus();
		}
	}
}
// ´ÞÀÔ·Â½Ã 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 (id !== "")
	{
		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="/intro/purpose.php"; 
		break;
			case 110 : // ¼³¸³ÃëÁö ¹× ¹è°æ
				location.href="/intro/purpose.php"; 
			break;
			case 120 : // È°µ¿»çÇ×
				location.href="/intro/activity.php"; 
			break;
			case 130 : // ÇùÀÇÈ¸±¸¼º
				location.href="/intro/organizing.php"; 
			break;
			case 140 : // ¾àµµ ¹× ¿¬¶ôÃ³
				location.href="/intro/map.php"; 
			break;
			case 150 : // ÇùÀÇÈ¸ ¼Ò½Ä
				location.href="/board/board_l.php?board_id=intro_news"; 
			break;

		case 200: // Ä¿¹Â´ÏÆ¼
			location.href="/board/board_l.php?board_id=notice"; 
		break;
			case 210 : // °øÁö»çÇ×
				location.href="/board/board_l.php?board_id=notice";
			break;
			case 220 : // ÀúÀÛ±ÇÄ®·³
				location.href="/board/board_l.php?board_id=calumn";
			break;
			case 230 : // ÀÚÀ¯°Ô½ÃÆÇ
				location.href="/board/board_l.php?board_id=freeboard";
			break;
			case 240 : // À§ÀÓÁ¢¼öÃ³
				location.href="/community/trust_guide.php";
			break;
				case 241 : // À§ÀÓ¾È³»
					location.href="/community/trust_guide.php";
				break;
				case 242 : // À§ÀÓ¸ñ·ÏÁ¶È¸
					location.href="#";
				break;
				case 243 : // À§ÀÓ¾ç½Ä´Ù¿î·Îµå
					location.href="/community/trust_download.php";
				break;
			
		case 300 :// »ó´ã½Ç
			location.href="/counsel/guide.php";
		break;
			case 310 :// ¾È³»
				location.href="/counsel/guide.php";
			break;
			case 320 :// ¸¸È­ÀúÀÛ±Ç ±âº»ÀÌÇØ
				location.href="javascript:alert('ÁØºñÁßÀÔ´Ï´Ù');";
			break;
			case 330 :// ÀúÀÛ±Ç ¸¸È­
				location.href="javascript:void(window.open('http://www.cleancopyright.or.kr:8000/animation/main.asp','new','width=920,height=740,scrollbars=yes'))";
			break;
			case 340 :// »ó´ã°Ô½ÃÆÇ
				location.href="/board/board_l.php?board_id=counsel_board";
			break;
			case 350 :// ½Å°í°Ô½ÃÆÇ
				location.href="/counsel/report_guide.php";
				break;
				case 351 :// ÀúÀÛ±ÇºÐÀï Á¶Á¤Á¦µµ ¾È³»
					location.href="/counsel/report_guide.php";
					break;
				case 352 :// ÀúÀÛ±ÇºÐÀï ½Å°í
					location.href="/board/board_l.php?board_id=report_copyright";
					break;
				case 353 :// ºÒ¹ý½ºÄµ¸¸È­ ½Å°í
					location.href="javascript:void(window.open('http://www.ccpa.co.kr/center/report_write.jsp','new2','width=1024,height=768,scrollbars=yes'));";
					break;
					
		case 400 : // ÀÚ·á½Ç
			location.href="/board/board_l.php?board_id=law_news"; 
		break;
			case 410 : // °ü·Ã´º½º
				location.href="/board/board_l.php?board_id=law_news";
			break;
			case 420 : // °ü°è¹ý·É
					location.href="/board/board_l.php?board_id=law_copyright";
			break;
				case 421 : // ÀúÀÛ±Ç¹ý
						location.href="/board/board_l.php?board_id=law_copyright";
				break;
				case 422 : // ÃâÆÇ ¹× ÀÎ¼âÁøÈï¹ý
						location.href="/reference/law_publishing.php";
				break;
			case 430 : // ÆÇ·Ê
				location.href="/board/board_l.php?board_id=precedent";
			break;
			case 440 : // ÇùÀÇÈ¸ È°µ¿ °á°úº¸°í
				location.href="/board/board_l.php?board_id=report";
			break;
				case 441 : // ÀúÀÛ±Çº¸È£È°µ¿/¿ùº°
					location.href="/board/board_l.php?board_id=report";
				break;
				case 442 : // ¿Â¶óÀÎ ºÒ¹ý½ºÄµ¸¸È­ ´ëÀÀÈ°µ¿/¿ùº°
					location.href="javascript:void(window.open('http://www.ccpa.co.kr','new2','width=1024,height=768,scrollbars=yes'));";
				break;
			case 450 : // »çÀÌÆ®¸µÅ©
				location.href="/reference/links.php";
			break;
		

		case 500 : // È¨
			location.href="/index.php";
		break;
			case 510 : // È¨
				location.href="/index.php";
			break;
			case 520 : // »çÀÌÆ®¸Ê
				location.href="/sitemap/sitemap.php";
			break;
			case 530 : // ¸ÞÀÏ
				location.href="mailto:tkyou7567@paran.com";
			break;
		case 610 : // ÀÌ¿ë¾à°ü,È¸¿ø°¡ÀÔ
			location.href="/member/member_01.php";
		break;
		case 620 : // ¾ÆÀÌµð,ÆÐ½º¿öµå Ã£±â
			location.href="/member/member_find01.php";
		break;
		case 630 : // È¸¿øÁ¤º¸¼öÁ¤
			location.href="/member/member_01.php";
		break;
		case 640 : // È¸¿øÅ»Åð
			location.href="javascript:void(window.open('../member/popup_break.html','','width=450,height=340'))";
		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";
	}
}
function check_member() 
{
	var f = document.member_check;
	// È¸¿ø¾à°üµ¿ÀÇ
	if (!f.agreement[0].checked)
	{
		alert('¾à°üÀÇ µ¿ÀÇ¸¦ ÇÏ¼Å¾ß ÇÕ´Ï´Ù.');
		f.agreement[0].focus();
		return false;
	}

	// ÀÌ¸§
	if (!f.name.value)
	{
		alert('ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		f.name.focus();
		return false;
	}
	// ÁÖ¹Îµî·Ï¹øÈ£ ¾Õ
	if (!f.id_no1.value)
	{
		alert('ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		f.id_no1.focus();
		return false;
	}
	if (f.id_no1.value.length !== 6)
	{
		alert('ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®´Â 6ÀÚ¸®ÀÔ´Ï´Ù.');
		f.id_no1.focus();
		return false;
	}
	// ÁÖ¹Îµî·Ï¹øÈ£ µÚ
	if (!f.id_no2.value)
	{
		alert('ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		f.id_no2.focus();
		return false;
	}
	if (f.id_no2.value.length !== 7)
	{
		alert('ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®´Â 7ÀÚ¸®ÀÔ´Ï´Ù.');
		f.id_no2.focus();
		return false;
	}
	return true;
}
//ºñ¹Ð¹øÈ£ ÀÔ·Â½Ã ¼ýÀÚ, ¿µ¹® È¥ÇÕÀÎÁö ÆÇ´ÜÇÏ±â
function check_passwd(p) {
    chk1 = /^[a-z^0-9]{4,12}$/i;  //a-z¿Í 0-9ÀÌ¿ÜÀÇ ¹®ÀÚ°¡ ÀÖ´ÂÁö È®ÀÎ
    chk2 = /[a-z]/i;  //Àû¾îµµ ÇÑ°³ÀÇ a-z È®ÀÎ
    chk3 = /\d/;  //Àû¾îµµ ÇÑ°³ÀÇ 0-9 È®ÀÎ
	if (p.value !== "") {
		if (chk1.test(p.value) == false || chk2.test(p.value) == false || chk3.test(p.value) == false)
		{
			alert('ºñ¹Ð¹øÈ£´Â ¿µ¹®,¼ýÀÚ Á¶ÇÕÀ¸·Î ÀÔ·ÂÇÏ¼¼¿ä.\n          (Æ¯¼ö¹®ÀÚ ±ÝÁö, 4-12ÀÚ¸®)');
			//p.value = ""; ÀÔ·ÂÇÑ °ª Áö¿ì±â
			p.focus();
		}
	}
}
//ºñ¹Ð¹øÈ£ È®ÀÎÇÏ±â
function passwd_check(p) {
	if (p.value !== "") {
		if (p.value !== document.member_join.passwd.value)
		{
			alert('ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.');
			p.value = ""; //ÀÔ·ÂÇÑ °ª Áö¿ì±â
			p.focus();
		}
	}
}
//ÀÌ¸ÞÀÏ µÞºÎºÐ ÀÔ·Â½Ã . ÀÖ´ÂÁö ¾ø´ÂÁö Ã¼Å©
function check_email(p) {
    chk1 = /[.]/;  // . ÀÖ´ÂÁö ¾ø´ÂÁö Ã¼Å©
	if (p.value !== "") {
		if (chk1.test(p.value) == false)
		{
			alert('E-Mail Á¤º¸¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇØÁÖ¼¼¿ä.');
			p.value = ""; //ÀÔ·ÂÇÑ °ª Áö¿ì±â
			p.focus();
		}
	}
}
//È¸¿ø°¡ÀÔ Ãë¼Ò ÇÔ¼ö
function agree_no(){
	if(confirm('Á¤¸» Ãë¼ÒÇÏ½Ã°Ú½À´Ï±î?')) {
		alert('Ãë¼ÒµÇ¾ú½À´Ï´Ù');
		location.href="../index.php";
	}
	false;
}
function login_check() {
	var form1;form1 = document.login;
	if (form1.user_id.value == "")
	{
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		form1.user_id.focus();
		return false;
	}
	if (form1.passwd.value == "")
	{
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		form1.passwd.focus();
		return false;
	}
}

function loginfrm_check() {
	var form1;form1 = document.loginFrm;
	if (form1.user_id.value == "")
	{
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		form1.user_id.focus();
		return false;
	}
	if (form1.passwd.value == "")
	{
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		form1.passwd.focus();
		return false;
	}
}


	function show_M()
	{
	 if(document.all.member1.style.display == "none") {
		 document.all.member1.style.display = "block";
	 } else {
		 document.all.member1.style.display = "none";
	 }
	}
 
	function show_I()
	{
	 if(document.all.intro1.style.display == "none") {
		 document.all.intro1.style.display = "block";
		 
	 } else {
		 document.all.intro1.style.display = "none";
		 
	 }
	}
	
	function show_C()
	{
	 if(document.all.community1.style.display == "none") {
		 document.all.community1.style.display = "block";
		 
	 } else {
		 document.all.community1.style.display = "none";
		 
	 }
	}
	
	function show_Con()
	{
	 if(document.all.consulting1.style.display == "none") {
		 document.all.consulting1.style.display = "block";
		 
	 } else {
		 document.all.consulting1.style.display = "none";
		 
	 }
	}
	
	function show_D()
	{
	 if(document.all.data1.style.display == "none") {
		 document.all.data1.style.display = "block";
		 
	 } else {
		 document.all.data1.style.display = "none";
		 
	 }
	}


	function loginInputSend() {
		if(event.keyCode==13) login_check();
	}

	function chi(){
		document.login.user_id.style.background = 'url(none)'
	}

	function chp(){
		document.login.passwd.style.background = 'url(none)'
	}


function checkComicSrch() {
	var form1;form1 = document.comicsrchFrm;
	if (form1.srchfield.value == "")
	{
		alert('°Ë»ö ÇÊµå¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		form1.srchfield.focus();
		return false;
	}
}

function goPrint(idx, wid, hgt)
{
	window.open('/common/print.php?idx='+idx, 'print' , 'width=' + wid + ', height=' + hgt + ', toolbars=no');
}

function goCastPrint(wid, hgt)
{
	window.open('/common/castprint.php', 'print' , 'width=' + wid + ', height=' + hgt + ', toolbars=no');
}