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_preloadimage() { //v3.0
  var d=document; if(d.image){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadimage.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_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 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 openDic() 
{ 
document.form1.action = "http://word.tta.or.kr/terms/terms.jsp"; 
window.open('', "dicWin2", "width=700,height=500,toolbar=no,resizble=no,scrollbars=no"); 
document.form1.target = "dicWin2"; document.form1.submit(); 
} 


/////////// ÄÁÅ×½ºÆ® ÀÌ¹ÌÁö Å¬¸¯½Ã ÀÌ¹ÌÁö ¹Ù²Ù±â //////////
function change_view(form)
{
		document.all.mainIMG.src = form.src;

}
////////// ÄÁÅ×½ºÆ® ÀÌ¹ÌÁö Å¬¸¯½Ã ÀÌ¹ÌÁö ¹Ù²Ù±â /////////

//////////////// Å« ÀÌ¹ÌÁö º¸±â //////////////////
function bigimg_view(uid)
{
	var srcIMG = document.all.mainIMG.src;
	popupCommon(uid, '/INC/Inc_pop/photoViewer.asp','100','100',srcIMG,'popImg','no');
}
//////////////// Å« ÀÌ¹ÌÁö º¸±â //////////////////


///////////////// °ø¹é Ã¼Å© /////////////////////////
function contentEmptyCheck(form)
{
  var value
  value = form.value;

  if (!value) return false;
  value=value.replace(/^\s*/gi,'');
  return value.replace(/\s*$/gi,'');
}
///////////////// °ø¹é Ã¼Å© /////////////////////////

///////////////// ±³ÀçÃ¼Å© /////////////////////////
function a_num(num)
{
	//Á¤º¸Ã³¸®±â»ç ½Ç±â/±³Àç
	if (num == "51") 
	{
		if (document.study.ClassID[3].checked == true) 
		{	
			document.study.ClassID[4].disabled = false;
		}		
		else
		{
			document.study.ClassID[4].disabled = true;
		}
	}

	if (num == "52") 
	{
		if (document.study.ClassID[3].checked == true) 
		{	
			document.study.ClassID[4].disabled = false;
		}		
		else
		{
			document.study.ClassID[4].disabled = true;
		}
	}


	if (num == "103") 
	{
		if (document.study.ClassID[0].checked == true) 
		{	
			document.study.ClassID[4].disabled = false;
		}		
		else
		{
			document.study.ClassID[4].disabled = true;
		}
	}

	if (num == "104") 
	{
		if (document.study.ClassID[0].checked == true) 
		{	
			document.study.ClassID[4].disabled = false;
		}		
		else
		{
			document.study.ClassID[4].disabled = true;
		}
	}
}
///////////////// ±³ÀçÃ¼Å© /////////////////////////

//////////////// ÁÖ¹Î¹øÈ£ ÀÔ·Â ±æÀÌ Ã¼Å© //////////////
function check_jumin(form,max)
{
   num = document.all.userNo1.value;
   siz = num.length;
   if(siz == max){
      document.all.userNo2.focus();
	  return true;
   }
}
function check_jumin_id(form,max)
{
   num = document.id_find_form.user_jumin1.value;
   siz = num.length;
   if(siz == max){
      document.id_find_form.user_jumin2.focus();
	  return true;
   }
}
function check_jumin_pw(form,max)
{
   num = document.pw_find_form.user_jumin1.value;
   siz = num.length;
   if(siz == max){
      document.pw_find_form.user_jumin2.focus();
	  return true;
   }
}
//////////////// ÁÖ¹Î¹øÈ£ ÀÔ·Â ±æÀÌ Ã¼Å© //////////////

/////////////// ±ÛÀÚ Byte Ã¼Å© //////////////////////
function contentLenCheck(form)
{
 var len,k,count

 if (form.value.length)
 {
   form.value = contentEmptyCheck(form);

   len = form.value.length;
	 count=0;

	 for (k=0 ; k<len ; k++){
    if (form.value.charCodeAt(k) <= 127)
     {count=count+1;}
    else
     {count=count+2;}
   }
 }
 return count;
}
/////////////// ±ÛÀÚ Byte Ã¼Å© //////////////////////



///////// ¾ÆÀÌµð¹Ú½ºÆ÷Ä¿½º /////////
var myObject = new Object();
    myObject.id = 0;
    myObject.id1 = 0;
    
function focusCheck()
{
   myObject.id=0;
}

function focusCheck1()
{
   myObject.id1=0;
}
///////// ¾ÆÀÌµð¹Ú½ºÆ÷Ä¿½º /////////



///////// ´ëÈ­¸í Áßº¹ Ã¼Å© /////////
function nickCheck()
{
 var info
 
  for(i=0; i < login.user_nick.value.length; i++) 
  {
      if (login.user_nick.value.charAt(i) == ' ') 
      {
      mainAlert("°ø¹é¾øÀÌ ÀÔ·ÂÇÏ¼¼¿ä.");
	  login.user_nick.focus();
      return false;
      }
  }

  if (!contentEmptyCheck(login.user_nick))
  {
    mainAlert('º°¸íÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	login.user_nick.focus();
	return false;
  }



 if(contentLenCheck(login.user_nick) > 12 || contentLenCheck(login.user_nick) < 4)
 {
	 mainAlert('º°¸íÀº ÇÑ±Û2~6ÀÚ,¿µ¹®4~12ÀÚ ÀÔ´Ï´Ù.');
	 login.user_nick.focus();
 }
 else
	 {
	   info=login.user_nick.value;
       window.showModalDialog('/inc/inc_pop/nickCheck.asp?info='+info,myObject,'dialogWidth:340px;dialogHeight:243px;status=0;scroll=0;help=0;');
	   if (myObject.id1==1)
	   {
	     login.user_nick.value='';
	     login.user_nick.focus();
	   }
	   else if (myObject.id1==2)
	   {
	     login.user_pass1.focus();
	   }
	}
}
///////// ´ëÈ­¸í Áßº¹ Ã¼Å© /////////

///////// È¸¿ø°¡ÀÔÆû Ã¼Å© /////////
function memberCheck(form)
{
  for(i=0; i < form.uid.value.length; i++) 
	{
      if (form.uid.value.charAt(i) == ' ') 
      {
      alert("¾ÆÀÌµð¸¦ °ø¹é¾øÀÌ ÀÔ·ÂÇÏ¼¼¿ä.");
	  form.uid.focus();
      return false;
      }
	}
  if((form.uid.value.search(/([^A-Za-z0-9]+)/)!=-1) || form.uid.value.length < 4 || form.uid.value.length > 12){
   alert('¾ÆÀÌµð´Â ¿µ¹®(¼Ò¹®ÀÚ) È¤Àº ¿µ¹®°ú ¼ýÀÚÁ¶ÇÕ 4~12ÀÚ ÀÔ´Ï´Ù.');
 	 form.uid.focus();
 	 return false;
	}
  if((form.user_pass1.value.search(/([^A-Za-z0-9]+)/)!=-1) || form.user_pass1.value.length < 4 || form.user_pass1.value.length > 12){
    alert('ÆÐ½º¿öµå´Â ¿µ¹® È¤Àº ¿µ¹®°ú ¼ýÀÚÁ¶ÇÕ 4~12ÀÚ ÀÔ´Ï´Ù.');
    form.user_pass1.focus();
	return false;
	}
  if(form.user_pass1.value != form.user_pass2.value){
    alert('ÆÐ½º¿öµå°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.');
    form.user_pass1.focus();
	return false;
	}
  if(!form.user_zip1.value){
	alert('¿ìÆí¹øÈ£¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.');
    form.user_zip1.focus();
    return false;
	}
  if(!form.user_zip2.value){
	alert('¿ìÆí¹øÈ£¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.');
    form.user_zip2.focus();
    return false;
	}
  if(!form.user_add1.value){
	alert('ÁÖ¼Ò¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.');
    form.user_add1.focus();
    return false;
	}
  if(!form.user_add2.value){
	alert('ÁÖ¼Ò¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.');
    form.user_add2.focus();
    return false;
	}
   if(!form.user_phone1.value){
	alert('ÀüÈ­¹øÈ£¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.');
    form.user_phone1.focus();
    return false;
	}
  if(!form.user_phone2.value || (form.user_phone2.value.search(/([^0-9]+)/)!=-1) || (form.user_phone2.value.length < 3)){
	alert('ÀüÈ­¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_phone2.focus();
	return false;
	}
  if(!form.user_phone3.value || (form.user_phone3.value.search(/([^0-9]+)/)!=-1) || (form.user_phone3.value.length < 4)){
    alert('ÀüÈ­¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_phone3.focus();
	return false;
	}
  if(!form.user_mobile1.value){
	alert('ÈÞ´ëÆù¹øÈ£¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.');
    form.user_mobile1.focus();
    return false;
	}
  if(!form.user_mobile2.value || (form.user_mobile2.value.search(/([^0-9]+)/)!=-1) || (form.user_mobile2.value.length < 3)){
	alert('ÈÞ´ëÆù¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_mobile2.focus();
	return false;
	}
  if(!form.user_mobile3.value || (form.user_mobile3.value.search(/([^0-9]+)/)!=-1) || (form.user_mobile3.value.length < 4)){
	alert('ÈÞ´ëÆù¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_mobile3.focus();
	return false;
	}
  if (!contentEmptyCheck(form.user_email1)){
    alert('ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_email1.focus();
	return false;
	}
  if (!contentEmptyCheck(form.user_email2)){
    alert('ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_email2.focus();
	return false;
	}

	var check_value = ""
	for (i=0; i<form.register_route.length; i++)
	{
		if(form.register_route[i].checked == true) 
		{
		check_value = form.register_route[i].value
		}
	}
	if(check_value == "")
	{
	alert('°¡ÀÔ°æ·Î¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.');
	form.register_route[0].focus();
	return false;
	}
	else if (check_value == "5")
	{
		if (form.register_memo.value == ""){
			alert('°¡ÀÔ°æ·Î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
			form.register_memo.focus();
			return false;
			}
	}

  if(myObject.id==0){
	alert('¾ÆÀÌµð Áßº¹°Ë»ç¸¦ ÇÏ½Ê½Ã¿À.');
	form.uid.focus();
	return false;
  }
return true;
}
///////// È¸¿ø°¡ÀÔÆû Ã¼Å© /////////

///////// È¸¿ø¼öÁ¤Æû Ã¼Å© /////////
function memberEditCheck(form)
{
  for(i=0; i < form.uid.value.length; i++) 
	{
      if (form.uid.value.charAt(i) == ' ') 
      {
      alert("¾ÆÀÌµð¸¦ °ø¹é¾øÀÌ ÀÔ·ÂÇÏ¼¼¿ä.");
	  form.uid.focus();
      return false;
      }
	}
  if((form.uid.value.search(/([^A-Za-z0-9]+)/)!=-1) || form.uid.value.length < 4 || form.uid.value.length > 12){
	alert('¾ÆÀÌµð´Â ¿µ¹®(¼Ò¹®ÀÚ) È¤Àº ¿µ¹®°ú ¼ýÀÚÁ¶ÇÕ 4~12ÀÚ ÀÔ´Ï´Ù.');
 	form.uid.focus();
 	return false;
	}
  if((form.user_pass1.value.search(/([^A-Za-z0-9]+)/)!=-1) || form.user_pass1.value.length < 4 || form.user_pass1.value.length > 12){
    alert('ÆÐ½º¿öµå´Â ¿µ¹® È¤Àº ¿µ¹®°ú ¼ýÀÚÁ¶ÇÕ 4~12ÀÚ ÀÔ´Ï´Ù.');
    form.user_pass1.focus();
	return false;
	}
  if(form.user_pass1.value != form.user_pass2.value){
    alert('ÆÐ½º¿öµå°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.');
    form.user_pass1.focus();
	return false;
	}
   if(!form.user_zip1.value){
	alert('¿ìÆí¹øÈ£¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.');
    form.user_zip1.focus();
    return false;
	}
   if(!form.user_zip2.value){
	alert('¿ìÆí¹øÈ£¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.');
    form.user_zip2.focus();
    return false;
	}
   if(!form.user_add1.value){
	alert('ÁÖ¼Ò¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.');
    form.user_add1.focus();
    return false;
	}
   if(!form.user_add2.value){
	alert('ÁÖ¼Ò¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.');
    form.user_add2.focus();
    return false;
	}

  if(!form.user_phone1.value){
	alert('ÀüÈ­¹øÈ£¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.');
    form.user_phone1.focus();
    return false;
	}
  if(!form.user_phone2.value || (form.user_phone2.value.search(/([^0-9]+)/)!=-1) || (form.user_phone2.value.length < 3)){
	alert('ÀüÈ­¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_phone2.focus();
	return false;
	}
  if(!form.user_phone3.value || (form.user_phone3.value.search(/([^0-9]+)/)!=-1) || (form.user_phone3.value.length < 4)){
    alert('ÀüÈ­¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_phone3.focus();
	return false;
	}
  if(!form.user_mobile1.value){
	alert('ÈÞ´ëÆù¹øÈ£¸¦ ¼±ÅÃÇÏ½Ê½Ã¿À.');
    form.user_mobile1.focus();
    return false;
	}
  if(!form.user_mobile2.value || (form.user_mobile2.value.search(/([^0-9]+)/)!=-1) || (form.user_mobile2.value.length < 3)){
	alert('ÈÞ´ëÆù¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_mobile2.focus();
	return false;
	}
  if(!form.user_mobile3.value || (form.user_mobile3.value.search(/([^0-9]+)/)!=-1) || (form.user_mobile3.value.length < 4)){
	alert('ÈÞ´ëÆù¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_mobile3.focus();
	return false;
	}
  if (!contentEmptyCheck(form.user_email1)){
    alert('ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_email1.focus();
	return false;
	}
  if (!contentEmptyCheck(form.user_email2)){
    alert('ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_email2.focus();
	return false;
	}

	var check_value = ""
	for (i=0; i<form.register_route.length; i++)
	{
		if(form.register_route[i].checked == true) 
		{
		check_value = form.register_route[i].value
		}
	}
	if(check_value == "")
	{
	alert('°¡ÀÔ°æ·Î¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.');
	form.register_route[0].focus();
	return false;
	}
	else if (check_value == "5")
	{
		if (form.register_memo.value == ""){
			alert('°¡ÀÔ°æ·Î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
			form.register_memo.focus();
			return false;
			}
	}

	if(confirm("¼öÁ¤ ÇÏ½Ã°Ú½À´Ï±î?")) {
  		login.submit();
	}
	else
	{
		return false;
	}
return true;
}
///////// È¸¿ø¼öÁ¤Æû Ã¼Å© /////////

///////// ºÐ½Ç ¾ÆÀÌµð/ºñ¹Ð¹øÈ£ Ã¼Å© /////////
function id_find(form) {

		if (!contentEmptyCheck(form.user_name)){
		alert("ÀÌ¸§(½Ç¸í)À» ÀÔ·ÂÇØÁÖ¼¼¿ä.")

		form.user_name.focus();
		return false;
		}
		if ((form.user_jumin1.value.search(/([^0-9]+)/)!=-1) || form.user_jumin1.value.length < 6){
		alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")

		form.user_jumin1.focus();
		return false;
		}
		if ((form.user_jumin2.value.search(/([^0-9]+)/)!=-1) || form.user_jumin2.value.length < 7){
		alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		form.user_jumin2.focus();
		return false;
		}

		var user_name;
		var user_jumin1;
		var user_jumin2;
		user_name=form.user_name.value;
		user_jumin1 = form.user_jumin1.value;
		user_jumin2 = form.user_jumin2.value;

		window.open("https://www.gisa79.com/Inc/Inc_Pop/Id_Find.asp?user_name="+user_name+"&user_jumin1="+user_jumin1+"&user_jumin2="+user_jumin2,"List", "width=425,height=250")
	return false;
	}

function pw_find(form) {
		if (!contentEmptyCheck(form.uid)){
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		form.uid.focus();
		return false;
		}
		if (!contentEmptyCheck(form.user_name)){
		alert("ÀÌ¸§(½Ç¸í)À» ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		form.user_name.focus();
		return false;
		}
		if ((form.user_jumin1.value.search(/([^0-9]+)/)!=-1) || form.user_jumin1.value.length < 6){
		alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		form.user_jumin1.focus();
		return false;
		}

		if ((form.user_jumin2.value.search(/([^0-9]+)/)!=-1) || form.user_jumin2.value.length < 7){
		alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		form.user_jumin2.focus();
		return false;
		}

		var uid;
		var user_name;
		var user_jumin1;
		var user_jumin2;
		uid=form.uid.value;
		user_name=form.user_name.value;
		user_jumin1 = form.user_jumin1.value;
		user_jumin2 = form.user_jumin2.value;
		window.open("https://www.gisa79.com/Inc/Inc_Pop/Pass_Find.asp?uid="+uid+"&user_name="+user_name+"&user_jumin1="+user_jumin1+"&user_jumin2="+user_jumin2,"List", "width=425,height=250")
	return true;
	}
///////// ºÐ½Ç ¾ÆÀÌµð/ºñ¹Ð¹øÈ£ Ã¼Å© /////////



////////////////////±â»çÄ£±¸//////////////////
////////////////////±â»çÄ£±¸//////////////////

//////////////////////////////// È¸¿ø°¡ÀÔ µ¿ÀÇ Ã¼Å© ///////////////////////////////
function member_agree_check(form)
{
	var check_value = ""
	for (i=0; i<pageForm.agree.length; i++)
	{
		if(pageForm.agree[i].checked == true) 
		{
		check_value = pageForm.agree[i].value
		}
	}

	if(check_value == "")
	{
	alert('¾à°ü¿¡ µ¿ÀÇ¸¦ ÇÏ¼Å¾ß ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.');
	pageForm.agree[0].focus();
	return false;
	}
	else if (check_value =="2")
	{
	alert('¾à°ü¿¡ µ¿ÀÇ¸¦ ÇÏ¼Å¾ß ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.');
	pageForm.agree[0].focus();
	return false;
	}

  var chk = 0
  var sex = pageForm.userNo2.value.substring(0,1)

  if (!contentEmptyCheck(pageForm.userNm)){
	alert('ÀÌ¸§À» ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	pageForm.userNm.focus();
	return false;
  }

  if((pageForm.userNo1.value.search(/([^0-9]+)/)!=-1) || pageForm.userNo1.value.length < 6){
	alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_jumin1.focus();
	return false;
  }
  
  if((pageForm.userNo2.value.search(/([^0-9]+)/)!=-1) || pageForm.userNo2.value.length < 7){
	alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.userNo2.focus();
	return false;
  }
  
  if (sex != 1 && sex != 2 && sex != 3 && sex != 4)
  {
 	alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	pageForm.userNo1.focus();
	return false;
  }

  for (var i = 0; i <= 5; i++)
  {
	chk = chk + ((i%8+2) * parseInt(pageForm.userNo1.value.substring(i,i+1)))
  }

  for (var i = 6; i <= 11; i++)
  {
	chk = chk + ((i%8+2) * parseInt(pageForm.userNo2.value.substring(i-6,i-5)))
  }

  chk = 11 - (chk % 11)
  chk = chk % 10

  if (chk != pageForm.userNo2.value.substring(6,7))
  {
	alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	pageForm.userNo2.focus();
	return false;
  }

  return true;

}
//////////////////////////////// È¸¿ø°¡ÀÔ µ¿ÀÇ Ã¼Å© ///////////////////////////////


//////////////////////////////// °­»çÁö¿ø Ã¼Å© ///////////////////////////////
function teacher_jumin_check(form)
{
  var chk = 0
  var sex = form.user_jumin2.value.substring(0,1)

  if (!contentEmptyCheck(form.user_name)){
	alert('ÀÌ¸§À» ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_name.focus();
	return false;
  }

  if((form.user_jumin1.value.search(/([^0-9]+)/)!=-1) || form.user_jumin1.value.length < 6){
	alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_jumin1.focus();
	return false;
  }
  
  if((form.user_jumin2.value.search(/([^0-9]+)/)!=-1) || form.user_jumin2.value.length < 7){
	alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_jumin2.focus();
	return false;
  }
  
  if (sex != 1 && sex != 2 && sex != 3 && sex != 4)
  {
 	alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_jumin1.focus();
	return false;
  }

  for (var i = 0; i <= 5; i++)
  {
	chk = chk + ((i%8+2) * parseInt(form.user_jumin1.value.substring(i,i+1)))
  }

  for (var i = 6; i <= 11; i++)
  {
	chk = chk + ((i%8+2) * parseInt(form.user_jumin2.value.substring(i-6,i-5)))
  }

  chk = 11 - (chk % 11)
  chk = chk % 10

  if (chk != form.user_jumin2.value.substring(6,7))
  {
	alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	form.user_jumin2.focus();
	return false;
  }

  return true;

}
//////////////////////////////// °­»çÁö¿ø Ã¼Å© ///////////////////////////////

///////// ·Î±×ÀÎ Ã¼Å© /////////
function loginCheck(form) {

	for(i=0; i < form.user_id.value.length; i++) 
	{
	  if (form.user_id.value.charAt(i) == ' ') 
	  {
	  alert("¾ÆÀÌµð¸¦ °ø¹é¾øÀÌ ÀÔ·ÂÇÏ¼¼¿ä.");
	  form.user_id.focus();
	  return false;
	  }
	}
	if (!contentEmptyCheck(form.user_id)){
	alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
	form.user_id.focus();
	return false;
	}

	if (!contentEmptyCheck(form.user_pw)){
    alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä")
    form.user_pw.focus();
    return false;
    }
  }
///////// ·Î±×ÀÎ Ã¼Å© /////////

///////// E-Mail ¼±ÅÃ /////////
	function inputmail(index) {
	  if (index == "1") 
		{
		document.all.user_email2.value = "chol.com";
		}
	  else if (index == "2")
		{
		document.all.user_email2.value = "dreamwiz.com";
		}
	  else if (index == "3")
		{
		document.all.user_email2.value = "empal.com";
		}
	  else if (index == "4")
		{
		document.all.user_email2.value = "hanafos.com";
		}
	  else if (index == "5")
		{
		document.all.user_email2.value = "hanmir.com";
		}
	  else if (index == "6")
		{
		document.all.user_email2.value = "hotmail.com";
		}
	  else if (index == "7")
		{
		document.all.user_email2.value = "nate.com";
		}
	  else if (index == "8")
		{
		document.all.user_email2.value = "naver.com";
		}
	  else if (index == "9")
		{
		document.all.user_email2.value = "netian.com";
		}
	  else if (index == "10")
		{
		document.all.user_email2.value = "korea.com";
		}
	  else if (index == "11")
		{
		document.all.user_email2.value = "lycos.co.kr";
		}
	  else if (index == "12")
		{
		document.all.user_email2.value = "yahoo.com";
		}
	  else 
		{
		document.all.user_email2.value = "";
		document.all.user_email2.focus()
		}
	}
///////// E-Mail ¼±ÅÃ /////////

///////// ¾ÆÀÌµðÁßº¹ Ã¼Å© /////////
function gidCheck()
{
 var info

  for(i=0; i < login.uid.value.length; i++) 
  {
      if (login.uid.value.charAt(i) == ' ') 
      {
      alert("°ø¹é¾øÀÌ ÀÔ·ÂÇÏ¼¼¿ä.");
	  login.uid.focus();
      return false;
      }
  }
 
  if (!contentEmptyCheck(login.uid))
  {
    alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À.');
	login.uid.focus();
	return false;
  }

 if((login.uid.value.search(/([^A-Za-z0-9]+)/)!=-1) || login.uid.value.length < 4 || login.uid.value.length > 12)
 {
	 alert('¾ÆÀÌµð´Â ¿µ¹®(¼Ò¹®ÀÚ) È¤Àº ¿µ¹®°ú ¼ýÀÚÁ¶ÇÕ 4~12ÀÚ ÀÔ´Ï´Ù.');
	 login.uid.focus();
 }
 else
	 {
	   info=login.uid.value;
       window.showModalDialog('/Inc/Inc_Pop/UidCheck.asp?info='+info,myObject,'dialogWidth:365px;dialogHeight:243px;status=0;scroll=0;help=0;');
	   if (myObject.id==1)
	   {
	     login.uid.value='';
	     login.uid.focus();
	   }
	   else if (myObject.id==2)
	   {
	     login.user_pass1.focus();
	   }
	}
}
///////// ¾ÆÀÌµðÁßº¹ Ã¼Å© /////////

///////// È¸¿ø°¡ÀÔ ¿ìÆí¹øÈ£ ÆË¾÷ /////////
function find_zipcode() 
{
   window.open("/INC/Inc_Pop/Zip_Code.asp", "find_zipcode1","resizable=no,x=150,y=50,width=442,height=260,scrollbars=1" );
}
///////// È¸¿ø°¡ÀÔ ¿ìÆí¹øÈ£ ÆË¾÷ /////////

///////// È¸¿øÁÖ¹® ¿ìÆí¹øÈ£ ÆË¾÷ /////////
function orderbuy_zipcode() 
{
   window.open("/INC/Inc_Pop/orderbuy_zipcode.asp", "find_zipcode1","resizable=no,x=150,y=50,width=442,height=260,scrollbars=1" );
}
///////// È¸¿øÁÖ¹® ¿ìÆí¹øÈ£ ÆË¾÷ /////////


///////// °­»çÁö¿ø ¿ìÆí¹øÈ£ ÆË¾÷ /////////
function find_zipcode2() 
{
   window.open("/INC/Inc_Pop/Zip_Code2.asp", "find_zipcode2","resizable=no,x=150,y=50,width=442,height=260,scrollbars=1" );
}
///////// °­»çÁö¿ø ¿ìÆí¹øÈ£ ÆË¾÷ /////////

///////// ¹è¼ÛÁ¤º¸ ¿ìÆí¹øÈ£ ÆË¾÷ /////////
function find_zipcode3() 
{
   window.open("/INC/Inc_Pop/Zip_Code3.asp", "find_zipcode3","resizable=no,x=400,y=400,width=442,height=287,scrollbars=1" );
}
///////// ¹è¼ÛÁ¤º¸ ¿ìÆí¹øÈ£ ÆË¾÷ /////////

///////// ¼ö°­ È®ÀÎ¼­ ¹ß±Þ /////////
function Pop_sg(value,classid,idx)
{
	window.open('/Room/Lucture_SuGang/SuGang_Ok.asp?Kind='+value+'&ClassID='+classid+'&idx='+idx,'sugang','width=630,height=620,top=0,left=0,toolbar=no,resizble=no,scrollbars=no');
}
///////// ¼ö°­ È®ÀÎ¼­ ¹ß±Þ /////////

///////// ¼ö°­ È®ÀÎ¼­ ¹ß±Þ /////////
function Pop_sg2(classid,idx)
{
	window.open('/Room/Lucture_SuGang/SuGang_Ok.asp?ClassID='+classid+'&idx='+idx,'sugang','width=630,height=620,top=0,left=0,toolbar=no,resizble=no,scrollbars=no');
}
///////// ¼ö°­ È®ÀÎ¼­ ¹ß±Þ /////////

///////// ÀÏÁ¤/Day µî·ÏÆË¾÷ /////////
function Daily_Code(Code)
{
	if (Code == "1"){
		window.open("/Room/Daily_Input.asp?Code=1", "Daily_Pop","resizable=no,x=150,y=50,width=400,height=300,scrollbars=no" );
	}
	else
	{
		window.open("/Room/Daily_Input.asp?Code=2", "Daily_Pop","resizable=no,x=150,y=50,width=400,height=300,scrollbars=no" );
	}
}
///////// ÀÏÁ¤/Day µî·ÏÆË¾÷ /////////

///////// ½ÃÇèÀÏÁ¤ µî·ÏÆË¾÷ /////////
function Sch_Input()
{
window.open("/voge/Others/Info/Sch_Input.asp?Code=1", "Sch_Pop","resizable=no,x=150,y=50,width=400,height=300,scrollbars=no" );
}
///////// ½ÃÇèÀÏÁ¤ µî·ÏÆË¾÷ /////////

///////// ¼ö°­¿¬Àå ÆË¾÷ /////////
function delay_pop()
{
	window.open("/PopUp/delay.asp", "delay_pop","resizable=no,x=150,y=50,width=400,height=500,scrollbars=no" );
}
///////// ¼ö°­¿¬Àå ÆË¾÷ /////////


///////// ipÈ®ÀÎ ÆË¾÷ /////////
function ip_pop(UID)
{
	var UID
	window.open("/voge/Others/Delay/Ip_Find.asp?uid="+UID,"ip_pop","resizable=no,x=150,y=50,width=480,height=610,scrollbars=yes");
}
///////// ipÈ®ÀÎ ÆË¾÷ /////////

///////// ip±×·ìº°È®ÀÎ ÆË¾÷ /////////
function ip_group_pop(UID)
{
	var UID
	window.open("/voge/Others/Delay/Ip_Group_Find.asp?uid="+UID,"ip_group_pop","resizable=no,x=150,y=50,width=480,height=610,scrollbars=yes");
}
///////// ip±×·ìº°È®ÀÎ ÆË¾÷ /////////

///////// ¼ö°­°­ÀÇ ÆË¾÷ /////////
function Lecture_history_Pop(UID)
{
	var UID
	window.open("/voge/Log/Lecture_History_Pop.asp?uid="+UID,"lecture","resizable=no,x=150,y=50,width=800,height=610,scrollbars=yes");
}
///////// ¼ö°­°­ÀÇ ÆË¾÷ /////////

///////// °ü¸®ÀÚ¸ðµå¿¡¼­ ¼ö°­½ÅÃ»/////////
function lecture_app(UID,NAME)
{
	var UID
	var NAME
	window.open("/voge/Member/Lecture_Application.asp?uid="+UID+"&name="+NAME,"lecture_app","resizable=no,x=150,y=50,width=480,height=610,scrollbars=yes");
}
///////// °ü¸®ÀÚ¸ðµå¿¡¼­ ¼ö°­½ÅÃ»/////////


///////// ´Ù¿î·Îµå È®ÀÎ /////////
function file_download(UID)
{
	var UID
	var NAME
	window.open("/voge/Member/File_DownLoad.asp?uid="+UID,"lecture_app","resizable=no,x=150,y=50,width=700,height=610,scrollbars=no");
}
///////// ´Ù¿î·Îµå È®ÀÎ /////////


///////// °ü¸®ÀÚ¸ðµå¿¡¼­ ¼ö°­½ÅÃ»/////////
function book_app(UID,NAME)
{
	var UID
	var NAME
	window.open("/voge/Member/Book_Application.asp?uid="+UID+"&name="+NAME,"lecture_app","resizable=no,x=150,y=50,width=480,height=610,scrollbars=yes");
}
///////// °ü¸®ÀÚ¸ðµå¿¡¼­ ¼ö°­½ÅÃ»/////////

///////// È¸¿øÁ¤º¸ ÆË¾÷ /////////
function member_pop(UID)
{
	var UID
	window.open("/Board/Member_Pop/Member_Pop.asp?uid="+UID,"Member_Pop","resizable=no,x=150,y=50,width=950,height=600,scrollbars=yes");
}
///////// È¸¿øÁ¤º¸ ÆË¾÷ /////////

///////// °Ô½Ã¹° ÀÌµ¿Ã¼Å© /////////
function board_move_check(form) 
{
	var str;
	str = 0;
	for(i=0; i < document.board_move.move_idx.length; i++)
	{
		if(document.board_move.move_idx[i].checked == true)
		{
		str = str + 1;
		}
	}
		if (str == 0)
		{
		alert("ÀÌµ¿ÇÒ °Ô½Ã¹°À» Ã¼Å©ÇØÁÖ¼¼¿ä.");
		return false;
		}

		if(!contentEmptyCheck(form.board_move))
		{
		alert("ÀÌµ¿ÇÒ °Ô½ÃÆÇÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.");
		form.board_move.focus();
		return false;
		}
}
///////// °Ô½Ã¹° ÀÌµ¿Ã¼Å© /////////

///////// ¿¬Àå±â°£ ÀÔ·ÂÈ®ÀÎ /////////
function Extension_check(form){
  if (!contentEmptyCheck(form.Gisa_Class_Join))
  {
    alert('¼ö°­¿¬Àå °ú¸ñÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.');
	form.Gisa_Class_Join.focus();
	return false;
  }
  if (!contentEmptyCheck(form.b_month))
  {
    alert('¿¬Àå±â°£À» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	form.b_month.focus();
	return false;
  }
  if (!contentEmptyCheck(form.b_day))
  {
    alert('¿¬Àå±â°£À» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	form.b_day.focus();
	return false;
  }
}
///////// ¿¬Àå±â°£ ÀÔ·ÂÈ®ÀÎ /////////

/////////±â»çÄ£±¸¿¡ ¹Ù¶õ´Ù ÀÔ·ÂÃ¼Å© /////////
function main_comm_check(form){
	str = form.memo.value;
//	alert (str)
	if (str == '»À¾ÆÇÂ ¼Ò¸®µµ ´Þ°Ô ¹Þ°Ú½À´Ï´Ù. ¢ÑÅ¬¸¯')
	{
	alert('³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	form.memo.focus();
	return false;
	}	

	if (!contentEmptyCheck(form.memo))
	{
	alert('³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	form.memo.focus();
	return false;
	}
}
/////////±â»çÄ£±¸¿¡ ¹Ù¶õ´Ù ÀÔ·ÂÃ¼Å© /////////

///////// ¼³¹®Á¶»ç ¼±ÅÃÃ¼Å© /////////
function vote_check() {
	var check_value = ""
	for (i=0; i<form.vote.length; i++)
	{
		if(form.vote[i].checked == true) 
		{
		check_value = form.vote[i].value
		}
	}

	if(check_value == "")
	{
	alert('ÇÏ³ªÀÇ Ç×¸ñÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.');
	return false;
	}
}
///////// ¼³¹®Á¶»ç ¼±ÅÃÃ¼Å© /////////

///////// ¼³¹®Á¶»ç ÀÔ·ÂÃ¼Å© ////////
function poll_check() {

  if (!contentEmptyCheck(poll.poll_title)) {
    alert('¼³¹®Á¦¸ñ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	poll.poll_title.focus();
  return false;
	}

  if (!contentEmptyCheck(poll.vote1)) {
    alert('´äº¯Àº ÃÖ¼Ò µÎ°³¸¦ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.');
	poll.vote1.focus();
  return false;
	}
  if (!contentEmptyCheck(poll.vote2)) {
    alert('´äº¯Àº ÃÖ¼Ò µÎ°³¸¦ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.');
	poll.vote2.focus();
  return false;
	}
  if (!contentEmptyCheck(poll.s_month)) {
    alert('¼³¹®Á¶»ç ½ÃÀÛÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	poll.s_month.focus();
  return false;
	}
  if (!contentEmptyCheck(poll.s_day)) {
    alert('¼³¹®Á¶»ç ½ÃÀÛÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	poll.s_day.focus();
  return false;
	}
  if (!contentEmptyCheck(poll.e_month)) {
    alert('¼³¹®Á¶»ç Á¾·áÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	poll.e_month.focus();
  return false;
	}
  if (!contentEmptyCheck(poll.e_day)) {
    alert('¼³¹®Á¶»ç Á¾·áÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	poll.e_day.focus();
  return false;
	}

}
///////// ¼³¹®Á¶»ç ÀÔ·ÂÃ¼Å© ////////

///////// ÀÏÀÏº¸°í¼­ ÀÔ·ÂÃ¼Å© /////////
function check_dayreport()
{
	if (!contentEmptyCheck(form.a_name))
	{
		alert('ÀÛ¼ºÀÚ ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
		form.a_name.focus();
		return false;
	}
//	if (!contentEmptyCheck(form.a_pass))
//	{
//		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
//		form.a_pass.focus();
//		return false;
//	}

	if (!contentEmptyCheck(form.a_content1))
	{
		alert('±ÝÀÏ ÀÛ¾÷³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
		form.a_content1.focus();
		return false;
	}
	if (!contentEmptyCheck(form.a_content2))
	{
		alert('¸íÀÏ ÇÒ ÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
		form.a_content2.focus();
		return false;
	}
}
///////// ÀÏÀÏº¸°í¼­ ÀÔ·ÂÃ¼Å© /////////

///////// ÀÏÁ¤/Day ÀÔ·ÂÃ¼Å© /////////
function daily_check(){
  if (!contentEmptyCheck(dailay.fd_title))
  {
    alert('Á¦¸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	dailay.fd_title.focus();
	return false;
  }
  if (!contentEmptyCheck(dailay.fd_contents))
  {
    alert('³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	dailay.fd_contents.focus();
	return false;
  }
}
///////// ÀÏÁ¤/Day ÀÔ·ÂÃ¼Å© /////////

///////// ½ÃÇèÀÏÁ¤ ÀÔ·ÂÃ¼Å© /////////
function sch_check(){
  if (!contentEmptyCheck(dailay.fd_title))
  {
    alert('Á¦¸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	dailay.fd_title.focus();
	return false;
  }
  if (!contentEmptyCheck(dailay.subject))
  {
    alert('°ú¸ñÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.');
	dailay.subject.focus();
	return false;
  }
  if (!contentEmptyCheck(dailay.fd_contents))
  {
    alert('³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	dailay.fd_contents.focus();
	return false;
  }
}
///////// ½ÃÇèÀÏÁ¤ ÀÔ·ÂÃ¼Å© /////////

///////// ÀÏÁ¤/Day µî·ÏÆË¾÷ /////////
function Daily_View(idx,code)
{
	window.open("/Room/Daily_View.asp?idx="+idx+"&Code="+code,"Daily_Pop","resizable=no,x=150,y=50,width=400,height=300,scrollbars=no");
}
///////// ÀÏÁ¤/Day µî·ÏÆË¾÷ /////////

///////// ÀÏÀÏ º¸°í¼­ÆË¾÷ /////////
function Day_Pass(idx)
{
//	window.open("Day_Pass.asp?idx="+idx,"DayPass_Pop","resizable=no,x=150,y=50,width=300,height=200,scrollbars=no");
	location.href="Day_RePortView.asp?idx="+idx;

}
///////// ÀÏÀÏ º¸°í¼­ÆË¾÷ /////////

///////// Á¤º¸Ã³¸® ½Ç±â ±¸°­ÀÇ ÆË¾÷ /////////
function old_sil()
{
	window.open("/Room/old_sil.asp","old_sil_Pop","resizable=no,x=150,y=50,width=670,height=500,scrollbars=yes");
}
///////// Á¤º¸Ã³¸® ½Ç±â ±¸°­ÀÇ ÆË¾÷ /////////

///////// Á¤º¸Ã³¸® ½Ç±â ÇØ¼³°­ÀÇ ÆË¾÷ /////////
function moanswer_sil()
{
	window.open("/Room/moanswer_sil.asp","moanswer_sil","resizable=no,x=150,y=50,width=670,height=500,scrollbars=yes");
}
///////// Á¤º¸Ã³¸® ½Ç±â ÇØ¼³°­ÀÇ ÆË¾÷ /////////

///////// Á¤º¸Ã³¸® ½Ç±â ±âÃâ°­ÀÇ ÆË¾÷ /////////
function gichul_sil()
{
	window.open("/Room/gichul_sil.asp","gichul_sil","resizable=no,x=150,y=50,width=670,height=500,scrollbars=yes");
}
///////// Á¤º¸Ã³¸® ½Ç±â ±âÃâ°­ÀÇ ÆË¾÷ /////////

///////// Á¤º¸Ã³¸®±â»ç/»ê¾÷±â»ç/»ç¹«ÀÚµ¿È­ ÇÊ±â ±¸°­ÀÇ ÆË¾÷ /////////
function gs_old1()
{
	window.open("/Room/gs_old1.asp","gs_old1_Pop","resizable=no,x=150,y=50,width=670,height=500,scrollbars=yes");
}
function sg_old1()
{
	window.open("/Room/sg_old1.asp","sg_old1_Pop","resizable=no,x=150,y=50,width=670,height=500,scrollbars=yes");
}
function sa_old1()
{
	window.open("/Room/sa_old1.asp","sg_old1_Pop","resizable=no,x=150,y=50,width=670,height=500,scrollbars=yes");
}
function sa_old1_gichul()
{
	window.open("/Room/sa_old1_gichul.asp","sg_old1_gichul_Pop","resizable=no,x=150,y=50,width=570,height=350,scrollbars=yes");
}
function gs_moegosa()
{
	window.open("/Room/gs_moegosa.asp","gs_moegosa","resizable=no,x=150,y=50,width=370,height=250,scrollbars=yes");
}
function sg_moegosa()
{
	window.open("/Room/sg_moegosa.asp","sg_moegosa","resizable=no,x=150,y=50,width=370,height=250,scrollbars=yes");
}
///////// Á¤º¸Ã³¸®±â»ç/»ê¾÷±â»ç/»ç¹«ÀÚµ¿È­ ÇÊ±â ±¸°­ÀÇ ÆË¾÷ /////////

///////// ¼ö°­º¯°æ/¼±ÅÃ»çÇ× Ã¼Å©  /////////
function select_check(form) {

	var check_value = ""
	var obj = form.IDs;
	var len = obj.length;
	if (len > 1 ){
		for (i=0; i<obj.length; i++)
		{
			if(obj[i].checked == true) 
			{
			check_value = obj[i].value
			}
		}
		if(check_value == "")
		{
		alert('Àû¾îµµ ÇÑ°³ ÀÌ»óÀÇ Ç×¸ñÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.');
		return false;
		}
	}
	else
	{
		if (obj.checked == false) {
		alert('Àû¾îµµ ÇÑ°³ ÀÌ»óÀÇ Ç×¸ñÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.');
		return false;
        }
	}
  if (!contentEmptyCheck(form.select_kind))
  {
    alert('¼ö°­º¯°æ »çÇ×À» ¼±ÅÃÇØÁÖ¼¼¿ä.');
	form.select_kind.focus();
	return false;
  }
}
///////// ¼ö°­º¯°æ/¼±ÅÃ»çÇ× Ã¼Å©  /////////

///////// ¸ÞÀÎ TEXT¹Ú½º  /////////
function check_w(vv){
	if (vv.value == ''){
		vv.value=vv.defaultValue;
	}
}
function clear_w(vv){
	if (vv.value == vv.defaultValue){
		vv.value = '';
	}
}
///////// ¸ÞÀÎ TEXT¹Ú½º  /////////

///////// Áñ°ÜÃ£±â  /////////
function addfavorites(){
	if (document.all)
		window.external.AddFavorite("http://www.gisa79.com","[¿Â¶óÀÎ IT ±³À°ÀÇ ÃÖ°­ ±â»çÄ£±¸]")
}
///////// Áñ°ÜÃ£±â  /////////

///////// /»ó´ã¹®ÀÇ/ÀÚ·á½Ç/±³À°»ý¼ö±â ÀÔ·ÂÃ¼Å© /////////
function check_title(form) {
	if (!contentEmptyCheck(form.title)){
	alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
	form.title.focus();
	return false;
	}
	if (!contentEmptyCheck(form.user_name)){
	alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
	form.user_name.focus();
	return false;
	}
	if (!contentEmptyCheck(form.board_kind)){
	alert("±¸ºÐÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.")
	form.board_kind.focus();
	return false;
	}
  }
function check_title_edu(form) {
	if (!contentEmptyCheck(form.title)){
	alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
	form.title.focus();
	return false;
	}
	if (!contentEmptyCheck(form.user_name)){
	alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
	form.user_name.focus();
	return false;
	}
	if (!contentEmptyCheck(form.board_classvalue)){
	alert("¼ö±â °ú¸ñÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.")
	form.board_classvalue.focus();
	return false;
	}

	var check_value = ""
	for (i=0; i<form.board_star.length; i++)
	{
		if(form.board_star[i].checked == true) 
		{
		check_value = form.board_star[i].value
		}
	}

	if(check_value == "")
	{
	alert('º°Á¡À» ÁÖ¼¼¿ä!');
	return false;
	}

  }

///////// /»ó´ã¹®ÀÇ/ÀÚ·á½Ç/±³À°»ý¼ö±â ÀÔ·ÂÃ¼Å© /////////

///////// °ü¸®ÀÚ¸ðµå °øÁö»çÇ×/ÀÚ·á½Ç/ÇÐ½ÀÀÚ·á½Ç ÀÔ·ÂÃ¼Å© /////////
function admin_input_check(form) {
	if (!contentEmptyCheck(form.title)){
	alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
	form.title.focus();
	return false;
	}
	if (!contentEmptyCheck(form.board_kind)){
	alert("±¸ºÐÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.")
	form.board_kind.focus();
	return false;
	}
	}
///////// °ü¸®ÀÚ¸ðµå °øÁö»çÇ×/ÀÚ·á½Ç/ÇÐ½ÀÀÚ·á½Ç ÀÔ·ÂÃ¼Å© /////////

///////// ¿Â¶óÀÎ »ó´ã ÀÔ·ÂÃ¼Å© /////////
function check_title_pass(form) {
	if (!contentEmptyCheck(form.title)){
	alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
	form.title.focus();
	return false;
	}

	if (!contentEmptyCheck(form.user_pw)){
	alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
	form.user_pw.focus();
	return false;
	}
  }
///////// ¿Â¶óÀÎ »ó´ã ÀÔ·ÂÃ¼Å© /////////

///////// ÀÚ·á½Ç °Ë»öÃ¼Å© /////////
function search_check(form) {
  if (!contentEmptyCheck(form.search_content)){
    alert('°Ë»ö ³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.');
	form.search_content.focus();
	return false;
  }
}
///////// ÀÚ·á½Ç °Ë»öÃ¼Å© /////////

///////// °­ÀÇ°³¼³ ÀÔ·ÂÃ¼Å© ////////
function lec_check(form) {
  if (!contentEmptyCheck(form.lectuer_name)) {
    alert('°­ÀÇ¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä.');
	form.lectuer_name.focus();
  return false;
	}
  if (!contentEmptyCheck(form.TecID)) {
    alert('´ã´ç±³¼ö¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.');
	form.TecID.focus();
  return false;
	}
  if (!contentEmptyCheck(form.UnivName)) {
    alert('°ú¸ñÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.');
	form.UnivName.focus();
  return false;
	}
  if (!contentEmptyCheck(form.reg_level)) {
    alert('°­ÀÇ·¹º§À» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	form.reg_level.focus();
  return false;
	}
  if (!contentEmptyCheck(form.CPrice)) {
    alert('ÆÇ¸Å°¡°ÝÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	form.CPrice.focus();
  return false;
	}
}
///////// °­ÀÇ°³¼³ ÀÔ·ÂÃ¼Å© ////////

///////// µ¿¿µ»ó ÀÔ·ÂÃ¼Å© ////////
function mov_check(form) {
  if (!contentEmptyCheck(form.Gisa_Class_Sub)) {
    alert('°­ÀÇ¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.');
	form.Gisa_Class_Sub.focus();
  return false;
	}
  if (!contentEmptyCheck(form.mov_name)) {
    alert('°­ÀÇÁ¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä.');
	form.mov_name.focus();
  return false;
	}
  if (!contentEmptyCheck(form.mov_level)) {
    alert('°­ÀÇ·¹º§ ÀÔ·ÂÇÏ¼¼¿ä.');
	form.mov_level.focus();
  return false;
	}
  if (!contentEmptyCheck(form.mov_sort)) {
    alert('°­ÀÇ¼ø¹øÀ» ÀÔ·ÂÇÏ¼¼¿ä.');
	form.mov_sort.focus();
  return false;
	}
  if (!contentEmptyCheck(form.mov_time)) {
    alert('°­ÀÇ½Ã°£ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	form.mov_time.focus();
  return false;
	}
  if (!contentEmptyCheck(form.content)) {
    alert('°­ÀÇ ¼³¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	form.content.focus();
  return false;
	}
}
///////// µ¿¿µ»ó ÀÔ·ÂÃ¼Å© ////////

///////// ÄÚ¸àÆ® ÀÔ·Â Ã¼Å© ////////
function comment_check(form) {

  if (!contentEmptyCheck(comment.comment)) {
    alert('³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.');
	comment.comment.focus();
  return false;
	}
}
///////// ÄÚ¸àÆ® ÀÔ·Â Ã¼Å© ////////


///////// ÄÚ¸àÆ® ÀÔ·Â Ã¼Å© ////////
function comment_check_edit()
{
	var theForm = document.comment;
	var frmSpace = /^\s/;

	if (theForm.edit_type2.value==1) theForm.comment.value = htmleditorFrame.document.body.innerHTML;
	if (theForm.comment.value==false)
	{
		alert("»ó´ã³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		htmleditorFrame.focus();
		return false;
	}
}
///////// ÄÚ¸àÆ® ÀÔ·Â Ã¼Å© ////////


///////// ¸Þ¸ðÀÔ·Â Ã¼Å© ////////
function memo_check(form) {

  if (!contentEmptyCheck(memo_frm.a_title)) {
    alert('Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä.');
	memo_frm.a_title.focus();
  return false;
	}

  if (!contentEmptyCheck(memo_frm.a_memo)) {
    alert('¸Þ¸ð³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.');
	memo_frm.a_memo.focus();
  return false;
	}
}
///////// ¸Þ¸ðÀÔ·Â Ã¼Å© ////////

///////// ÀÌº¥Æ®ÄÚ¸àÆ® ÀÔ·Â Ã¼Å© ////////
function event_comment_check(form)
{

  if (!contentEmptyCheck(comment.comment))
	{
    alert('³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.');
	comment.comment.focus();
	return false;
	}

	var check_value = ""
	for (i=0; i<form.a_star.length; i++)
	{
		if(form.a_star[i].checked == true) 
		{
		check_value = form.a_star[i].value
		}
	}

	if(check_value == "")
	{
	alert('º°Á¡À» ÁÖ¼¼¿ä!');
	return false;
	}
}
///////// ÀÌº¥Æ®ÄÚ¸àÆ® ÀÔ·Â Ã¼Å© ////////

///////// ÄÝ¶óÀÌº¥Æ® ÀÔ·Â Ã¼Å© ////////
function event_comment_coke(form)
{

	var check_value = ""
	for (i=0; i<form.a_star.length; i++)
	{
		if(form.a_star[i].checked == true) 
		{
		check_value = form.a_star[i].value
		}
	}

	if(check_value == "")
	{
	alert('ÄÚ¸àÆ®¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä!');
	return false;
	}

	if(form.a_star[4].checked == true)
	{
		if (!contentEmptyCheck(comment.a_title))
		{
		alert('Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä.');
		comment.a_title.focus();
		return false;
		}
	}

	if (!contentEmptyCheck(comment.comment))
	{
	alert('³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.');
	comment.comment.focus();
	return false;
	}
}
///////// ÄÝ¶óÀÌº¥Æ® ÀÔ·Â Ã¼Å© ////////



///////// Çö±Ý ¿µ¼öÁõ ¹ßÇà Ã¼Å© ////////
function hy_check(form) {

  if (!contentEmptyCheck(form.hy_code)) {
    alert('¿ëµµ¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.');
	hy_form.hy_code.focus();
  return false;
	}

//  if (!contentEmptyCheck(hy_form.a_code)) {
//    alert('Çö±Ý¿µ¼öÁõ ¹ßÇà °ú¸ñÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.');
//	hy_form.a_code.focus();
//  return false;
//	}

  if (!contentEmptyCheck(hy_form.select_code)) {
    alert('Çö±Ý¿µ¼öÁõ ¹ßÇà½Ã ÇÊ¿äÇÑ ¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	hy_form.select_code.focus();
  return false;
	}

  if (!contentEmptyCheck(hy_form.select_name)) {
	  str = document.hy_form.select_code.value;
	  if (str=="1")
	  {
	    alert('ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
		hy_form.select_name.focus();
	  }
	  else if (str=="2")
	  {
	    alert('ÁÖ¹Îµî·Ï ¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
		hy_form.select_name.focus();
	  }
	  else if (str=="3")
	  {
	    alert('Çö±Ý ¿µ¼öÁõ Ä«µå ¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
		hy_form.select_name.focus();
	  }
	  else if (str=="4")
	  {
	    alert('»ç¾÷ÀÚ µî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä');
		hy_form.select_name.focus();
	  }
  return false;
	}
}
///////// Çö±Ý ¿µ¼öÁõ ¹ßÇà Ã¼Å© ////////


///////// ÀÚÁÖÇÏ´ÂÁú¹® Åä±Û¸®½ºÆ® ////////
	var old_Content = '';
	function toggleContent(currContent) {
		if( old_Content != currContent ) {
		if( old_Content !='' ) {
			old_Content.style.display = 'none';
	 }
		currContent.style.display = 'block';
		old_Content = currContent;
		} else {
			currContent.style.display = 'none';
			old_Content = '';
		}
	}
///////// ÀÚÁÖÇÏ´ÂÁú¹® Åä±Û¸®½ºÆ® ////////

///////// ¼ö°­½ÅÃ» ½ÅÃ»È®ÀÎ ////////
function check_cart(form)
{
	var check_value = ""
	var obj = form.ClassID;
	var len = obj.length;
	if (len > 1 ){
		for (i=0; i<obj.length; i++)
		{
			if(obj[i].checked == true) 
			{
			check_value = obj[i].value
			}
		}
		if(check_value == "")
		{
		alert('¼ö°­½ÅÃ» ÇÒ °ú¸ñÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.');
		return false;
		}
	}
	else
	{
		if (obj.checked == false) {
		alert('¼ö°­½ÅÃ» ÇÒ °ú¸ñÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.');
		return false;
        }
	}
}
///////// ¼ö°­½ÅÃ» ½ÅÃ»È®ÀÎ ////////

///////// °áÁ¦¼±ÅÃ ////////
function result_check(form)
{
	var check_value = ""
	for (i=0; i<form.paytype.length; i++)
	{
		if(form.paytype[i].checked == true) 
		{
		check_value = form.paytype[i].value
		}
	}
	if(check_value == "")
	{
	alert('°áÀç ¹æ¹ýÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.');
	form.paytype[0].focus();
	return false;
	}
	else if (check_value == "Card")
	{
	document.mainForm.action="http://pg.dacom.net/card/cardAuthAppInfo.jsp";
	window.open("","Card","width=330, height=430, status=no, scrollbars=no,resizable=no, menubar=no");
	document.mainForm.target = "Card";
	document.mainForm.submit();
	}
	else if (check_value == "Mobile")
	{
	document.mainForm.action= "http://pg.dacom.net/wireless/wirelessAuthAppInfo1.jsp";
	window.open("", "Mobile", "width=330, height=430, scrollbars=no,status=no, resizable=no,menubar=no");
	document.mainForm.target = "Mobile";
	document.mainForm.submit();
	}
	else if (check_value == "OnLineBank")
	{
	document.mainForm.action= "http://pg.dacom.net/transfer/transferSelectBank.jsp";
	window.open("", "OnLineBank", "width=330, height=430, scrollbars=no,status=no, resizable=no,menubar=no");
	document.mainForm.target = "OnLineBank";
	document.mainForm.submit();
	}
	else if (check_value == "Bank") 
	{
	document.mainForm.action= "/Custom/Lecture_Application_ResultOk.asp";
	document.mainForm.submit();
	}
}
///////// °áÁ¦¼±ÅÃ ////////

///////// °­ÁÂ ºä¾î ////////

	function db_sil_view1(vod)
	{
		// Á¤º¸Ã³¸® ÇÊ±â ±¸°­ÀÇºäÃ³
		window.open('/Sample/Mv_Info_Pilgi_Mms.asp?mv_mms='+vod,'view','width=950,height=700,left=0,top=0,resizable=yes');
	}
	function samu_pilgi_view1(vod)
	{
		// »ç¹«ÀÚµ¿È­ ÇÊ±â ±¸°­ÀÇºäÃ³
		window.open('/Sample/Mv_Samu_Pilgi_Mms.asp?mv_mms='+vod,'view','width=950,height=680,left=0,top=0,resizable=yes');
	}

	function LectureView1(id)
	{
		// È­¸é °LÃç ¹æ½Ä
		window.open('/Room/Lucture_Viewer/Lucture_Ch1_Big.asp?ID='+id,'view','width=850,height=700,left=0,top=0,resizable=yes');
	}
	function LectureView2(id)
	{
		// È­¸é °LÃç ¹æ½Ä
		window.open('/Room/Lucture_Viewer/Lucture_Ch2_Big.asp?ID='+id,'view','width=850,height=700,left=0,top=0');
	}
	function LectureView3(id)
	{
		// È­¸é °LÃç ¹æ½Ä
		window.open('/Room/Lucture_Viewer/Lucture_Ch3_Big.asp?ID='+id,'view','width=800,height=770,left=0,top=0');
	}
	function LectureView4(id)
	{
		// È­¸é °LÃç ¹æ½Ä
		window.open('/Room/Lucture_Viewer/Lucture_Ch4_Big.asp?ID='+id,'view','width=800,height=770,left=0,top=0');
	}


	function NewLectureView1(id)
	{
		// µ¿¿µ»ó ¹æ½Ä
		window.open('/Room/Lucture_Viewer/Lucture_Ch1_Small.asp?ID='+id,'view','width=950,height=680,left=0,top=0');
	}

	function NewLectureView2(id)
	{
		// µ¿¿µ»ó ¹æ½Ä
		window.open('/Room/Lucture_Viewer/Lucture_Ch2_Small.asp?ID='+id,'view','width=950,height=680,left=0,top=0');
	}

	function NewLectureView3(id)
	{
		// µ¿¿µ»ó ¹æ½Ä
		window.open('/Room/Lucture_Viewer/Lucture_Ch3_Small.asp?ID='+id,'view','width=950,height=680,left=0,top=0');
	}
	function NewLectureView4(id)
	{
		// µ¿¿µ»ó ¹æ½Ä
		window.open('/Room/Lucture_Viewer/Lucture_Ch4_Small.asp?ID='+id,'view','width=950,height=680,left=0,top=0');
	}


	function NewLecture_View1Wide(id)
	{
		// µ¿¿µ»ó ¹æ½Ä
		window.open('/Room/Lucture_Viewer/Lucture_Ch1_Wide.asp?ID='+id,'view','width=1000,height=580,left=0,top=0');
	}

	function NewLecture_View2Wide(id)
	{
		// µ¿¿µ»ó ¹æ½Ä
		window.open('/Room/Lucture_Viewer/Lucture_Ch2_Wide.asp?ID='+id,'view','width=1000,height=580,left=0,top=0');
	}

	function NewLecture_View3Wide(id)
	{
		// µ¿¿µ»ó ¹æ½Ä
		window.open('/Room/Lucture_Viewer/Lucture_Ch3_Wide.asp?ID='+id,'view','width=1000,height=580,left=0,top=0');
	}
	function NewLecture_View4Wide(id)
	{
		// µ¿¿µ»ó ¹æ½Ä
		window.open('/Room/Lucture_Viewer/Lucture_Ch4_Wide.asp?ID='+id,'view','width=1000,height=580,left=0,top=0');
	}

///////// °­ÁÂ ºä¾îº¸±â ////////

///////// ÇÁ¸°Æ® Ãâ·Â //////////
function printWin() 
{
	if(window.print)
	{
//		alert("ÀÎ¼â½Ã °¡·Î¹æÇâ ÀÎ¼â¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.")
	window.print();
	}
	else
	{
	alert('³Ý½ºÄÉÀÌÇÁ4.0 ÀÌ³ª ÀÍ½ºÇÃ·Î·¯ 5.0ÀÌ»ó¿¡¼­¸¸ Áö¿øµË´Ï´Ù.');
	}
}
///////// ÇÁ¸°Æ® Ãâ·Â //////////

///////////////// Á¤´äº¸±â ÆË¾÷ /////////////////////////
function answer_view(ExNum){
	var Exnum = ExNum

	window.open("/practical/user/Ans_Pop.asp?ExNum="+ExNum,"Pop","scrollbars=0,resizable=0,width=450,height=280");
}
///////////////// Á¤´äº¸±â ÆË¾÷ /////////////////////////

///////// ÇÒÀÎ·ü ±¸ÇÏ±â //////////
function auto_money(price_dc) {
var price_dc;

var fn1 = document.money_pop.price_dc.value;
var fn2;
var fn3;	
	fn1 = fn1 / 100;
	fn2 = price_dc * fn1;
	fn3 = price_dc - fn2;
	document.money_pop.price.value=fn3;
}

function money_check(form,p_money)
{
	var check_value = ""
	var check_value_tot;
	for (i=0; i<form.p_chkeck.length; i++)
	{
		if(form.p_chkeck[i].checked == true) 
		{
		check_value = form.p_chkeck[i].value
		check_value_tot = check_value_tot + check_value
		}
	}

	if(check_value_tot == "undefined12")
	{
	alert('[ÇÒÀÎ/¹«·á] Ç×¸ñÀ» µ¿½Ã¿¡ ¼±ÅÃÇÒ¼ö ¾ø½À´Ï´Ù.');
	form.p_chkeck[0].focus();
	return false;
	}

	str = form.price_dc.value;
	if (str!="0")
	{
		if (check_value!="1")
		{
		alert('ÇÒÀÎÀÌ Àû¿ë µÇ¾ú½À´Ï´Ù. ÇÒÀÎ Ç×¸ñ¿¡ Ã¼Å©ÇØÁÖ¼¼¿ä.');
		form.p_chkeck[0].focus();
		return false;
		}
	}

	str = form.price.value;
	if (str=="0")
	{
		if (check_value!="2")
		{
		alert('Àû¿ë±Ý¾×ÀÌ 0¿øÀÔ´Ï´Ù. ¹«·á Ç×¸ñ¿¡ Ã¼Å©ÇØÁÖ¼¼¿ä.');
		form.p_chkeck[1].focus();
		return false;
		}
	}

	if (check_value == "")
	{
		str = form.price.value;
		if (p_money!=str)
		{
		alert('±Ý¾×°ú Àû¿ë±Ý¾×ÀÌ ´Ù¸¨´Ï´Ù.');
		form.price.focus();
		return false;
		}
	}

	if(check_value == "1")
	{
		str = form.price_dc.value;
		if (str=="0")
		{
		alert('ÇÒÀÎ·ü(%)À» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
		form.price_dc.focus();
		return false;
		}
	}

	if(check_value == "2")
	{
		str = form.price.value;
		if (str!="0")
		{
		alert('[¹«·á]´Â Àû¿ë±Ý¾×ÀÌ 0¿øÀ» ³ÑÀ»¼ö ¾ø½À´Ï´Ù.');
		form.price.focus();
		return false;
		}
	}

	if(confirm("°áÁ¦Ã³¸® ÇÏ½Ã°Ú½À´Ï±î?")) {
//  		form.submit();
	}
	else
	{
		return false;
	}
}

///////// ÇÒÀÎ·ü ±¸ÇÏ±â //////////