/* °Ë»ö Àü ¿µ¹® µµ¸ÞÀÎ ¼±Åà */ function Domain_showEnglishDomain(type){ if(type == 'main') { var it = document.getElementById("domainForm") || document.getElementsByName("domainForm")[0]; } else { var it = document.getElementById("form") || document.getElementsByName("form")[0]; } if(it.domainExtsEnglish) { if(it.domainExtsEnglish.length == undefined) { it.domainExtsEnglish.disabled=false; } else { for(k=0;k63 ) return false;//ÃÖ¼Ò 2ÀÚ¿¡¼­ ÃÖ´ë 64ÀÚ±îÁö °¡´ÉÇÕ´Ï´Ù else if( domainName.indexOf("---")>=0 ) return false;//"---" ÇÏÀÌÇÂÀº 3°³ÀÌ»ó ¿¬¼ÓÀÏ ¼ö ¾ø´Ù. else if( filter.test(domainName)==false ) return false;//¿µ¹®ÀÚ a~z, ¼ýÀÚ 0~9 ¶Ç´Â ÇÏÀÌÇÂ(-)ÀÇ Á¶ÇÕÀ¸·Î¸¸ Ç¥ÇöµÇ¸ç return true; }else if( domainType=="Korean" ){ for (var k=0;k35 ) return false;//ÃÖ¼Ò 1ÀÚ¿¡¼­ ÃÖ´ë 35ÀÚ±îÁö °¡´ÉÇÕ´Ï´Ù else if( charCode == 45) {} // - Çã¿ë else if( charCode>=48 && charCode<=57 ){}// ¼ýÀÚ 0~9 else if( charCode>=65 && charCode<=90 ){}// ¼ýÀÚ A~Z else if( charCode>=97 && charCode<=122 ){}// ¼ýÀÚ a~z else if( charCode>12592 && charCode<55199 ){// Çѱۿµ¿ª °¡~? ÈÑ if( charCode>=44032 && charCode<=55199 ){}// Çѱۿµ¿ª else if( charCode>12592 && charCode<44032 ) return false;// ±ÛÀÚ°¡ ¾Æ´Ñ ÇѱÛ(¤¡, ¤¤, ¤Á, ¤¿) ¶Ç´Â ÇѱÛÀÌ ¾Æ´Ñ ¾ð¾î(ÀϺÎÇѹ®Æ÷ÇÔ) } else return false; } return true; } } /* µµ¸ÞÀÎ °Ë»ö */ function Domain_search(){ var it=document.form; var domainType=null; if(!it.domainType) { alert('±¸ÀÔÇÒ ¼ö ÀÖ´Â µµ¸ÞÀÎ »óÇ°ÀÌ ¾ø½À´Ï´Ù.'); return false; } if(it.domainType.length == undefined) { domainType = it.domainType.value; } else { for(var i=0; i0 ){ ArrayDomainName=it.search_domain.value.split("."); it.search_domain.value=ArrayDomainName[0]; } var domainName=it.search_domain.value; var productCode=null; var obj=null; for(k=0;k0 ){ ArrayDomainName=it.search_domain.value.split("."); it.search_domain.value=ArrayDomainName[0]; } var domainName=it.search_domain.value; var productCode=null; var obj=null; for(k=0;k 40) { alert("¿µ¹®À̸§À» 2~40ÀÚ À̳»·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); form.billingEngName.focus(); return false; } /* 2010-01-15 ktchoi ¹ýÀÎ »ç¾÷ÀÚ·Î ÀÎÇØ Ã¼Å© ÇØÁö // ÁֹιøÈ£ üũ process if(ssn.init(form.u_ssn1.value.toString() + form.u_ssn2.value.toString()) == false) { form.u_ssn1.focus(); return false; } */ // °£´ÜÇÑ Ã¼Å©¸¸ Ãß°¡. 2010-01-15 ktchoi if(document.getElementById("u_ssn1")) { if( form.u_ssn1.value == ''){ alert("Áֹεî·Ï¹øÈ£¸¦ ¾ÕÀÚ¸®¸¦ Àû¾îÁֽʽÿÀ."); form.u_ssn1.focus(); return false; }else{ if( form.u_ssn1.value.match(/[^0-9]/) ){ alert("Áֹεî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ¼ýÀÚ·Î ÀÔ·ÂÇϽʽÿÀ."); return false; } if(form.u_ssn1.value.length!=6){ alert("Áֹεî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ¼ýÀÚ 6ÀÚ¸®·Î ÀÔ·ÂÇϽʽÿÀ."); return false; } } } if(document.getElementById("u_ssn2")) { if( form.u_ssn2.value == ''){ alert("Áֹεî·Ï¹øÈ£¸¦ µÞÀÚ¸®¸¦ Àû¾îÁֽʽÿÀ."); form.u_ssn2.focus(); return false; }else{ if( form.u_ssn2.value.match(/[^0-9]/) ){ alert("Áֹεî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ¼ýÀÚ·Î ÀÔ·ÂÇϽʽÿÀ."); return false; } if(form.u_ssn2.value.length!=7){ alert("Áֹεî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ¼ýÀÚ 7ÀÚ¸®·Î ÀÔ·ÂÇϽʽÿÀ."); return false; } } } if(!form.billingZipcode.value) { alert('¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); form.billingZipcode.focus(); return false; } if(form.billingKorAddr1.value == '') { alert('ÇѱÛÁÖ¼Ò¸¦ ÀÔ·ÂÇϼ¼¿ä.'); form.billingKorAddr1.focus(); return false; } if(form.billingEngAddr1.value == '' || engNum.test(form.billingEngAddr1.value) == false) { alert('¿µ¹®ÁÖ¼Ò¸¦ È®ÀÎÇØ ÁÖ¼¼¿ä.'); form.billingEngAddr1.focus(); return false; } if(!form.billignEmail.value || mailexp.test(form.billignEmail.value) == false) { alert('À̸ÞÀÏÀ» ÀÔ·ÂÇϼ¼¿ä.'); form.billignEmail.focus(); return false; } if(!form.billingPhoneNo1.value || form.billingPhoneNo1.value.length > 3) { alert('ÀüÈ­¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); form.billingPhoneNo1.focus(); return false; } if(checkInteger(form.billingPhoneNo1.value) == false) { alert('ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä.'); form.billingPhoneNo1.select(); return false; } if(!form.billingPhoneNo2.value || form.billingPhoneNo2.value.length > 4) { alert('ÀüÈ­¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); form.billingPhoneNo2.focus(); return false; } if(checkInteger(form.billingPhoneNo2.value) == false) { alert('ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä.'); form.billingPhoneNo2.select(); return false; } if(!form.billingPhoneNo3.value || form.billingPhoneNo3.value.length > 4) { alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); form.billingPhoneNo3.focus(); return false; } if(checkInteger(form.billingPhoneNo3.value) == false) { alert('ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä.'); form.billingPhoneNo3.select(); return false; } if(!form.billingMobileNo1.value || form.billingMobileNo1.value.length > 3) { alert('ÇÚµåÆù¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); form.billingMobileNo1.focus(); return false; } if(checkInteger(form.billingMobileNo1.value) == false) { alert('ÇÚµåÆù¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä.'); form.billingMobileNo1.select(); return false; } if(!form.billingMobileNo2.value || form.billingMobileNo2.value.length > 4) { alert('ÇÚµåÆù¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); form.billingMobileNo2.focus(); return false; } if(checkInteger(form.billingMobileNo2.value) == false) { alert('ÇÚµåÆù¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä.'); form.billingMobileNo2.select(); return false; } if(!form.billingMobileNo3.value || form.billingMobileNo3.value.length > 4) { alert('ÇÚµåÆù¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); form.billingMobileNo3.focus(); return false; } if(checkInteger(form.billingMobileNo3.value) == false) { alert('ÇÚµåÆù¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä.'); form.billingMobileNo3.select(); return false; } if(form.billingFaxNo1.value != "" && checkInteger(form.billingFaxNo1.value) == false) { alert('Æѽº¹øÈ£´Â ¼ýÀÚ·Î ÀÔ·ÂÇϼ¼¿ä.'); form.billingFaxNo1.select(); return false; } if(form.billingFaxNo2.value != "" && checkInteger(form.billingFaxNo2.value) == false) { alert('Æѽº¹øÈ£´Â ¼ýÀÚ·Î ÀÔ·ÂÇϼ¼¿ä.'); form.billingFaxNo2.select(); return false; } if(form.billingFaxNo3.value != "" && checkInteger(form.billingFaxNo3.value) == false) { alert('Æѽº¹øÈ£´Â ¼ýÀÚ·Î ÀÔ·ÂÇϼ¼¿ä.'); form.billingFaxNo3.select(); return false; } if(!form.adminKorName.value) { alert('°ü¸®ÀÚ À̸§À» ÀÔ·ÂÇϼ¼¿ä.'); form.adminKorName.focus(); return false; } if(!form.adminEmailId.value || mailexpId.test(form.adminEmailId.value) == false || mailexpAddr.test(form.adminEmailAddr.value) == false) { alert('°ü¸®ÀÚ À̸ÞÀÏÀ» ÀÔ·ÂÇϼ¼¿ä.'); form.adminEmailId.focus(); return false; } if(form.adminEmailAuthFlag.value == 'F'){ alert('°ü¸®ÀÚ À̸ÞÀÏÀ» ÀÎÁõÇØÁÖ¿ä.'); form.adminEmailId.focus(); return false; } if(!form.adminPhoneNo1.value || form.adminPhoneNo1.value.length > 3) { alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); form.adminPhoneNo1.focus(); return false; } if(checkInteger(form.adminPhoneNo1.value) == false) { alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä.'); form.adminPhoneNo1.select(); return false; } if(!form.adminPhoneNo2.value || form.adminPhoneNo2.value.length > 4) { alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); form.adminPhoneNo2.focus(); return false; } if(checkInteger(form.adminPhoneNo2.value) == false) { alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä.'); form.adminPhoneNo2.select(); return false; } if(!form.adminPhoneNo3.value || form.adminPhoneNo3.value.length > 4) { alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); form.adminPhoneNo3.focus(); return false; } if(checkInteger(form.adminPhoneNo3.value) == false) { alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä.'); form.adminPhoneNo3.select(); return false; } if(!form.adminMobileNo1.value || form.adminMobileNo1.value.length > 3) { alert('°ü¸®ÀÚ ÇÚµåÆù¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); form.adminMobileNo1.focus(); return false; } if(checkInteger(form.adminMobileNo1.value) == false) { alert('°ü¸®ÀÚ ÇÚµåÆù¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä.'); form.adminMobileNo1.select(); return false; } if(!form.adminMobileNo2.value || form.adminMobileNo2.value.length > 4) { alert('°ü¸®ÀÚ ÇÚµåÆù¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); form.adminMobileNo2.focus(); return false; } if(checkInteger(form.adminMobileNo2.value) == false) { alert('°ü¸®ÀÚ ÇÚµåÆù¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä.'); form.adminMobileNo2.select(); return false; } if(!form.adminMobileNo3.value || form.adminMobileNo3.value.length > 4) { alert('°ü¸®ÀÚ ÇÚµåÆù¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.'); form.adminMobileNo3.focus(); return false; } if(checkInteger(form.adminMobileNo3.value) == false) { alert('°ü¸®ÀÚ ÇÚµåÆù¹øÈ£´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇϼ¼¿ä.'); form.adminMobileNo3.select(); return false; } if(form.ctfyCode[0].checked == true) { if(!form.ownerKorName.value) { alert('¼ÒÀ¯ÀÚ À̸§À» ÀÔ·ÂÇϼ¼¿ä.'); form.ownerKorName.focus(); return false; } if(!form.ownerEngName.value || engNum.test(form.ownerEngName.value) == false) { alert('¼ÒÀ¯ÀÚ ¿µ¹®À̸§À» È®ÀÎÇØ ÁÖ¼¼¿ä.'); form.ownerEngName.focus(); return false; } if(form.ownerEngName.value.length < 2 || form.ownerEngName.value.length > 40) { alert("¼ÒÀ¯ÀÚ ¿µ¹®À̸§À» 2~40ÀÚ À̳»·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); form.ownerEngName.focus(); return false; } // ÁֹιøÈ£ üũ process 2012-08-20 µµ¸ÞÀÎ °³ÀÎÁ¤º¸ Á¤Ã¥°ü·Ã ÁֹιøÈ£ »èÁ¦ // if(ssn.init(form.ctfyNoPerson1.value.toString() + form.ctfyNoPerson2.value.toString() ) == false) { // form.ctfyNoPerson1.focus(); // return false; // } if(document.getElementById("birthYear")) { if(form.birthYear.value == "") { alert("»ý³â¿ùÀÏ ³âµµ¸¦ ¼±ÅÃÇϼ¼¿ä."); form.birthYear.focus(); return false; } if(form.birthMonth.value == "") { alert("»ý³â¿ùÀÏ ¿ùÀ» ¼±ÅÃÇϼ¼¿ä."); form.birthMonth.focus(); return false; } if(form.birthDay.value == "") { alert("»ý³â¿ùÀÏ ÀÏÀ» ¼±ÅÃÇϼ¼¿ä."); form.birthDay.focus(); return false; } for(var i=0; i 40) { alert("¼ÒÀ¯ÀÚ ¿µ¹®À̸§À» 2~40ÀÚ À̳»·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); form.ownerOrgEngName.focus(); return false; } if(!form.ctfyNoOrg1.value) { alert('¼ÒÀ¯ÀÚ »ç¾÷ÀÚµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); form.ctfyNoOrg1.focus(); return false; } if(!form.ctfyNoOrg1.value) { alert('¼ÒÀ¯ÀÚ »ç¾÷ÀÚµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); form.ctfyNoOrg1.focus(); return false; } if(!form.ctfyNoOrg1.value) { alert('¼ÒÀ¯ÀÚ »ç¾÷ÀÚµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); form.ctfyNoOrg1.focus(); return false; } } if(!form.ownerZipcode.value) { alert('¼ÒÀ¯ÀÚ ¿ìÆí¹øÈ£À» ÀÔ·ÂÇϼ¼¿ä.'); form.ownerZipcode.focus(); return false; } if(!form.ownerKorAddr1.value || !form.ownerKorAddr2.value) { alert('¼ÒÀ¯ÀÚ ÁÖ¼ÒÀ» ÀÔ·ÂÇϼ¼¿ä.'); form.ownerKorAddr1.focus(); return false; } if(!form.ownerEngAddr1.value || engNum.test(form.ownerEngAddr1.value) == false) { alert('¼ÒÀ¯ÀÚ ¿µ¹®ÁÖ¼ÒÀ» È®ÀÎÇØ ÁÖ¼¼¿ä.'); form.ownerEngAddr1.focus(); return false; } if(!form.ownerPhoneNo1.value || !form.ownerPhoneNo2.value || !form.ownerPhoneNo3.value) { alert('¼ÒÀ¯ÀÚ ÀüÈ­¹øÈ£À» ÀÔ·ÂÇϼ¼¿ä.'); form.ownerPhoneNo1.focus(); return false; } if(checkInteger(form.ownerPhoneNo1.value) == false || checkInteger(form.ownerPhoneNo2.value) == false || checkInteger(form.ownerPhoneNo3.value) == false) { alert('¼ÒÀ¯ÀÚ ÀüÈ­¹øÈ£À» ÀÔ·ÂÇϼ¼¿ä.'); form.ownerPhoneNo1.focus(); return false; } if(!form.ownerEmailId.value || mailexpId.test(form.ownerEmailId.value) == false || mailexpAddr.test(form.ownerEmailAddr.value) == false) { alert('¼ÒÀ¯ÀÚ À̸ÞÀÏÀ» ÀÔ·ÂÇϼ¼¿ä.'); form.ownerEmailId.focus(); return false; } if(form.ownerEmailAuthFlag.value =='F'){ alert('¼ÒÀ¯ÀÚ À̸ÞÀÏÀ» ÀÎÁõÇØÁÖ¼¼¿ä. '); form.ownerEmailId.focus(); return false; } if(!form.ownerMobileNo1.value || !form.ownerMobileNo2.value || !form.ownerMobileNo3.value) { alert('¼ÒÀ¯ÀÚ ÇÚµåÆù¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); form.ownerMobileNo1.focus(); return false; } if(checkInteger(form.ownerMobileNo1.value) == false || checkInteger(form.ownerMobileNo2.value) == false || checkInteger(form.ownerMobileNo2.value) == false) { alert('¼ÒÀ¯ÀÚ ÇÚµåÆù¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); form.ownerMobileNo1.focus(); return false; } if(form.ownerFaxNo1.value != "" && checkInteger(form.ownerFaxNo1.value) == false) { alert('¼ÒÀ¯ÀÚ Æѽº¹øÈ£´Â ¼ýÀÚ·Î ÀÔ·ÂÇϼ¼¿ä.'); form.ownerFaxNo1.select(); return false; } if(form.ownerFaxNo2.value != "" && checkInteger(form.ownerFaxNo2.value) == false) { alert('¼ÒÀ¯ÀÚ Æѽº¹øÈ£´Â ¼ýÀÚ·Î ÀÔ·ÂÇϼ¼¿ä.'); form.ownerFaxNo2.select(); return false; } if(form.ownerFaxNo3.value != "" && checkInteger(form.ownerFaxNo3.value) == false) { alert('¼ÒÀ¯ÀÚ Æѽº¹øÈ£´Â ¼ýÀÚ·Î ÀÔ·ÂÇϼ¼¿ä.'); form.ownerFaxNo3.select(); return false; } if(!form.techKorName.value) { alert('Ã¥ÀÓÀÚ À̸§À» ÀÔ·ÂÇϼ¼¿ä.'); form.techKorName.focus(); return false; } if(!form.techEngName.value || engNum.test(form.techEngName.value) == false) { alert('Ã¥ÀÓÀÚ ¿µ¹®À̸§À» È®ÀÎÇØ ÁÖ¼¼¿ä.'); form.techEngName.focus(); return false; } if(form.techEngName.value.length < 2 || form.techEngName.value.length > 40) { alert("Ã¥ÀÓÀÚ ¿µ¹®À̸§À» 2~40ÀÚ À̳»·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); form.techEngName.focus(); return false; } if(!form.techPhenoNo1.value || !form.techPhenoNo2.value || !form.techPhenoNo3.value) { alert('Ã¥ÀÓÀÚ ÀüÈ­¹øÈ£À» ÀÔ·ÂÇϼ¼¿ä.'); form.techPhenoNo1.focus(); return false; } if(checkInteger(form.techPhenoNo1.value) == false || checkInteger(form.techPhenoNo2.value) == false || checkInteger(form.techPhenoNo2.value) == false) { alert('Ã¥ÀÓÀÚ ÀüÈ­¹øÈ£À» ÀÔ·ÂÇϼ¼¿ä.'); form.techPhenoNo1.focus(); return false; } if(!form.techEmail.value || mailexp.test(form.techEmail.value) == false) { alert('Ã¥ÀÓÀÚ E-mailÀ» ÀÔ·ÂÇϼ¼¿ä.'); form.techEmail.focus(); return false; } if(!form.techMobileNo1.value || !form.techMobileNo2.value || !form.techMobileNo3.value) { alert('Ã¥ÀÓÀÚ ÇÚµåÆù¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); form.techMobileNo1.focus(); return false; } if(checkInteger(form.techMobileNo1.value) == false || checkInteger(form.techMobileNo2.value) == false || checkInteger(form.techMobileNo3.value) == false) { alert('Ã¥ÀÓÀÚ ÇÚµåÆù¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); form.techMobileNo1.focus(); return false; } if(form.techFaxNo1.value != "" && checkInteger(form.techFaxNo1.value) == false) { alert('Ã¥ÀÓÀÚ Æѽº¹øÈ£´Â ¼ýÀÚ·Î ÀÔ·ÂÇϼ¼¿ä.'); form.techFaxNo1.select(); return false; } if(form.techFaxNo2.value != "" && checkInteger(form.techFaxNo2.value) == false) { alert('Ã¥ÀÓÀÚ Æѽº¹øÈ£´Â ¼ýÀÚ·Î ÀÔ·ÂÇϼ¼¿ä.'); form.techFaxNo2.select(); return false; } if(form.techFaxNo3.value != "" && checkInteger(form.techFaxNo3.value) == false) { alert('Ã¥ÀÓÀÚ Æѽº¹øÈ£´Â ¼ýÀÚ·Î ÀÔ·ÂÇϼ¼¿ä.'); form.techFaxNo3.select(); return false; } if(!form.same_check2.checked) { if( validateRealname('same2') == false ) return false; } // ssl ó¸® SSL.send({ 'formName':'form' ,'elementName':['billingKorName','billingEngName','u_ssn1','u_ssn2','billingZipcode','billingZipcode1','billingZipcode2','billingKorAddr1','billingKorAddr2','billingEngAddr1','billignEmail','billingPhoneNo1','billingPhoneNo2','billingPhoneNo3','billingMobileNo1','billingMobileNo2','billingMobileNo3','billingFaxNo1','billingFaxNo2','billingFaxNo3','adminKorName','adminEmailId','adminEmailAddr','adminPhoneNo1','adminPhoneNo2','adminPhoneNo3','adminMobileNo1','adminMobileNo2','adminMobileNo3','ownerKorName','ownerEngName','ctfyNoPerson1','ctfyNoPerson2','ownerZipcode','ownerZipcode1','ownerKorAddr1','ownerEngAddr1','ownerEmailId','ownerEmailAddr','ownerPhoneNo1','ownerPhoneNo2','ownerPhoneNo3','ownerMobileNo1','ownerMobileNo2','ownerMobileNo3','ownerFaxNo1','ownerFaxNo2','ownerFaxNo3','techKorName','techEngName','techEmail','techMobileNo1','techMobileNo2','techMobileNo3','techFaxNo1','techFaxNo2','techFaxNo3'] ,'postName':'sslEncode' }); return false; } /* whois */ function domainWhois(domain) { var url = "/chtml/whois.php?domain="+domain; window.open(url,"whois","width=500,height=700,scrollbars=yes"); } /* µµ¸ÞÀÎ ±â°£º° °¡°Ý º¯°æ */ function changePrice(form, period) { var sellingPirce = Number(form.domainSellingPrice.value); var ret = sellingPirce * Number(period); var pRet = ret.toLocaleString().split(".")[0]; form.totalAmount.value = ret; document.getElementById("total_amount_view").innerHTML = pRet; delete ret; delete pRet; delete sellingPrice; } /* µµ¸ÞÀÎ ¼ÒÀ¯ÀÚ ±¸ºÐ */ function domainOwnerType() { var form = document.getElementById("form") || document.getElementsByName("form")[0]; if(form == null) { form = document.form; } //document.getElementById("no1").style.display = 'none'; document.getElementById("no1_1").style.display = 'none'; document.getElementById("no1_2").style.display = 'none'; document.getElementById("no2").style.display = 'none'; document.getElementById("no2_1").style.display = 'none'; document.getElementById("no2_2").style.display = 'none'; if(document.getElementById("birthTr")) { document.getElementById("birthTr").style.display = 'none'; document.getElementById("genderTr").style.display = 'none'; } if(form.ctfyCode[0].checked == true) { //document.getElementById("no1").style.display = 'block'; document.getElementById("no1_1").style.display = 'table-row'; document.getElementById("no1_2").style.display = 'table-row'; if(document.getElementById("birthTr")) { document.getElementById("birthTr").style.display = 'table-row'; document.getElementById("genderTr").style.display = 'table-row'; } } else if(form.ctfyCode[1].checked == true) { document.getElementById("no2").style.display = 'table-row'; document.getElementById("no2_1").style.display = 'table-row'; document.getElementById("no2_2").style.display = 'table-row'; } delete form; } /* °ü¸®ÀÚ Á¤º¸(µ¿ÀÏ Á¤º¸) ÀÔ·Â */ function adminInfoInput() { var form = document.getElementById("form") || document.getElementsByName("form")[0]; if(form == null) { var form = document.form; } if(form.same_check.checked == true) { form.adminEmailAuthFlag.value='F'; form.adminEmailId.readOnly =false; form.adminEmailAddr.readOnly =false; document.getElementById('div_auth_code_admin').style.display = 'inline'; document.getElementById('btn_auth_code_send_admin').style.display = 'inline'; document.getElementById('auth_result_admin').style.display = 'none'; form.adminKorName.value = form.billingKorName.value; var billignEmail = form.billignEmail.value.split('@'); form.adminEmailId.value = billignEmail[0]; form.adminEmailAddr.value = billignEmail[1]; form.adminPhoneNo1.value = form.billingPhoneNo1.value; form.adminPhoneNo2.value = form.billingPhoneNo2.value; form.adminPhoneNo3.value = form.billingPhoneNo3.value; form.adminMobileNo1.value = form.billingMobileNo1.value; form.adminMobileNo2.value = form.billingMobileNo2.value; form.adminMobileNo3.value = form.billingMobileNo3.value; } else { form.adminKorName.value = ""; form.adminEmailId.value = ""; form.adminEmailAddr.value = ""; form.adminPhoneNo1.value = ""; form.adminPhoneNo2.value = ""; form.adminPhoneNo3.value = ""; form.adminMobileNo1.value = ""; form.adminMobileNo2.value = ""; form.adminMobileNo3.value = ""; } delete form; } /* ½Ç¼ö¿äÀÚ Á¤º¸(µ¿ÀÏ Á¤º¸) ÀÔ·Â */ function ownerInfoInput() { var form = document.getElementById("form") || document.getElementsByName("form")[0]; if(form == null) { var form = document.form; } if(form.same_check2.checked == true) { form.ownerEmailAuthFlag.value='F'; form.ownerEmailId.readOnly =false; form.ownerEmailAddr.readOnly =false; document.getElementById('div_auth_code_owner').style.display = 'inline'; document.getElementById('btn_auth_code_send_owner').style.display = 'inline'; document.getElementById('auth_result_owner').style.display = 'none'; form.ownerKorName.value = form.billingKorName.value; form.ownerEngName.value = form.billingEngName.value; //form.ctfyNoPerson1.value = form.u_ssn1.value; //form.ctfyNoPerson2.value = form.u_ssn2.value; //form.ownerZipcode1.value = form.billingZipcode1.value; //form.ownerZipcode2.value = form.billingZipcode2.value; //form.ownerKorAddr1.value = form.billingKorAddr1.value; //form.ownerKorAddr2.value = form.billingKorAddr2.value; //form.ownerEngAddr1.value = form.billingEngAddr1.value; form.ownerPhoneNo1.value = form.billingPhoneNo1.value; form.ownerPhoneNo2.value = form.billingPhoneNo2.value; form.ownerPhoneNo3.value = form.billingPhoneNo3.value; var billignEmail = form.billignEmail.value.split('@'); form.ownerEmailId.value = billignEmail[0]; form.ownerEmailAddr.value = billignEmail[1]; form.ownerMobileNo1.value = form.billingMobileNo1.value; form.ownerMobileNo2.value = form.billingMobileNo2.value; form.ownerMobileNo3.value = form.billingMobileNo3.value; form.ownerFaxNo1.value = form.billingFaxNo1.value; form.ownerFaxNo2.value = form.billingFaxNo2.value; form.ownerFaxNo3.value = form.billingFaxNo3.value; } else { form.ownerKorName.value = ""; form.ownerEngName.value = ""; //form.ctfyNoPerson1.value = ""; //form.ctfyNoPerson2.value = ""; form.ownerZipcode1.value = ""; form.ownerZipcode2.value = ""; form.ownerKorAddr1.value = ""; form.ownerKorAddr2.value = ""; form.ownerEngAddr1.value = ""; form.ownerPhoneNo1.value = ""; form.ownerPhoneNo2.value = ""; form.ownerPhoneNo3.value = ""; form.ownerEmailId.value = ""; form.ownerEmailAddr.value =""; form.ownerMobileNo1.value = ""; form.ownerMobileNo2.value = ""; form.ownerMobileNo3.value = ""; form.ownerFaxNo1.value = ""; form.ownerFaxNo2.value = ""; form.ownerFaxNo3.value = ""; } delete form; } /* ±â¼ú Ã¥ÀÓÀÚ Á¤º¸(µ¿ÀÏÁ¤º¸) ÀÔ·Â */ function techInfoInput() { var form = document.getElementById("form") || document.getElementsByName("form")[0]; if(form == null) { var form = document.form; } if(form.same_check3.checked == true) { if(form.ctfyCode[0].checked == true) { form.techKorName.value = form.ownerKorName.value; form.techEngName.value = form.ownerEngName.value; } if(form.ctfyCode[1].checked == true) { form.techKorName.value = form.ownerOrgKorName.value; form.techEngName.value = form.ownerOrgEngName.value; } form.techPhenoNo1.value = form.ownerPhoneNo1.value; form.techPhenoNo2.value = form.ownerPhoneNo2.value; form.techPhenoNo3.value = form.ownerPhoneNo3.value; form.techEmail.value = form.ownerEmailId.value+'@'+form.ownerEmailAddr.value; form.techMobileNo1.value = form.ownerMobileNo1.value; form.techMobileNo2.value = form.ownerMobileNo2.value; form.techMobileNo3.value = form.ownerMobileNo3.value; form.techFaxNo1.value = form.ownerFaxNo1.value; form.techFaxNo2.value = form.ownerFaxNo2.value; form.techFaxNo3.value = form.ownerFaxNo3.value; } else { form.techKorName.value = ""; form.techEngName.value = ""; form.techPhenoNo1.value = ""; form.techPhenoNo2.value = ""; form.techPhenoNo3.value = ""; form.techEmail.value = ""; form.techMobileNo1.value = ""; form.techMobileNo2.value = ""; form.techMobileNo3.value = ""; form.techFaxNo1.value = ""; form.techFaxNo2.value = ""; form.techFaxNo3.value = ""; } delete form; } /* µµ¸ÞÀÎ ½Å±Ô Ä«µå °áÁ¦ */ function payCard() { var form = document.getElementById("form") || document.getElementsByName("form")[0]; if(form == null) { var form = document.form; } if(form.repeatChk == null) { // Áߺ¹ Ŭ¸¯À» ¸·±â À§ÇØ var inputObj = document.createElement('input'); inputObj.type = 'hidden'; inputObj.id = 'repeatChk'; inputObj.name = 'repeatChk'; inputObj.value = '0'; form.appendChild(inputObj); } if(form.repeatChk.value == 1) { alert('ó¸®ÁßÀÔ´Ï´Ù.'); return; }else{ if(document.getElementById('builderPgName')) { switch(document.getElementById('builderPgName').value) { case 'kcp': /* if( document.Payplus.object == null ) { alert("\ °í°´´ÔÀÇ ¾ÈÀüÇÑ °áÁ¦¸¦ À§ÇØ °áÁ¦ Á¤º¸¸¦ ¾ÏȣȭÇÏ´Â ÇÁ·Î±×·¥ÀÌ ÇÊ¿äÇÕ´Ï´Ù. \n\n´Ù½Ã ¼³Ä¡ÇϽ÷Á¸é Ctrl + F5Å°¸¦ ´©¸£½Ã°Å³ª ¸Þ´ºÀÇ [º¸±â/»õ·Î°íħ]À» ¼±ÅÃÇÏ¿© ÁֽʽÿÀ."); return false; } */ break; case 'inicis': if(document.INIpay == null || document.INIpay.object == null) { alert("\nÀÌ´ÏÆäÀÌ Ç÷¯±×ÀÎ ¼³Ä¡µÇÁö ¾Ê¾Ò½À´Ï´Ù. \n\n¾ÈÀüÇÑ °áÁ¦¸¦ À§ÇÏ¿© ÀÌ´ÏÆäÀÌ Ç÷¯±×ÀÎÀÇ ¼³Ä¡°¡ ÇÊ¿äÇÕ´Ï´Ù. \n\n´Ù½Ã ¼³Ä¡ÇϽ÷Á¸é Ctrl + F5Å°¸¦ ´©¸£½Ã°Å³ª ¸Þ´ºÀÇ [º¸±â/»õ·Î°íħ]À» ¼±ÅÃÇÏ¿© ÁֽʽÿÀ."); return false; } break; } } form.paymentMethod.value = "card"; form.bankPayerName.value = ""; //form.target = "hiddenPaymentFrame"; form.repeatChk.value = 1; form.action = '/chtml/pg/reseller/reseller_domain_payment_exe.php'; var pop_title = "pg"; window.open("", pop_title, "width=850, height=650, scrollbars=yes"); form.target = pop_title; form.submit(); } } /* µµ¸ÞÀÎ ½Å±Ô ¹«ÅëÀå ÀÔ±Ý */ function payBank() { var form = document.getElementById("form") || document.getElementsByName("form")[0]; var inputForm = document.getElementById("f_mu"); if(form == null) { var form = document.form; } if(inputForm == null) { var inputForm = document.f_mu; } if(form.repeatChk == null) { // Áߺ¹ Ŭ¸¯À» ¸·±â À§ÇØ var inputObj = document.createElement('input'); inputObj.type = 'hidden'; inputObj.id = 'repeatChk'; inputObj.name = 'repeatChk'; inputObj.value = '0'; form.appendChild(inputObj); } if(form.repeatChk.value == 1) { alert('ó¸®ÁßÀÔ´Ï´Ù.'); return; }else{ if(inputForm.payAgree.checked == false) { alert("±¸¸ÅÁøÇà µ¿ÀÇ¿¡ üũÇØ ÁÖ¼¼¿ä."); return; } if(!inputForm.payer.value) { alert("ÀÔ±ÝÀÚ¸íÀ» ÀÔ·ÂÇϼ¼¿ä"); inputForm.payer.focus(); return; } else { form.paymentMethod.value = "bank"; form.bankPayerName.value = inputForm.payer.value; form.target = "hiddenPaymentFrame"; delete inputForm; form.repeatChk.value = 1; form.action = '/chtml/pg/reseller/reseller_domain_payment_exe.php'; form.submit(); } } } function authKeySend(val) { var form=document.form; if(val == 'admin'){ var emailId = form.adminEmailId.value; var emailAddr = form.adminEmailAddr.value; if( emailId==null || emailId=="" ){ alert("À̸ÞÀÏÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); form.adminEmailId.select(); return; } if( emailAddr==null || emailAddr=="" ){ alert("À̸ÞÀÏÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); form.adminEmailAddr.select(); return; } }else{ var emailId = form.ownerEmailId.value; var emailAddr = form.ownerEmailAddr.value; if( emailId==null || emailId=="" ){ alert("À̸ÞÀÏÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); form.ownerEmailId.select(); return; } if( emailAddr==null || emailAddr=="" ){ alert("À̸ÞÀÏÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); form.ownerEmailAddr.select(); return; } } var email = emailId+'@'+emailAddr; var queryString = "domain="+form.domain.value+"&email="+email; var url = "/chtml/domain/domain_register_authkey_sendmail_xmlhttp.php"; $.ajax({ url:url, type:'post', data:queryString, dataType:'json', error:function(obj){ alert(obj.resultMsg); }, success:function(obj) { alert(obj.resultMsg); if(obj.result == true){ setAuthTime(val); if(val == 'admin'){ document.getElementById('div_auth_code_admin').style.display = 'inline'; document.getElementById('btn_auth_code_check_admin').style.display = 'inline'; }else{ document.getElementById('div_auth_code_owner').style.display = 'inline'; document.getElementById('btn_auth_code_check_owner').style.display = 'inline'; } } } }); } function authKeyCheck(val) { var form=document.form; if(val == 'admin'){ var auth_code = form.auth_code_admin.value; if( auth_code==null || auth_code=="" ){ alert("ÀÎÁõ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); form.auth_code_admin.select(); return; } }else{ var auth_code = form.auth_code_owner.value; if( auth_code==null || auth_code=="" ){ alert("ÀÎÁõ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); form.auth_code_owner.select(); return; } } var queryString = "domain="+form.domain.value+"&auth_code="+auth_code; var url = "/chtml/domain/domain_register_authkey_check_xmlhttp.php"; $.ajax({ url:url, type:'post', data:queryString, dataType:'json', error:function(obj){ alert(obj.resultMsg); }, success:function(obj) { if(obj.result == true){ if(val == 'admin'){ form.adminEmailAuthFlag.value='T'; form.adminEmailId.readOnly =true; form.adminEmailAddr.readOnly =true; document.getElementById('div_auth_code_admin').style.display = 'none'; document.getElementById('btn_auth_code_send_admin').style.display = 'none'; document.getElementById('auth_result_admin').style.display = 'inline'; }else{ form.ownerEmailAuthFlag.value='T'; form.ownerEmailId.readOnly =true; form.ownerEmailAddr.readOnly =true; document.getElementById('div_auth_code_owner').style.display = 'none'; document.getElementById('btn_auth_code_send_owner').style.display = 'none'; document.getElementById('auth_result_owner').style.display = 'inline'; } } alert(obj.resultMsg); } }); } var oSetInterval =''; function setAuthTime(sType) { var iTimeLeft = new Date(); iTimeLeft.setMinutes(iTimeLeft.getMinutes() + 5); iTimeLeft.setSeconds(iTimeLeft.getSeconds() + 1); if(sType == 'admin'){ document.getElementById("auth_time_admin").innerHTML = "5:00"; }else{ document.getElementById("auth_time_owner").innerHTML = "5:00"; } oSetInterval = setInterval(function() { var iTimeNow = new Date(); var iTotalTimeLeft = iTimeLeft - iTimeNow; if (iTotalTimeLeft <= 0) { stopCountdown(sType); return false; } var iSecond = 1000; // in milliseconds var iMinute = iSecond * 60; var iHour = iMinute * 60; var iMinutesLeft = Math.floor((iTotalTimeLeft % iHour) / iMinute); var iSecondsLeft = Math.floor((iTotalTimeLeft % iMinute) / iSecond); var sShowTime = iMinutesLeft + ':' + ((iSecondsLeft >= 10) ? '' : '0') + iSecondsLeft; if(sType == 'admin'){ document.getElementById("auth_time_admin").innerHTML = sShowTime; }else{ document.getElementById("auth_time_owner").innerHTML = sShowTime; } }, 0); } function stopCountdown(sType) { clearInterval(oSetInterval); if(sType == 'admin'){ document.getElementById("auth_time_admin").innerHTML = '0:00'; }else{ document.getElementById("auth_time_owner").innerHTML = '0:00'; } }