<!--

/* index */
function go_next(str1,str2){
	
	if (document.frm01.agree_ok.checked==false){
		alert("Xbox Live »ç¿ë¾à°ü, ±¸¸ÅÀÌ¿ë¾à°ü ¹× °³ÀÎ º¸È£Á¤Ã¥¿¡  µ¿ÀÇÇØ¾ß °¡ÀÔÀÌ °¡´ÉÇÕ´Ï´Ù.");
		document.frm01.agree_ok.focus();
		return;
	}

	target_file=str2+"_step"+str1+".asp";

	document.frm01.action=target_file;
	document.frm01.submit();

}



/* und_step01 */


function idchk_undChg(){	
	document.reg_pfrm.id_chk.value="N";
}

function idCheck_undEngine(){

	document.reg_pfrm.id_chk.value="N";

	idchk_txt = "<table cellpadding='0' cellspacing='1' bgcolor='#393939'>"
	idchk_txt += "<tr><td style='padding:10' bgcolor='#FFFFFF'><iframe src='/contents/1010/reg_step02_idChk.asp?mm_id="+document.reg_pfrm.mm_id.value+"&flag=und' width='10' height='10' frameborder='0' scrollbars='no'></td></tr>"
	idchk_txt += "</table>"

	idchk_layer.innerHTML=idchk_txt;


}

function und_sp01_submit(){


	if(checkDupID(document.reg_pfrm.mm_id)) return;

	if(isOutOfRange(document.reg_pfrm.mm_id, 6, 16, "È¸¿øID´Â 6~16ÀÚÀÇ ¿µ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.")) return;

	if(isIdCheck(document.reg_pfrm) == false){
		alert(ERR_MSG);
		return;
	}

	if (document.reg_pfrm.id_chk.value=="N"){
		alert("ÀÔ·ÂÇÏ½Å ¾ÆÀÌµðÀÇ Áßº¹È®ÀÎÀ» ÇØÁÖ¼¼¿ä.")
		document.reg_pfrm.mm_id.focus();
		return;
	}

	if(isCheckPassword(document.reg_pfrm)) return;

	if(isOutOfRange(document.reg_pfrm.mm_pwd, 6, 12, "»õ ºñ¹Ð¹øÈ£´Â ¿µ¹®ÀÚ·Î ½ÃÀÛÇÏ´Â 6~12ÀÚÀÇ ¿µ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.")) {
		document.reg_pfrm.mm_pwd.value = '';
		document.reg_pfrm.mm_pwd_confirm.value = '';
		document.reg_pfrm.mm_pwd.focus();
		return;
	}


	if(isCheckPassword(document.reg_pfrm)) return;

	var pwd = document.reg_pfrm.mm_pwd.value;
	var m_id = document.reg_pfrm.mm_id.value;	
	ERR_MSG = " ";

	if(pwd == m_id) {
		alert("¾ÆÀÌµð¿Í µ¿ÀÏÇÑ ´Ü¾î¸¦ ºñ¹Ð¹øÈ£·Î »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.\nºñ¹Ð¹øÈ£¸¦ ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		document.reg_pfrm.mm_pwd.value = '';
		document.reg_pfrm.mm_pwd_confirm.value = '';
		document.reg_pfrm.mm_pwd.focus();
		return;
	}

	if(isPasswordCheck(document.reg_pfrm) == false){
		alert(ERR_MSG);
		return;
	}

	if (document.reg_pfrm.mm_name.value==""){
		alert("ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		document.reg_pfrm.mm_name.focus();
		return;
	}
	if (document.reg_pfrm.mp_name.value==""){
		alert("ºÎ¸ð´Ô ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		document.reg_pfrm.mp_name.focus();
		return;
	}
	if (document.reg_pfrm.mp_jumin01.value==""){
		alert("ºÎ¸ð´Ô ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		document.reg_pfrm.mp_jumin01.focus();
		return;
	}
	if (document.reg_pfrm.mp_jumin02.value==""){
		alert("ºÎ¸ð´Ô ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		document.reg_pfrm.mp_jumin02.focus();
		return;
	}


	document.reg_pfrm.action="und_step02.asp";
	document.reg_pfrm.submit();
}

function und_sp01_enP(){
	if (event.keyCode == 13) und_sp01_submit();
}


function und_IsChk(formname,cnt01,cnt02) {

	if(document.reg_pfrm(formname).value.length < cnt01 || document.reg_pfrm(formname).value.length > cnt02) {
		return false;
	}
	for(var i = 0; i <document.reg_pfrm(formname).value.length; i++) {
		var chr = document.reg_pfrm(formname).value.substr(i,1);
		if((chr <'0' || chr >'9') && (chr <'a' || chr >'z')) {
			return false;
		}
	}
	return true;
}


/* reg_und02 */

function reg_und02_submit(){

	if(isCheckPassword(document.reg_pfrm)) return;

	if(isOutOfRange(document.reg_pfrm.mm_pwd, 6, 12, "»õ ºñ¹Ð¹øÈ£´Â ¿µ¹®ÀÚ·Î ½ÃÀÛÇÏ´Â 6~12ÀÚÀÇ ¿µ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.")) {
		document.reg_pfrm.mm_pwd.value = '';
		document.reg_pfrm.mm_pwd_confirm.value = '';
		document.reg_pfrm.mm_pwd.focus();
		return;
	}


	if(isCheckPassword(document.reg_pfrm)) return;

	ERR_MSG = " ";


	if(isPasswordCheck(document.reg_pfrm) == false){
		alert(ERR_MSG);
		return;
	}


	if (document.reg_pfrm.mm_email01.value==""){
		alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏÁö ¾Ê¾Ò½À´Ï´Ù.")
		document.reg_pfrm.mm_email01.focus();
		return;
	}

	if (document.reg_pfrm.mm_email02.value==""){
		alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏÁö ¾Ê¾Ò½À´Ï´Ù.")
		document.reg_pfrm.mm_email02.focus();
		return;
	}

	if (document.reg_pfrm.mm_email02.value=="999"){
		
		if (document.reg_pfrm.mm_email03.value=="")
		{
			alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏÁö ¾Ê¾Ò½À´Ï´Ù.")
			document.reg_pfrm.mm_email03.focus();
			return;
		}
	}

	//DaumNotEmail(document.reg_pfrm.mm_email03);

	if (document.reg_pfrm.mm_post.value==""){
		alert("¿ìÆí¹øÈ£ °Ë»öÀ» ÀÌ¿ëÇØ ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		document.reg_pfrm.mm_hp_03.focus();
		return;
	}
	if (document.reg_pfrm.mm_addr01.value==""){
		alert("¿ìÆí¹øÈ£ °Ë»öÀ» ÀÌ¿ëÇØ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		document.reg_pfrm.mm_addr01.focus();
		return;
	}
	if (document.reg_pfrm.mm_addr02.value==""){
		alert("»ó¼¼ÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		document.reg_pfrm.mm_addr02.focus();
		return;
	}


	document.reg_pfrm.action="reg_und03.asp";
	document.reg_pfrm.submit();
}

/* und_step03 */

function und_sp03_submit(){

	if (document.reg_pfrm.mp_email01.value==""){
		alert("µ¿ÀÇ¸ÞÀÏÀ» Àü¼ÛÇÒ ºÎ¸ð´Ô ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		document.reg_pfrm.mp_email01.focus();
		return;
	}

	if (document.reg_pfrm.mp_email02.value==""){
		alert("µ¿ÀÇ¸ÞÀÏÀ» Àü¼ÛÇÒ ºÎ¸ð´Ô ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		document.reg_pfrm.mp_email02.focus();
		return;
	}

	if (document.reg_pfrm.mp_email02.value=="999"){
		
		if (document.reg_pfrm.mp_email03.value=="")
		{
		alert("µ¿ÀÇ¸ÞÀÏÀ» Àü¼ÛÇÒ ºÎ¸ð´Ô ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
			document.reg_pfrm.mp_email03.focus();
			return;
		}
	}

	//DaumNotEmail(document.reg_pfrm.mp_email03);


	document.reg_pfrm.action="und_step04.asp";
	document.reg_pfrm.submit();
}


function und_sp03_enP(){
	if (event.keyCode == 13) und_sp03_submit();
}

function und_sp03_fax(){
	off_file.location.href="/contents/1010/und_step03_down.asp?downOK=Y";
}


/* und_step06 */

function und_sp06_submit(){

	document.reg_pfrm.action="reg_und01.asp";
	document.reg_pfrm.submit();
}


/* reg_und01 */

function name_undChk(){
	if (document.reg_pfrm.name.value==""){
		alert("ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		document.reg_pfrm.name.focus();
		return;
	}
	if (document.reg_pfrm.jumin01.value==""){
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		document.reg_pfrm.jumin01.focus();
		return;
	}
	if (document.reg_pfrm.jumin02.value==""){
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		document.reg_pfrm.jumin02.focus();
		return;
	}
	
	ifrm_chkname.location.href="reg_und01_chk.asp?name="+document.reg_pfrm.name.value+"&jumin01="+document.reg_pfrm.jumin01.value+"&jumin02="+document.reg_pfrm.jumin02.value;
}

function regund_sp01_enP(){
	if (event.keyCode == 13) name_undChk();
}


//-->
