function payhpcms() {
	winName = "cmswindow";
	features = "width=350,height=470";	

	with(document.joinFrm) {
		
		is_student = false;
		
		if ((m_job.value == 'ÃÊ.Áß°í»ý') || (m_job.value == '´ëÇÐ(¿ø)»ý') || (m_job.value == 'Ãë¾÷ÁØºñÁß')) {
			is_student = true;	
		}
				
		if (m_flgamount[0].checked == false  && m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == false) {
			alert('È¸ºñ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			payamount.focus();
			return false;
		} else if (payamount.value == '' &&  m_flgamount[0].checked == false  && m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
			alert('È¸ºñ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			payamount.focus();
			return false;
		} else if ( !is_student && (payamount.value <= 5000 &&  m_flgamount[0].checked == false  && m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == true)) {
			alert('¿ÀÃµ¿øÀÌ»óÀ¸·Î Àû¾îÁÖ¼¼¿ä.');
			payamount.focus();
			return false;
		} else if ( is_student && (payamount.value <= 3000 &&  m_flgamount[0].checked == false  && m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == true)) {
			alert('»ïÃµ¿øÀÌ»óÀ¸·Î Àû¾îÁÖ¼¼¿ä.');
			payamount.focus();
			return false;
		} else if (payamount.value > 100000 &&  m_flgamount[0].checked == false  && m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
			alert('½Ê¸¸¿øÀÌÇÏ·Î Àû¾îÁÖ¼¼¿ä.');
			payamount.focus();
			return false;				
		} else if (hpCMSnumber1.value == '' || hpCMSnumber2.value == '' || hpCMSnumber3.value == '') {
			alert('ÈÞ´ëÆù¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			hpCMSnumber1.focus();
			return false;	
		} else if (hpCMSname.value == '' && ( m_flgamount[0].checked == true  || m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
			alert('ÈÞ´ëÆù ¸íÀÇÀÚ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			hpCMSname.focus();
			return false;	
		} else if (hpCMSjumin1.value == '' && ( m_flgamount[0].checked == true  || m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
			alert('ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			hpCMSjumin1.focus();
			return false;		
		} else if (hpCMSjumin2.value == '' && ( m_flgamount[0].checked == true  || m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
			alert('ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			hpCMSjumin2.focus();
			return false;
		}
				
		if (m_flgamount[0].checked)  {  m_flgamount_data = m_flgamount[0].value; }
		if (m_flgamount[1].checked)  {  m_flgamount_data = m_flgamount[1].value; }
		if (m_flgamount[2].checked)  {  m_flgamount_data = m_flgamount[2].value; }				
		if (m_flgamount[3].checked)  {  m_flgamount_data = m_flgamount[3].value; }		
		payamount_data = payamount.value;

		theURL = "http://www.cybercorea.org/member/wow5_asp/sample0.asp?"
		hpCMSnumber_data = "hpCMSnumber1=" + hpCMSnumber1.value + "&hpCMSnumber2=" + hpCMSnumber2.value + "&hpCMSnumber3=" + hpCMSnumber3.value;
		hpCMSjumin_data = "&hpCMSjumin1=" + hpCMSjumin1.value + "&hpCMSjumin2=" + hpCMSjumin2.value;
		hpCMS_etc_data = "&hpCMSkiup=" + hpCMSkiup.value + "&m_email=" + m_email.value + "&m_identity=" + m_identity.value + "&m_flgamount=" + m_flgamount_data + "&payamount=" + payamount_data;
		theURLall = theURL + hpCMSnumber_data + hpCMSjumin_data + hpCMS_etc_data;

		window.open(theURLall,winName,features);
	}
}

function checkIdentity(identity) {
	if (getLength(document.joinFrm.m_identity.value) >= 4 && getLength(document.joinFrm.m_identity.value) <= 20) {
		duplication = RSExecute("/member/modules/idc.asp","duplicationCheck",identity);
		
		if(!duplication.return_value) {
			alert('ÀÌ¹Ì Á¸ÀçÇÏ´Â ¾ÆÀÌµðÀÔ´Ï´Ù.');
			document.joinFrm.m_identity.select();
		}
		else {
			alert('»ç¿ëÇÒ ¼ö ÀÖ´Â ¾ÆÀÌµðÀÔ´Ï´Ù.');
		}
	}
	else if (lengthChk(document.joinFrm.m_identity,4,'min','¾ÆÀÌµð´Â')){
	}
	else if (lengthChk(document.joinFrm.m_identity,20,'max','¾ÆÀÌµð´Â')){
	}
	else if (getLength(document.joinFrm.m_identity.value) == 0) {
		document.joinFrm.m_identity.focus();
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
	}
	
}

function alertEmail(email) {
	if (!validateEmail(document.joinFrm.m_email.value)) {
		duplication = RSExecute("/member/modules/idc.asp","emailCheck",email);
		
		if(!duplication.return_value) {
			alert('ÀÌ¹Ì µî·ÏµÇ¾î ÀÖ´Â ÀÌ¸ÞÀÏÀÔ´Ï´Ù.');
			return true;
		}
		else {
			return false;
		}
	}
}

function checkRegistration(regist1,regist2) {

	if (document.joinFrm.jumin1.value.length == 6 && document.joinFrm.jumin2.value.length == 7) {

		registration = RSExecute("/member/modules/idc.asp","registrationCheck",regist1,regist2);
		
		if(!registration.return_value) {
			return true;
		} else {
			return false;
		}
	}
}

function abroadCheck() {
	with(document.joinFrm) {
		if (m_flgAbroad.checked == true) {
			jumin1.disabled = true;
			jumin2.disabled = true;
			alert('ÇØ¿Ü °¡ÀÔÀÚ´Â ÁÖ¹Îµî·Ï¹øÈ£´Â ÀÔ·ÂÇÏ½Ç ÇÊ¿ä°¡ ¾ø½À´Ï´Ù.')
		} else {
			jumin1.disabled = false;
			jumin2.disabled = false;
		}
	}
}

function joinStep1() {
	with (document.joinFrm) {
		if (m_flgAbroad.checked == true && m_nation.value == '') {
			m_nation.focus();
			alert('°ÅÁÖÇÏ½Ã´Â ±¹°¡¸¦ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
			return false;
		} else if (m_identity.value == '') {
			alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_identity.focus();
			return false;
		} else if (lengthChk(m_identity,4,'min','¾ÆÀÌµð´Â')) {
			return false;
		} else if (lengthChk(m_identity,12,'max','¾ÆÀÌµð´Â')) {
			return false;
		} else if (jumin1.value == '' && m_flgAbroad.checked == false) {
			alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			jumin1.focus();
			return false;
		} else if (jumin2.value == '' && m_flgAbroad.checked == false) {
			alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			jumin1.focus();
			return false;	
		} else if ((isNumber(jumin1,'ÁÖ¹Îµî·Ï¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else if ((isNumber(jumin2,'ÁÖ¹Îµî·Ï¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else if (m_flgAbroad.checked == false && isSSN(jumin1,jumin2) == false) {
			alert('Àß¸øµÈ ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù.')
			jumin1.focus();
			return false;
		} else if ((checkRegistration(jumin1.value,jumin2.value)) && m_flgAbroad.checked == false) {
			document.joinFrm.jumin1.focus();
			document.joinFrm.jumin2.select();
			alert("ÀÌ¹Ì Á¸ÀçÇÏ´Â ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù.\n°¡ÀÔ ¿©ºÎ¸¦ È®ÀÎÇØ º¸½Ê½Ã¿À.");
			return false;
		} else if (name.value == '') {
			alert('ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			name.focus();
			return false;
		} else if (m_email.value == '') {
			alert('ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_email.focus();
			return false;
		} else if (isEmail(document.joinFrm.m_email.value)) {
			m_email.select();
			return false;
		}	else if (alertEmail(m_email.value)) {
			m_email.select();
			return false;
		} else {
			return true;
		}
	}
}

function joinstep3() {
	
	with (document.joinFrm) {

		if (m_password.value == '') {
			alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_password.focus();
			return false;
		} else if (m_password_check.value == '') {
			alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_password_check.focus();
			return false;
		} else if ((m_year.value == '' || m_month.value == '' || m_date.value == '')) {
			alert('»ý³â¿ùÀÏÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_year.focus();
			return false;
		} else if (m_sex[0].checked == false && m_sex[1].checked == false) {
				alert('¼ºº°À» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.')
				m_sex[0].focus();
				return false;			
		} else if ((m_phone1.value == '' || m_phone2.value == '' || m_phone3.value == '')) {
			alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_phone1.focus();
			return false;
		} else if (m_flgadd[0].checked == false && m_flgadd[1].checked == false ) {
				alert('ÁÖ¼ÒÁö¸¦ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.')
				m_flgadd[0].focus();
				return false;				
		} else if ((m_hzip1.value == '' || m_hzip2.value == '' || m_haddress1.value == '' || m_haddress2.value == '') ) {
			alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_haddress2.focus();
			return false;
		} else if (m_job.value == '') {
			alert('Á÷¾÷À» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
			m_job.focus();
			return false;
		} else if (likepolity.value == '') {
			alert('±¦ÂúÀºÁ¤Ä¡ÀÎÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			likepolity.focus();
			return false;
		} else if (hatespeech.value == '') {
			alert('ÇÑ½ÉÇÑ¾ð·Ð»ç¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			hatespeech.focus();
			return false;									
		} else if (m_password.value != m_password_check.value) {
			alert('ÀÔ·ÂÇÏ½Å ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇØ¾ßÇÕ´Ï´Ù.');
			m_password.select();
			m_password.focus();
			return false;
		}
		return true;
	}   // with
}

function joinstep2() {
	with (document.joinFrm) {
		if (m_password.value == '') {
			alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_password.focus();
			return false;
		} else if (m_password_check.value == '') {
			alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_password_check.focus();
			return false;
		} else if ((m_year.value == '' || m_month.value == '' || m_date.value == '')) {
			alert('»ý³â¿ùÀÏÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_year.focus();
			return false;
		} else if (m_sex[0].checked == false && m_sex[1].checked == false) {
				alert('¼ºº°À» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.')
				m_sex[0].focus();
				return false;			
		} else if ((m_phone1.value == '' || m_phone2.value == '' || m_phone3.value == '')) {
			alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_phone1.focus();
			return false;
		} else if (m_flgadd[0].checked == false && m_flgadd[1].checked == false ) {
				alert('ÁÖ¼ÒÁö¸¦ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.')
				m_flgadd[0].focus();
				return false;				
		} else if ((m_haddress1.value == '' || m_haddress2.value == '') ) {
			alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_haddress1.focus();
			return false;
		} else if (m_job.value == '') {
			alert('Á÷¾÷À» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
			m_job.focus();
			return false;
		} else if (likepolity.value == '') {
			alert('±¦ÂúÀºÁ¤Ä¡ÀÎÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			likepolity.focus();
			return false;
		} else if (hatespeech.value == '') {
			alert('ÇÑ½ÉÇÑ¾ð·Ð»ç¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			hatespeech.focus();
			return false;
		} else if (m_password.value != m_password_check.value) {
			alert('ÀÔ·ÂÇÏ½Å ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇØ¾ßÇÕ´Ï´Ù.');
			m_password.select();
			m_password.focus();
			return false;
		} else if ((isNumber(m_phone2,'ÀüÈ­¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else if ((isNumber(m_phone3,'ÀüÈ­¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else if ((isNumber(m_cellular2,'ÈÞ´ëÆù ¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else if ((isNumber(m_cellular3,'ÈÞ´ëÆù ¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else {
			//name.disabled = false;
			return true;
		}
	}
}

function modiTransmit() {
	with (document.joinFrm) {
		if (m_password.value == '') {
			alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_password.focus();
			return false;
		} else if (m_password_check.value == '') {
			alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_password_check.focus();
			return false;
		} else if (m_flgAbroad.checked == true && m_nation.value == '') {
			m_nation.focus();
			alert('°ÅÁÖÇÏ½Ã´Â ±¹°¡¸¦ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
			return false;	
		} else if (name.value == '') {
			alert('ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			name.focus();
			return false;
		} else if (m_email.value == '') {
			alert('ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_email.focus();
			return false;
		} else if ((m_year.value == '' || m_month.value == '' || m_date.value == '')) {
			alert('»ý³â¿ùÀÏÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_year.focus();
			return false;
		} else if (m_sex[0].checked == false && m_sex[1].checked == false) {
				alert('¼ºº°À» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.')
				m_sex[0].focus();
				return false;			
		} else if ((m_phone1.value == '' || m_phone2.value == '' || m_phone3.value == '') && m_flgAbroad.checked == false) {
			alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_phone1.focus();
			return false;
		} else if (m_flgadd[0].checked == false && m_flgadd[1].checked == false && m_flgAbroad.checked == false) {
				alert('ÁÖ¼ÒÁö¸¦ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.')
				m_flgadd[0].focus();
				return false;				
		} else if ((m_hzip1.value == '' || m_hzip2.value == '' || m_haddress1.value == '' || m_haddress2.value == '') && m_flgAbroad.checked == false) {
			alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_haddress2.focus();
			return false;
		} else if (m_job.value == '') {
			alert('Á÷¾÷À» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
			m_job.focus();
			return false;
		} else if (likepolity.value == '') {
			alert('±¦ÂúÀºÁ¤Ä¡ÀÎÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			likepolity.focus();
			return false;
		} else if (hatespeech.value == '') {
			alert('ÇÑ½ÉÇÑ¾ð·Ð»ç¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			hatespeech.focus();
			return false;	
		} else if (m_password.value != m_password_check.value) {
			alert('ÀÔ·ÂÇÏ½Å ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇØ¾ßÇÕ´Ï´Ù.');
			m_password.select();
			m_password.focus();
			return false;
		} else if ((isNumber(m_phone2,'ÀüÈ­¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else if ((isNumber(m_phone3,'ÀüÈ­¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else if ((isNumber(m_cellular2,'ÈÞ´ëÆù ¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else if ((isNumber(m_cellular3,'ÈÞ´ëÆù ¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else if (isEmail(document.joinFrm.m_email.value)) {
			m_email.select();
			return false;
		} else if(m_job.value == 'ÃÊ.Áß°í»ý' || m_job.value == '´ëÇÐ(¿ø)»ý' || m_job.value == 'Ãë¾÷ÁØºñÁß' ){
			if ( m_paymethod.value == 'CMS' ) {
			if ((m_flgamount[0].checked || m_flgamount[1].checked || m_flgamount[2].checked || m_flgamount[3].checked) == false) {
				alert('È¸ºñ ¹æ¹ýÀ» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
				m_flgamount[0].focus();
				return false;	
			} else if (payamount.value == '' &&  m_flgamount[0].checked == false  && m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
				alert('È¸ºñ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.')
				payamount.focus();
				return false;
			} else if (payamount.value <= 3000 &&  m_flgamount[0].checked == false  && m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
				alert('»ïÃµ¿øÀÌ»óÀ¸·Î Àû¾îÁÖ¼¼¿ä.')
				payamount.focus();
				return false;
			} else if (payamount.value > 100000 &&  m_flgamount[0].checked == false  && m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
				alert('½Ê¸¸¿øÀÌÇÏ·Î Àû¾îÁÖ¼¼¿ä.')
				payamount.focus();
				return false;				
			} else if (CMSbank.value == '' && ( m_flgamount[0].checked == true  || m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
				alert('ÀºÇàÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				CMSbank.focus();
				return false;	
			} else if (CMSnumber.value == '' && ( m_flgamount[0].checked == true  || m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
				alert('°èÁÂ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				CMSnumber.focus();
				return false;	
			} else if (CMSname.value == '' && ( m_flgamount[0].checked == true  || m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
				alert('¿¹±ÝÁÖ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				CMSname.focus();
				return false;	
			} else if (CMSjumin1.value == '' && ( m_flgamount[0].checked == true  || m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
				alert('ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				CMSjumin1.focus();
				return false;		
			} else if (CMSjumin2.value == '' && ( m_flgamount[0].checked == true  || m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
				alert('ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				CMSjumin2.focus();
				return false;
			}
			}   // 			if ( m_paymethod.value == 'CMS' ) {
			else {
			if ((m_flgamount[0].checked || m_flgamount[1].checked || m_flgamount[2].checked || m_flgamount[3].checked) == false) {
				alert('È¸ºñ ¹æ¹ýÀ» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
				m_flgamount[0].focus();
				return false;	
			} else if (payamount.value == '' &&  m_flgamount[0].checked == false  && m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
				alert('È¸ºñ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.')
				payamount.focus();
				return false;
			} else if (payamount.value <= 3000 &&  m_flgamount[0].checked == false  && m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
				alert('»ïÃµ¿øÀÌ»óÀ¸·Î Àû¾îÁÖ¼¼¿ä.')
				payamount.focus();
				return false;
			} else if (payamount.value > 100000 &&  m_flgamount[0].checked == false  && m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
				alert('½Ê¸¸¿øÀÌÇÏ·Î Àû¾îÁÖ¼¼¿ä.')
				payamount.focus();
				return false;				
			} else if ((hpCMSnumber1.value == '' || hpCMSnumber2.value == '' || hpCMSnumber3.value == '') && ( m_flgamount[0].checked == true  || m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
				alert('ÈÞ´ëÆù¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				hpCMSnumber1.focus();
				return false;	
			} else if (hpCMSname.value == '' && ( m_flgamount[0].checked == true  || m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
				alert('ÈÞ´ëÆù ¸íÀÇÀÚ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				hpCMSname.focus();
				return false;	
			} else if (hpCMSjumin1.value == '' && ( m_flgamount[0].checked == true  || m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
				alert('ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				hpCMSjumin1.focus();
				return false;		
			} else if (hpCMSjumin2.value == '' && ( m_flgamount[0].checked == true  || m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
				alert('ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				hpCMSjumin2.focus();
				return false;
			}
				
			}  //   			if ( m_paymethod.value='CMS' ) {   else
		}  // 		} else if(m_job.value=='ÃÊ.Áß°í»ý' || m_job.value=='´ëÇÐ(¿ø)»ý' || m_job.value=='Ãë¾÷ÁØºñÁß' ){
		else if(m_job.value != 'ÃÊ.Áß°í»ý' || m_job.value != '´ëÇÐ(¿ø)»ý' || m_job.value != 'Ãë¾÷ÁØºñÁß'){
			if ( m_paymethod.value == 'CMS' ) {			
			if ((m_flgamount[1].checked || m_flgamount[2].checked || m_flgamount[3].checked) == false) {
				alert('È¸ºñ ¹æ¹ýÀ» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
				m_flgamount[2].focus();
				return false;	
			} else if (payamount.value == '' &&  m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
				alert('È¸ºñ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.')
				payamount.focus();
				return false;
			} else if (payamount.value <= 5000 &&  m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
				alert('¿ÀÃµ¿øÀÌ»óÀ¸·Î Àû¾îÁÖ¼¼¿ä.')
				payamount.focus();
				return false;
			} else if (payamount.value > 100000 &&  m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
				alert('½Ê¸¸¿øÀÌÇÏ·Î Àû¾îÁÖ¼¼¿ä.')
				payamount.focus();
				return false;					
			} else if (CMSbank.value == '' && (m_flgamount[1].checked == true  || m_flgamount[2].checked == true  || m_flgamount[3].checked == true)) {
				alert('ÀºÇàÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				CMSbank.focus();
				return false;	
			} else if (CMSnumber.value == '' && ( m_flgamount[1].checked == true  || m_flgamount[2].checked == true  || m_flgamount[3].checked == true)) {
				alert('°èÁÂ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				CMSnumber.focus();
				return false;	
			} else if (CMSname.value == '' && (m_flgamount[1].checked == true  ||  m_flgamount[2].checked == true  || m_flgamount[3].checked == true)) {
				alert('¿¹±ÝÁÖ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				CMSname.focus();
				return false;	
			} else if (CMSjumin1.value == '' && (m_flgamount[1].checked == true  ||  m_flgamount[2].checked == true  || m_flgamount[3].checked == true)) {
				alert('ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				CMSjumin1.focus();
				return false;		
			} else if (CMSjumin2.value == '' && (m_flgamount[1].checked == true  ||  m_flgamount[2].checked == true  || m_flgamount[3].checked == true)) {
				alert('ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				CMSjumin2.focus();
				return false;
			}											
			}
			else {
			if ((m_flgamount[1].checked || m_flgamount[2].checked || m_flgamount[3].checked) == false) {
				alert('È¸ºñ ¹æ¹ýÀ» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
				m_flgamount[0].focus();
				return false;	
			} else if (payamount.value == '' &&  m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
				alert('È¸ºñ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.')
				payamount.focus();
				return false;
			} else if (payamount.value <= 5000 &&  m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
				alert('¿ÀÃµ¿øÀÌ»óÀ¸·Î Àû¾îÁÖ¼¼¿ä.')
				payamount.focus();
				return false;
			} else if (payamount.value > 100000 && m_flgamount[1].checked == false  && m_flgamount[2].checked == false && m_flgamount[3].checked == true) {
				alert('½Ê¸¸¿øÀÌÇÏ·Î Àû¾îÁÖ¼¼¿ä.')
				payamount.focus();
				return false;				
			} else if ((hpCMSnumber1.value == '' || hpCMSnumber2.value == '' || hpCMSnumber3.value == '') && ( m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
				alert('ÈÞ´ëÆù¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				hpCMSnumber1.focus();
				return false;	
			} else if (hpCMSname.value == '' && ( m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
				alert('ÈÞ´ëÆù ¸íÀÇÀÚ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				hpCMSname.focus();
				return false;	
			} else if (hpCMSjumin1.value == '' && ( m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
				alert('ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				hpCMSjumin1.focus();
				return false;		
			} else if (hpCMSjumin2.value == '' && ( m_flgamount[1].checked == true  || m_flgamount[2].checked == true || m_flgamount[3].checked == true )) {
				alert('ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				hpCMSjumin2.focus();
				return false;
			}
			}   //			if ( m_paymethod.value == 'CMS' ) {			
		} //  		else if(m_job.value!='ÃÊ.Áß°í»ý' || m_job.value!='´ëÇÐ(¿ø)»ý'|| m_job.value!='Ãë¾÷ÁØºñÁß'){
		else {
			//name.disabled = false;
			return true;
		}
	}  // with
}

function modiTransmit01() {
	with (document.joinFrm) {
		if (m_password.value == '') {
			alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_password.focus();
			return false;
		} else if (m_password_check.value == '') {
			alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_password_check.focus();
			return false;
		} else if (m_flgAbroad.checked == true && m_nation.value == '') {
			m_nation.focus();
			alert('°ÅÁÖÇÏ½Ã´Â ±¹°¡¸¦ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
			return false;	
		} else if (name.value == '') {
			alert('ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			name.focus();
			return false;
		} else if (m_email.value == '') {
			alert('ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_email.focus();
			return false;
		} else if ((m_year.value == '' || m_month.value == '' || m_date.value == '')) {
			alert('»ý³â¿ùÀÏÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_year.focus();
			return false;
		} else if (m_sex[0].checked == false && m_sex[1].checked == false) {
				alert('¼ºº°À» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.')
				m_sex[0].focus();
				return false;			
		} else if ((m_phone1.value == '' || m_phone2.value == '' || m_phone3.value == '') && m_flgAbroad.checked == false) {
			alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_phone1.focus();
			return false;
		} else if (m_flgadd[0].checked == false && m_flgadd[1].checked == false && m_flgAbroad.checked == false) {
				alert('ÁÖ¼ÒÁö¸¦ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.')
				m_flgadd[0].focus();
				return false;				
		} else if ((m_hzip1.value == '' || m_hzip2.value == '' || m_haddress1.value == '' || m_haddress2.value == '') && m_flgAbroad.checked == false) {
			alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			m_haddress2.focus();
			return false;
		} else if (m_job.value == '') {
			alert('Á÷¾÷À» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
			m_job.focus();
			return false;
		} else if (likepolity.value == '') {
			alert('±¦ÂúÀºÁ¤Ä¡ÀÎÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			likepolity.focus();
			return false;
		} else if (hatespeech.value == '') {
			alert('ÇÑ½ÉÇÑ¾ð·Ð»ç¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			hatespeech.focus();
			return false;	
		} else if (m_password.value != m_password_check.value) {
			alert('ÀÔ·ÂÇÏ½Å ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇØ¾ßÇÕ´Ï´Ù.');
			m_password.select();
			m_password.focus();
			return false;
		} else if ((isNumber(m_phone2,'ÀüÈ­¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else if ((isNumber(m_phone3,'ÀüÈ­¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else if ((isNumber(m_cellular2,'ÈÞ´ëÆù ¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else if ((isNumber(m_cellular3,'ÈÞ´ëÆù ¹øÈ£´Â')) && m_flgAbroad.checked == false) {
			return false;
		} else if (isEmail(document.joinFrm.m_email.value)) {
			m_email.select();
			return false;
		} else {
			//name.disabled = false;
			return true;
		}
	}
}

function lengthChk(obj,length,maxormin,msg) {
	var length = length;
	var maxormin = maxormin;
	var header;
	if (obj.value.length != 0) {
		if (maxormin == 'max') {
			header = 'ÃÖ´ë'
			if (getLength(obj.value) > length) {
				alert(msg + ' ¿µ¹®À¸·Î ' + header + ' ' + length + ' ÇÑ±Û·Î ' + header + ' ' + length/2 + 'ÀÚ·Î ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				obj.select();
				return true;
			}
		} else if (maxormin == 'min') {
			header = 'ÃÖ¼Ò'
			if (getLength(obj.value) < length) {
				alert(msg + ' ¿µ¹®À¸·Î ' + header + ' ' + length + ' ÇÑ±Û·Î ' + header + ' ' + length/2 + 'ÀÚ·Î ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
				obj.select();
				return true;
			}
		}
	}
	return false;
}

function isNumber(obj,msg) {
	if (isNaN(obj.value)) {
		alert(msg + ' ¼ýÀÚ·Î¸¸ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
		obj.select();
		return true;
	}
	
	return false;
}

function isEmail(str) {
	// regular expression Áö¿ø ¿©ºÎ Á¡°Ë
	var supported = 0;
	if (window.RegExp) {
		var tempStr = "a";
		var tempReg = new RegExp(tempStr);

		if (tempReg.test(tempStr)) supported = 1
	}
	
	if (!supported) {
		if (!((str.indexOf(".") > 2) && (str.indexOf("@") > 0))) {
		alert('Àß¸øµÈ ÀÌ¸ÞÀÏÀÔ´Ï´Ù.È®ÀÎÇØ ÁÖ½Ê½Ã¿À.');
		document.joinFrm.m_email.select();
		return true;
		}
	} else {
		var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");

		if (!(r2.test(str))) {
			alert('Àß¸øµÈ ÀÌ¸ÞÀÏÀÔ´Ï´Ù.È®ÀÎÇØ ÁÖ½Ê½Ã¿À.');
			document.joinFrm.m_email.select();
			return true;
		}
	}
	
}

function validateEmail(str) {
	// regular expression Áö¿ø ¿©ºÎ Á¡°Ë
	var supported = 0;
	if (window.RegExp) {
		var tempStr = "a";
		var tempReg = new RegExp(tempStr);

		if (tempReg.test(tempStr)) supported = 1
	}
	
	if (!supported) {
		if (!((str.indexOf(".") > 2) && (str.indexOf("@") > 0))) {
		document.forms[0].m_email.select();
		return true;
		}
	} else {
		var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");

		if (!(r2.test(str))) {
			document.forms[0].m_email.select();
			return true;
		}
	}
	
}

function getLength(str)
{
  return(str.length+(escape(str)+"%u").match(/%u/g).length-1);
}


function isID(obj) {
	var str = obj.value;
	if(str.length == 0)
		return false;

	str = str.toUpperCase();

	for(var i=1; i < str.length; i++) {
		if(!(('A' <= str.charAt(i) && str.charAt(i) <= 'Z') ||
			('0' <= str.charAt(i) && str.charAt(i) <= '9') ||
			(str.charAt(i) == '_')))
			return false;
	}
	return true;
}


function isSSN(front, back) {

	var birthday = front.value;
	var num = back.value;

	if(birthday.length != 6) {
		return false;
	}
	if(num.length != 7) {
		return false;
	}
	var hap = 0;
	for(var i=0; i < 6; i++) {
		var temp = birthday.charAt(i) * (i+2);
		hap += temp;
	}

	var n1 = num.charAt(0);
	var n2 = num.charAt(1);
	var n3 = num.charAt(2);
	var n4 = num.charAt(3);
	var n5 = num.charAt(4);
	var n6 = num.charAt(5);
	var n7 = num.charAt(6);

	hap += n1*8+n2*9+n3*2+n4*3+n5*4+n6*5;
	hap %= 11;
	hap = 11 - hap;
	hap %= 10;
	if(hap != n7) {
		return false;
	}
	return true;
}



function toggleComment(value) {
  with (document.joinFrm) {
    if ((payMethod.value == 'CMS')) {
      commentDiv.style.display = 'inline';
    }
    else {
      commentDiv.style.display = 'none';
    }
  }
} 

function toggleflgMent(value) {
  with (document.joinFrm) {
    if ((m_flgmethod.value == '¿ùÈ¸ºñ')) {
      flgMentDiv_01.style.display = 'inline';
      flgMentDiv_02.style.display = 'none';
    }
    else if((m_flgmethod.value == '¿¬È¸ºñ')) {
      flgMentDiv_02.style.display = 'inline';
      flgMentDiv_01.style.display = 'none';
    }
    else{
      flgMentDiv_01.style.display = 'none';
      flgMentDiv_02.style.display = 'none';
    }
  }
} 

function togglePayment(value) {
  with (document.joinFrm) {
    if ((m_job.value=='ÃÊ.Áß°í»ý' || m_job.value=='´ëÇÐ(¿ø)»ý'||m_job.value=='Ãë¾÷ÁØºñÁß' )) {
      paymentDiv.style.display = 'inline';
    }
    else {
      paymentDiv.style.display = 'none';
    }
  }
} 

function togglePaymethod(value) {
  with (document.joinFrm) {
    if (m_paymethod.value=='CMS') {
      paymethodhpDiv.style.display = 'none';      
      paymethodbankDiv.style.display = 'inline';
    }
    else {
      paymethodbankDiv.style.display = 'none';    	
      paymethodhpDiv.style.display = 'inline';
    }
  }
} 


function exitMember() {
	if (confirm('Å»ÅðÇÏ½Ã¸é È¸¿ø´ÔÀÇ ¸ðµç Á¤º¸°¡ »èÁ¦µË´Ï´Ù.\nÁ¤¸»·Î Å»ÅðÇÏ½Ã°Ú½À´Ï±î?')) {
		location.href = 'modules/mem_exit_process.asp';
	}
}


function zipSearch(zip1, zip2, address1, address2, frm) {
	var trg = '/member/zipSearch.asp';
	trg = trg + '?zip1='+zip1+'&zip2='+zip2+'&address1='+address1 +'&address2='+address2 + '&frm=' + frm;
	window.open(trg,'zipSearch','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=400,height=300');
}

function RecomIdSearch(m_recomid,frm) {
	var trg = '/member/RecomIdSearch.asp';
	trg = trg + '?m_recomid='+m_recomid + '&frm=' + frm;
	window.open(trg,'RecomIdSearch','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=417,height=300');
}

function setpost(m_recomid)
{
     document.joinFrm.m_recomid.value  = m_recomid;     
}

function support() {
	with (document.joinFrm) {
		if (name.value == '') {
			alert('ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			name.focus();
			return false;
		} else if (email.value == '') {
			alert('ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			email.focus();
			return false;		
		} else if ((tel.value == '')) {
			alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			tel.focus();
			return false;			
		} else if ((address.value == '') ) {
			alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			address.focus();
			return false;
		} else if (flgamount[0].checked == false && flgamount[1].checked == false ) {
				alert('ÈÄ¿ø±ÝÀ» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.')
				flgamount[0].focus();
				return false;	
		} else if (payamount.value == '' && flgamount[0].checked == false && flgamount[1].checked == true) {
				alert('¿ÀÃµ¿øÀÌ»óÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.')
				payamount.focus();
				return false;						
		} else if (CMSbank.value == '') {
			alert('ÀºÇà¸í ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
			CMSbank.focus();
			return false;
		} else if (CMSnumber.value == '') {
			alert('°èÁÂ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			CMSnumber.focus();
			return false;
		} else if (CMSname.value == '') {
			alert('¿¹±ÝÁÖ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.');
			CMSname.focus();
			return false;								
		} else if (CMSjumin.value == '') {
			alert('ÁÖ¹Îµî·Ï¹øÈ£ ¹× »ç¾÷ÀÚµî·ÏÀ» ÀÔ·ÂÇØÁÖ½Ê½Ã¿À.');
			CMSjumin.focus();
			return false;
		} else {
			//name.disabled = false;
			return true;
		}
	}
}

function checkhelp() {
	with (document.support)
	{
		if (identity.value == '') {
			identity.focus();
			alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä.")
			return false;
		}
		else if (tel1.value == '' || tel2.value == '' || tel3.value == '' ) {
			tel1.focus();
			alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.")
			return false;
		}
		else if (email.value == '' ) {
			email.focus();
			alert("ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.")
			return false;
		}
		else if (amount.value == '' ) {
			amount.focus();
			alert("±Ý¾×À» ÀÔ·ÂÇÏ¼¼¿ä.")
			return false;
		}
		else {
			return true;
		}
	}
}


function checkhelp_kukbo() {
	with (document.support)
	{
		if (name.value == '') {
			name.focus();
			alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä.")
			return false;
		}
		else if (tel1.value == '' || tel2.value == '' || tel3.value == '' ) {
			tel1.focus();
			alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.")
			return false;
		}
		else if (email.value == '' ) {
			email.focus();
			alert("ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.")
			return false;
		}
		else if (amount.value == '' ) {
			amount.focus();
			alert("±Ý¾×À» ÀÔ·ÂÇÏ¼¼¿ä.")
			return false;
		}
		else {
			return true;
		}
	}
}

// È¸¿ø°¡ÀÔ½Ã ÁÖ¹Îµî·Ï ¹øÈ£ Ã¼Å©
function check_identity()
{
	var jumin1 = document.identity.jumin1;
	var jumin2 = document.identity.jumin2;
	
	// ÀÚ¸®¼ö ¹× °ø¹é Ã¼Å©
	if ((jumin1.value.length != 6) || (jumin1.value.indexOf(" ")!=-1))
	{
		alert("ÁÖ¹Î¹øÈ£ ¾Õ 6 ÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin1.focus();
		return false;
	}
	else if ((jumin2.value.length != 7) || (jumin2.value.indexOf(" ")!=-1))
	{
		alert("ÁÖ¹Î¹øÈ£ µÚ 7 ÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin2.focus();
		return false;
	}
	
	// ¼ýÀÚ·Î ÀûÇôÀÖ´ÂÁö Ã¼Å©
	var int01
	var int02
	for(int01=0;int01<jumin1.value.length;int01++)
	if ((jumin1.value.charAt(int01)<'0') || (jumin1.value.charAt(int01)>'9'))
	{
		alert("ÁÖ¹Î¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin1.focus();
		return false;
	}
	for(int02=0;int02<jumin2.value.length;int02++)
	if ((jumin2.value.charAt(int02)<'0') || (jumin2.value.charAt(int02)>'9'))
	{
		alert("ÁÖ¹Î¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin2.focus();
		return false;
	}	
	
	// Àß¸øµÈ ÁÖ¹Î¹øÈ£µé Ã¼Å©
	var identitysex = jumin2.value.substring(0,1);
	var birth01 = jumin1.value.substring(0,2);
	var birth02 = jumin1.value.substring(2,4);
	var birth03 = jumin1.value.substring(4,6);		
	if (identitysex>4 || identitysex==0)
	{
		alert("Àß¸øµÈ ÁÖ¹Î¹øÈ£ ÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin2.focus();
		return false;
	}
	else if (birth02>12)
	{
		alert("Àß¸øµÈ ÁÖ¹Î¹øÈ£ ÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin1.focus();
		return false;
	}		
	else if (birth03>31)
	{
		alert("Àß¸øµÈ ÁÖ¹Î¹øÈ£ ÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin1.focus();
		return false;
	}
	else if (jumin1.value=="111111" && jumin2.value=="1111118")
	{
		alert("Àß¸øµÈ ÁÖ¹Î¹øÈ£ ÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin1.focus();
		return false;
	}		
	else if (jumin1.value=="111111" && jumin2.value=="1111123")
	{
		alert("Àß¸øµÈ ÁÖ¹Î¹øÈ£ ÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin1.focus();
		return false;
	}		
	else if (jumin1.value=="111112" && jumin2.value=="1214141")
	{
		alert("Àß¸øµÈ ÁÖ¹Î¹øÈ£ ÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin1.focus();
		return false;
	}		

	// ÁÖ¹Î¹øÈ£ Ã¼Å©
	var a1 = jumin1.value.substring(0,1);
	var a2 = jumin1.value.substring(1,2);
	var a3 = jumin1.value.substring(2,3);
	var a4 = jumin1.value.substring(3,4);
	var a5 = jumin1.value.substring(4,5);
	var a6 = jumin1.value.substring(5,6);
	var a_check = (a1*2)+(a2*3)+(a3*4)+(a4*5)+(a5*6)+(a6*7)

	var b1 = jumin2.value.substring(0,1);
	var b2 = jumin2.value.substring(1,2);
	var b3 = jumin2.value.substring(2,3);
	var b4 = jumin2.value.substring(3,4);
	var b5 = jumin2.value.substring(4,5);
	var b6 = jumin2.value.substring(5,6);
	var b7 = jumin2.value.substring(6,7);
	var identity_check = a_check+(b1*8)+(b2*9)+(b3*2)+(b4*3)+(b5*4)+(b6*5)
	
	identity_check = identity_check%11
	identity_check = 11-identity_check
	identity_check = identity_check%10
	if (identity_check != b7)
	{
		alert("Àß¸øµÈ ÁÖ¹Î¹øÈ£ ÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		jumin1.focus();
		return false;
	}

	return true;
}

