function checkid() { if(!IsID(document.user_inpt.user_id.name)) { alert("¾ÆÀ̵ð´Â 6~12 ÀÚÀÇ ¿µ¹®(¼Ò) ¼ýÀÚ Á¶ÇÕµÈ ¹®ÀÚ¿ÀÌ¿©¾ß ÇÕ´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!!");//ALRT_INPUT_AGAIN2 : ´Â 6~12 ÀÚÀÇ ¿µ¹®(¼Ò) ¼ýÀÚ Á¶ÇÕµÈ ¹®ÀÚ¿ÀÌ¿©¾ß ÇÕ´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!! document.user_inpt.user_id.focus(); return; } else { window.open('./skin/process/idcheck.php?idvalidate='+document.user_inpt.user_id.value,'idcheck'); } } function checkrecommend() { window.open('./skin/process/recommendcheck.php?idvalidate='+document.user_inpt.member_recommend.value + '&id='+document.user_inpt.user_id.value,'recommendcheck','top=3000,left=3000,width=1,height=1,resizable=yes,menubar=no') } function passwdchange() { document.user_inpt.member_pwd2.value = ""; } function Find_Zipcode() { window.open ("./service1_zipcode.html","zipcode",'left=200,top=100,width=415,height=250,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no'); } // ȸ¿ø°¡ÀԽà ÇÊ¿äÇÑ Ã¼Å© function checkInput(theForm) { var NUM = "0123456789"; var SPEC = "!#$%&*+-./=?@^_`{|}(')" + NUM; ////////////¾ÆÀ̵ð///////////// if(!theForm.user_id.value) { alert("¾ÆÀ̵𸦠ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT : ¸¦ ÀÔ·ÂÇϼ¼¿ä theForm.user_id.focus(); return; } ///////////Áߺ¹È®ÀÎ///////////// if(parseInt(theForm.idchk.value) != 1){ alert("¾ÆÀ̵ðÁߺ¹È®ÀÎÀ» Çϼ¼¿ä.");//ALRT_CONFIRM_REPETITION : Áߺ¹È®ÀÎÀ» Çϼ¼¿ä. theForm.user_id.focus(); return; } ///////////¾ÆÀ̵ð///////////// if(!IsID(theForm.user_id.name)) { alert("¾ÆÀ̵ð´Â 6~12 ÀÚÀÇ ¿µ¹®(¼Ò) ¼ýÀÚ Á¶ÇÕµÈ ¹®ÀÚ¿ÀÌ¿©¾ß ÇÕ´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!!");//ALRT_INPUT_AGAIN2 : ´Â 6~12 ÀÚÀÇ ¿µ¹®(¼Ò) ¼ýÀÚ Á¶ÇÕµÈ ¹®ÀÚ¿ÀÌ¿©¾ß ÇÕ´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!! theForm.user_id.focus(); return; } ///////////ºñ¹Ð¹øÈ£///////////// if(!theForm.member_pwd1.value) { alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT : ¸¦ ÀÔ·ÂÇϼ¼¿ä theForm.member_pwd1.focus(); return; } ///////////ºñ¹Ð¹øÈ£///////////// if(!IsPW(theForm.member_pwd1.name)) { alert("ºñ¹Ð¹øÈ£´Â 6~16 ÀÚÀÇ ¿µ¹®ÀÚ,¼ýÀÚ Á¶ÇÕµÈ ¹®ÀÚ¿ÀÌ¿©¾ß ÇÕ´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!!");//ALRT_INPUT_AGAIN3 : ´Â 6~16 ÀÚÀÇ ¿µ¹®ÀÚ,¼ýÀÚ Á¶ÇÕµÈ ¹®ÀÚ¿ÀÌ¿©¾ß ÇÕ´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!! theForm.member_pwd1.focus(); theForm.member_pwd1.select(); return; } ///////////ºñ¹Ð¹øÈ£È®ÀÎ///////////// if(theForm.member_pwd1.value != theForm.member_pwd2.value) { alert("ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.");//ALRT_NOT_CONFORM : °¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù. theForm.member_pwd2.focus(); theForm.member_pwd2.select(); return; } ///////////ȸ¿øÀ̸§///////////// if(!theForm.member_name.value) { alert("À̸§À» ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT2 : À» ÀÔ·ÂÇϼ¼¿ä theForm.member_name.focus(); return; } ///////////ȸ¿øÀ̸§///////////// if(CheckType(theForm.member_name.value,SPEC)) { alert("À̸§ÀÌ Á¤È®ÇÏÁö ¾Ê½À´Ï´Ù.");//ALRT_INEXACT : ÀÌ Á¤È®ÇÏÁö ¾Ê½À´Ï´Ù. theForm.member_name.focus(); return; } ///////////Áֹεî·Ï¹øÈ£///////////// if(!theForm.member_jumin1.value || !theForm.member_jumin2.value) { alert("Áֹεî·Ï¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT : ¸¦ ÀÔ·ÂÇϼ¼¿ä theForm.member_jumin1.focus(); return; } ///////////Áֹεî·Ï¹øÈ£///////////// if(!formCheck(theForm)) { return; } ///////////ȸ¿øÀüÀÚ¿ìÆí///////////// if(!theForm.member_email.value) { alert("À̸ÞÀÏÀ» ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT2 : À» ÀÔ·ÂÇϼ¼¿ä theForm.member_email.focus(); return; } ///////////ȸ¿øÀüÀÚ¿ìÆí///////////// if(!check_email_validation(theForm)) { return; } if (!func_check1(theForm)) {return;} if (!func_check2(theForm)) {return;} if (!func_check3(theForm)) {return;} if (!func_check4(theForm)) {return;} if (!func_check5(theForm)) {return;} if (!func_check6(theForm)) {return;} if (!func_check7(theForm)) {return;} if (!func_check8(theForm)) {return;} if (!func_check9(theForm)) {return;} if (!func_check11(theForm)) {return;} if (!func_check10(theForm)) {return;} if (!func_check12(theForm)) {return;} if (!func_check13(theForm)) {return;} if (!func_check14(theForm)) {return;} theForm.submit(); } // ȸ¿øÁ¤º¸ ¼öÁ¤½Ã üũ function checkInput2(theForm) { var NUM = "0123456789"; var SPEC = "!#$%&*+-./=?@^_`{|}(')" + NUM; ///////////ºñ¹Ð¹øÈ£///////////// if(!theForm.member_pwd1.value) { alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT : ¸¦ ÀÔ·ÂÇϼ¼¿ä theForm.member_pwd1.focus(); return; } ///////////ºñ¹Ð¹øÈ£///////////// if(!IsPW(theForm.member_pwd1.name)) { alert("ºñ¹Ð¹øÈ£´Â 6~16 ÀÚÀÇ ¿µ¹®ÀÚ,¼ýÀÚ Á¶ÇÕµÈ ¹®ÀÚ¿ÀÌ¿©¾ß ÇÕ´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!!");//ALRT_INPUT_AGAIN3 : ´Â 6~16 ÀÚÀÇ ¿µ¹®ÀÚ,¼ýÀÚ Á¶ÇÕµÈ ¹®ÀÚ¿ÀÌ¿©¾ß ÇÕ´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!! theForm.member_pwd1.focus(); theForm.member_pwd1.select(); return; } ///////////ºñ¹Ð¹øÈ£È®ÀÎ///////////// if(theForm.member_pwd1.value != theForm.member_pwd2.value) { alert("ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.");//ALRT_NOT_CONFORM : °¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù. theForm.member_pwd2.focus(); theForm.member_pwd2.select(); return; } ///////////ȸ¿øÀüÀÚ¿ìÆí///////////// if(!theForm.member_email.value) { alert("À̸ÞÀÏÀ» ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT2 : À» ÀÔ·ÂÇϼ¼¿ä theForm.member_email.focus(); return; } ///////////ȸ¿øÀüÀÚ¿ìÆí///////////// if(!check_email_validation(theForm)) { return; } if (!func_check1(theForm)) {return;} if (!func_check2(theForm)) {return;} if (!func_check3(theForm)) {return;} if (!func_check4(theForm)) {return;} if (!func_check5(theForm)) {return;} if (!func_check6(theForm)) {return;} if (!func_check7(theForm)) {return;} if (!func_check8(theForm)) {return;} if (!func_check9(theForm)) {return;} if (!func_check11(theForm)) {return;} if (!func_check10(theForm)) {return;} if (!func_check12(theForm)) {return;} if (!func_check13(theForm)) {return;} if (!func_check14(theForm)) {return;} theForm.submit(); } // ÁÖ¼Òüũ function func_check1(theForm){ if (parseInt(form_address) == 1) { if(!theForm.user_addr.value) { alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT : ¸¦ ÀÔ·ÂÇϼ¼¿ä theForm.user_addr.focus(); return false; } } return true; } // ¿ìÆí¹øÈ£ üũ function func_check2(theForm) { if (parseInt(form_zipcode) > 0) { if(theForm.user_zip1.value || theForm.user_zip2.value) { for( var i = 1; i<= 2; i++) { var strForm = eval("theForm.user_zip" + i + ".name"); if(!IsNumber(strForm)) { alert("¿ìÆí¹øÈ£ ´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT_NUMBER : ´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä theForm.user_zip1.focus(); return false; } } } } if (parseInt(form_zipcode)==1) { if(!theForm.user_zip1.value || !theForm.user_zip2.value) { alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT : ¸¦ ÀÔ·ÂÇϼ¼¿ä theForm.user_zip1.focus(); return false; } } return true; } // ÀüȹøÈ£ üũ function func_check3(theForm) { if (parseInt(form_phone)>0) { if(theForm.member_tel1.value|| theForm.member_tel2.value|| theForm.member_tel3.value) { for( var i = 1; i <= 3; i++) { var strForm = eval("theForm.member_tel" + i + ".name"); if(!IsNumber(strForm)) { alert("ÀüȹøÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT_NUMBER : ´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä theForm.member_tel1.focus(); return false; } } } } if (parseInt(form_phone)==1) { if(!theForm.member_tel1.value|| !theForm.member_tel2.value|| !theForm.member_tel3.value) { alert("ÀüȹøÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT : ¸¦ ÀÔ·ÂÇϼ¼¿ä theForm.member_tel1.focus(); return false; } } return true; } // ÇÚµåÆù¹øÈ£ üũ function func_check4(theForm) { if (parseInt(form_mobile)>0) { if(theForm.member_cell1.value|| theForm.member_cell2.value || theForm.member_cell3.value) { for( var i = 1; i <= 3; i++) { var strForm = eval("theForm.member_cell" + i + ".name"); if(!IsNumber(strForm)) { alert("ÇÚµåÆù¹øÈ£´Â ¼ýÀÚ¸¸ ÀԷ°¡´ÉÇÕ´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!!");//ALRT_INPUT_NUM_AGAIN2 : ´Â ¼ýÀÚ¸¸ ÀԷ°¡´ÉÇÕ´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!! theForm.member_cell1.focus(); return false; } } } } if (parseInt(form_mobile)==1) { if(!theForm.member_cell1.value|| !theForm.member_cell2.value || !theForm.member_cell3.value) { alert("ÇÚµåÆù¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT : ¸¦ ÀÔ·ÂÇϼ¼¿ä theForm.member_cell1.focus(); return false; } } return true; } // »ýÀÏ Ã¼Å© function func_check5(theForm) { if (parseInt(form_birthday)>0) { if(theForm.member_birth1.value || theForm.member_birth2.value || theForm.member_birth3.value) { for( var i = 1; i <= 3; i++) { var strForm = eval("theForm.member_birth" + i + ".name"); if(!IsNumber(strForm)) { alert("»ýÀÏÀº ¼ýÀÚ¸¸ ÀԷ°¡´ÉÇÕ´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!!");//ALRT_INPUT_NUM_AGAIN3 : Àº ¼ýÀÚ¸¸ ÀԷ°¡´ÉÇÕ´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!! theForm.member_birth1.focus(); return false; } } } } if (parseInt(form_birthday)==1) { if(!theForm.member_birth1.value || !theForm.member_birth2.value || !theForm.member_birth3.value) { alert("»ýÀÏÀ» ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT2 : À» ÀÔ·ÂÇϼ¼¿ä theForm.member_birth1.focus(); return false; } } return true; } // »ýÀÏÇüÅ function func_check6(theForm) { return true; } // Á÷¾÷üũ function func_check7(theForm) { if (parseInt(form_job)==1) { if( theForm.member_job.selectedIndex == 0) { alert("Á÷¾÷À» ¼±ÅÃÇØ ÁÖ¼¼¿ä");//ALRT_SELECT : À» ¼±ÅÃÇØ ÁÖ¼¼¿ä theForm.member_job.focus(); return false; } } return true; } // °áÈ¥À¯¹« function func_check8(theForm) { return true; } // ÀÚ±â¼Ò°³Ã¼Å© function func_check9(theForm) { if (parseInt(form_self)==1) { if(!theForm.member_self.value) { alert("ÀÚ±â¼Ò°³¸¦ ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT : ¸¦ ÀÔ·ÂÇϼ¼¿ä theForm.member_self.focus(); return false; } } return true; } // ÃßõÀÎ ¾ÆÀ̵ð üũ function func_check10(theForm) { if (parseInt(form_recommand)>0 && theForm.member_recomment) { if(!theForm.member_recommend.value) { alert("Ãßõ¾ÆÀ̵𸦠ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT : ¸¦ ÀÔ·ÂÇϼ¼¿ä theForm.member_recommend.focus(); return false; } } return true; } //¸ÞÀϸµ¸®½ºÆ® function func_check11(theForm) { return true; } // »ç¿ëÀÚÁ¤ÀÇ1 function func_check12(theForm) { var iname; if (parseInt(form_custom_item1)==1) { if (document.getElementById("custom_item_name1")) { iname = document.getElementById("custom_item_name1").innerText; } else { iname = "ºó °÷"; } if(!theForm.member_use1.value) { alert(iname+"À» ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT2 : À» ÀÔ·ÂÇϼ¼¿ä theForm.member_use1.focus(); return false; } } return true; } // »ç¿ëÀÚÁ¤ÀÇ2 function func_check13(theForm) { var iname2; if (parseInt(form_custom_item2)==1) { if (document.getElementById("custom_item_name2")) { iname2 = document.getElementById("custom_item_name2").innerText; } else { iname2 = "ºó °÷"; } if(!theForm.member_use2.value) { alert(iname2+"À» ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT2 : À» ÀÔ·ÂÇϼ¼¿ä theForm.member_use2.focus(); return false; } } return true; } // »ç¿ëÀÚÁ¤ÀÇ3 function func_check14(theForm) { var iname3; if (parseInt(form_custom_item3)==1) { if (document.getElementById("custom_item_name3")) { iname3 = document.getElementById("custom_item_name3").innerText; } else { iname3 = "ºó °÷"; } if(!theForm.member_use3.value) { alert(iname3+"À» ÀÔ·ÂÇϼ¼¿ä");//ALRT_INPUT2 : À» ÀÔ·ÂÇϼ¼¿ä theForm.member_use3.focus(); return false; } } return true; } // ȸ¿øID À¯È¿¼º °Ë»ç function IsID(formname) { var form = eval("document.user_inpt." + formname); if(form.value.length < 6 || form.value.length > 12) { return false; } for(var i = 0; i