//<script language=javascript src=http://www.humanfuture.co.kr/humanfuture.js></script>

/************ 2Â÷°³ÆíÁß ¼Óµµ ´À¸°ÇÔ¼ö ***********************************************************************************/




/************ ±â   Á¸ ***************************************************************************************************/


// ÁÖ¼ÒÃ¢¿¡ ÇÏÀ§ÆäÀÌÁö°¡ ¾È³ªÅ¸³ª°Ô
function frameset(page) { 
    framecode = "<frameset rows='1*'>" + "<frame name=main src='" + page + "'>" + "</frameset>"; 
    document.write(framecode); 
    document.close(); 
} 

// µµ¸ÞÀÎ °Ë»ö
function openDomainSearch(){
    if(this.domainSearchForm.domain.value !=  null && this.domainSearchForm.domain.value != ''){
         window.open('http://www.humanfuture.co.kr/popup/domainsearch.jsp?domain='+this.domainSearchForm.domain.value+'&extend='+this.domainSearchForm.extend.value, '_domain',  'status=no , resizable=no, left=250 , top=150, width=420, height=180');
    }else{
        alert("°Ë»öÇÒ µµ¸ÞÀÎÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.domainSearchForm.domain.focus();
    }
}

// ÇÏºÎÆäÀÌÁö¿¡¼­ µµ¸ÞÀÎ°Ë»ö
/*
function openDomainSearch2(){
    if(this.domainSearchForm.domain.value !=  null && this.domainSearchForm.domain.value != ''){
         alert("¹Ì·¡¿Í »ç¶÷µé¿¡¼­´Â À¥È£½ºÆÃÀ» ½ÅÃ»ÇÏ½Ã´Â ºÐµé¿¡ ´ëÇÏ¿© \nµµ¸ÞÀÎ µî·Ï½ÅÃ»À» ´ëÇàÇØ µå¸®°í ÀÖ½À´Ï´Ù. \nº°µµÀÇ µµ¸ÞÀÎ ½ÅÃ»Àº ±âÅ¸ µî·Ï±â°üÀ» ÀÌ¿ëÇØ ÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù. ");
         window.open('http://www.humanfuture.co.kr/popup/domainsearch.jsp?domain='+this.domainSearchForm.domain.value+'&extend='+this.domainSearchForm.extend.value, '_domain',  'status=no , resizable=no, left=250 , top=150, width=420, height=180');
    }else{
        alert("°Ë»öÇÒ µµ¸ÞÀÎÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.domainSearchForm.domain.focus();
    }
}
*/

// µµ¸ÞÀÎ ÀÔ·Â ÆË¾÷¿¡¼­ µµ¸ÞÀÎ °Ë»öÃ¢¿¡ µµ¸ÞÀÎ ÀÔ·Â¿©ºÎ Ã¼Å©
function chkDomainSearch(){
    if(this.domainSearchForm.domain.value !=  null && this.domainSearchForm.domain.value != ''){
        this.domainSearchForm.submit();
    }else{
        alert("°Ë»öÇÒ µµ¸ÞÀÎÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.domainSearchForm.domain.focus();
    }
}

// µµ¸ÞÀÎ ¼¼ºÎ°Ë»ö ÆäÀÌÁö ¿­±â
function openDomainDetail(url){
     window.open(url, '_domaindetail',  'status=no , resizable=yes,scrollbars=yes, left=200 , top=70, width=500, height=600');
}

// µµ¸ÞÀÎÀ» °¡Áö°í ½ÅÃ» ÆäÀÌÁö·Î ÀÌµ¿ÇÏ¸é¼­ ÀÚ½Å close
function apply(domain, extend){
    opener.location='http://www.humanfuture.co.kr/apply/apply2_form.jsp?domain='+domain+'&extend='+extend+'&type=new';
    this.close();
}

// ÀÚÃ¼º¸À¯µµ¸ÞÀÎÀ¸·Î ½ÅÃ»ÇÏ±â
function applyWithMyDomain(){
    if(this.myDomainForm.domain.value !=  null && this.myDomainForm.domain.value != ''){
        this.myDomainForm.submit();
    }else{
        alert("°Ë»öÇÒ µµ¸ÞÀÎÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.myDomainForm.domain.focus();
    }
}

// 2Â÷ µµ¸ÞÀÎ °Ë»ö
function open2ndDomainSearch(){
    if(this.DomainSearchForm2.domain.value !=  null && this.DomainSearchForm2.domain.value != ''){
         window.open('http://www.humanfuture.co.kr/popup/2ndDomainSearch.jsp?domain='+this.DomainSearchForm2.domain.value, '_domain',  'status=no , resizable=no, left=250 , top=150, width=420, height=180');
    }else{
        alert("°Ë»öÇÒ µµ¸ÞÀÎÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.DomainSearchForm2.domain.focus();
    }
}

// µµ¸ÞÀÎ ÀÔ·Â ÆË¾÷¿¡¼­ µµ¸ÞÀÎ °Ë»öÃ¢¿¡ µµ¸ÞÀÎ ÀÔ·Â¿©ºÎ Ã¼Å©
function chkDomainSearch2(){
    if(this.domainSearchForm2.domain.value !=  null && this.domainSearchForm2.domain.value != ''){
        this.domainSearchForm2.submit();
    }else{
        alert("°Ë»öÇÒ 2Â÷ µµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.domainSearchForm2.domain.focus();
    }
}

// 2Â÷ µµ¸ÞÀÎÀ» °¡Áö°í ½ÅÃ» ÆäÀÌÁö·Î ÀÌµ¿ÇÏ¸é¼­ ÀÚ½Å close
function apply2(domain){
    opener.parent.location='http://www.humanfuture.co.kr/apply/apply2_form.jsp?domain='+domain+'&type=second';
    this.close();
}

// ÁÖ¼Ò°Ë»öÃ¢ ¿­±â
function openPost(){
     //window.open('http://www.humanfuture.co.kr/popup/postSearch.jsp', '_postSearch', 'status=no , resizable=no, left=250 , top=150, width=420, height=140');
     window.open('http://www.humanfuture.co.kr/popup/postSearch.jsp', '_postSearch', 'status=no , resizable=yes, scrollbars=yes,left=250 , top=150, width=450, height=150');
}

// ÁÖ¼Ò°Ë»ö°á°úÃ¢ ¿­±â

function openPostResult(){
     if(this.postSearchForm.dong.value !=  null && this.postSearchForm.dong.value != ''){
         //window.open('http://www.humanfuture.co.kr/popup/postSearchResult.jsp?dong='+this.postSearchForm.dong.value, '_postSearchResult', 'status=no , resizable=yes, scrollbars=yes, left=250 , top=150, width=440, height=500');
         //window.open('http://www.humanfuture.co.kr/popup/postSearchResult.jsp?dong='+this.postSearchForm.dong.value, '_postSearchResult');
         //this.close();
         //self.resizable = true;//self.scrollbars.visible=true;
         window.resizeTo( 450, 500);
         this.postSearchForm.submit();
     }else{
         alert("°Ë»öÇÒ µ¿¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
         this.postSearchForm.dong.focus();
     }
}

// ÁÖ¼Ò°Ë»ö°á°úÃ¢ ¿­±â
function rePostResult(){ 
     if(this.rePostResultForm.dong.value !=  null && this.rePostResultForm.dong.value != ''){
         this.rePostResultForm.submit();
     }else{
         alert("°Ë»öÇÒ µ¿¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
         this.rePostResultForm.dong.focus();
     }
}

// ÁÖ¼Ò°Ë»öÃ¢¿¡¼­ ÁÖ¼ÒÃ¤¿ì°í »ç¶óÁö±â
function fillAddress(postZipCode1, postZipCode2, address){ 
    opener.applyForm.post1.value = postZipCode1;
    opener.applyForm.post2.value = postZipCode2;
    opener.applyForm.address.focus();
    opener.applyForm.address.value = address;

    this.close();
}

// ½ÅÃ»2´Ü¿¡¼­ 3´Ü°è·Î ÀÌµ¿ÇÏ±â
function applytoConfirm(){
    if((this.applyForm.product[0].checked | this.applyForm.product[1].checked | this.applyForm.product[2].checked | this.applyForm.product[3].checked)==false){
        alert("»óÇ°À» Àû¾îµµ ÇÏ³ª ½ÅÃ»ÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
        this.applyForm.product[0].focus();
    }else if(this.applyForm.namekor.value == ''){
        alert("¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.namekor.focus();
    }else if(this.applyForm.ssn1.value == ''){
        alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.ssn1.focus();
    }else if(this.applyForm.ssn2.value == ''){
        alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.ssn2.focus();
    }else if(this.applyForm.email.value == ''){
        alert("°í°´´Ô²² ¿¬¶ôÀ» À§ÇÑ emailÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.email.focus();
    }else if(this.applyForm.tel1.value == ''){
        alert("ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.tel1.focus();
    }else if(this.applyForm.tel2.value == ''){
        alert("ÀüÈ­ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.tel2.focus();
    }else if(this.applyForm.tel3.value == ''){
        alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.tel3.focus();
    }else if(!(this.applyForm.agree.checked)){
        alert("¾à°üÀ» ÀÐ¾îº¸½Ã°í µ¿ÀÇ¿©ºÎ¿¡ Ã¼Å©ÇØ ÁÖ¼¼¿ä.");
        this.applyForm.agree.focus();
    }else{
        this.applyForm.submit();
    }
}

// ½ÅÃ»2´Ü¿¡¼­ 3´Ü°è·Î ÀÌµ¿ÇÏ±â(¿É¼Ç½ÅÃ»½Ã)
function applytoConfirm2(){
    if((this.applyForm.product[0].checked | this.applyForm.product[1].checked | this.applyForm.product[2].checked)==false){
        alert("»óÇ°À» Àû¾îµµ ÇÏ³ª ½ÅÃ»ÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
        this.applyForm.product[0].focus();
    }else if(this.applyForm.namekor.value == ''){
        alert("¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.namekor.focus();
    }else if(this.applyForm.ssn1.value == ''){
        alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.ssn1.focus();
    }else if(this.applyForm.ssn2.value == ''){
        alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.ssn2.focus();
    }else if(this.applyForm.email.value == ''){
        alert("°í°´´Ô²² ¿¬¶ôÀ» À§ÇÑ emailÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.email.focus();
    }else if(this.applyForm.tel1.value == ''){
        alert("ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.tel1.focus();
    }else if(this.applyForm.tel2.value == ''){
        alert("ÀüÈ­ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.tel2.focus();
    }else if(this.applyForm.tel3.value == ''){
        alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.tel3.focus();
    }else if(!(this.applyForm.agree.checked)){
        alert("¾à°üÀ» ÀÐ¾îº¸½Ã°í µ¿ÀÇ¿©ºÎ¿¡ Ã¼Å©ÇØ ÁÖ¼¼¿ä.");
        this.applyForm.agree.focus();
    }else{
        this.applyForm.submit();
    }
}

// ½Å¿ëÄ«µå °áÁ¦Ã¢ ¶ç¿ì±â ¹× ¹«ÅëÀå ÀÔ±ÝÇÏ±â
function pay(card_price, orderid){
    if(this.payForm.paymethod[0].checked == true){
        //url = 'https://www.mypay.net/pay/cart.asp?cmd=pay&theme=card&goodname=È£½ºÆÃ&cardmethod=CARD&mallid=jpsystems&price='+ card_price+'&empty=1'+'&option1='+orderid;
        url = 'https://www.mypay.net/pay/cart.asp?cmd=pay&theme=card&goodname=À¥È£½ºÆÃ&cardmethod=CARD&mallid=jpsystems&price='+ card_price+'&empty=1'+'&option1='+orderid+'&buyername='+this.payForm.buyername.value+'&recvtel='+this.payForm.buyertel.value+'&buyertel='+this.payForm.buyertel.value+'&recvname='+this.payForm.buyername.value+'&recvaddr='+this.payForm.address.value ;
        window.open(url,'_mypaynet', 'status=yes , resizable=yes, scrollbars=yes, left=250 , top=150, width=500, height=500');
    }else if(this.payForm.paymethod[1].checked == true){
        this.payForm.submit();
    }
}

// °áÁ¦Å×½ºÆ® : ÀÓ½Ã
function paytest(){
    window.open('https://www.mypay.net/pay/cart.asp?cmd=pay&theme=card&goodname=È£½ºÆÃ&cardmethod=CARD&mallid=jpsystems&price='+this.paytestform.payamount.value, '_mypaynet', 'resizable=yes, status=yes, scrollbars=yes, left=250 , top=150, width=500, height=500');
}

// °áÁ¦¿Ï·á : MyPayNet

// ¿¡·¯½Ã       result     : 0
//              payamount  : 0
//              errmsg     : ¿¡·¯¸Þ½ÃÁö

// Á¤»ó°áÁ¦½Ã   result     : 1
//              payamount  : °áÁ¦¾×
//              errmsg     : ""
function paycomplete(orderid, result, payamount, errmsg, orderidpg){
    opener.location='http://www.humanfuture.co.kr/apply/apply4_result.jsp?orderid='+orderid+'&result='+result+'&payamount='+payamount+'&errmsg='+errmsg+'&orderidpg='+orderidpg;
}

// ¸ÞÀÎÈ­¸é ÀÌº¥Æ® ¿­±â
/*
function openEvent(){
    window.open('http://www.humanfuture.co.kr/popup/event.html' , '_mainevent', 'resizable=no, status=no, scrollbars=no, left=434 , top=70, width=354, height=300');
}
*/
// 2002.05.31 ¿ùµåÄÅ °³ÃÖ
function openEvent(){
    window.open('http://www.humanfuture.co.kr/popup/event_0531.html' , '_mainevent', 'resizable=no, status=no, scrollbars=no, left=470 , top=70, width=319, height=339');
}


function openTest(url){
     //window.open('http://www.humanfuture.co.kr/popup/postSearch.jsp', '_postSearch', 'status=no , resizable=no, left=250 , top=150, width=500, height=200');
     window.open(url, '_test', 'status=no , resizable=yes, scrollbars=yes,left=250 , top=150, width=800, height=300');
}


/************ 2Â÷°³Æí ***************************************************************************************************/

// ¾ÆÀÌµð°Ë»öÃ¢ÆË¾÷
function openIdSearch(){
     window.open('../popup/IdSearch.jsp?id='+this.memberForm.id.value, '_idSearch', 'status=no , resizable=no, scrollbars=no,left=250 , top=150, width=312, height=205');
}
// ID»ç¿ë
function useId(id){
     opener.memberForm.id.value = id;
     this.close();
}
// IDÀç°Ë»ö
function idSearchAgain(){
     this.location = "../popup/IdSearch.jsp";
}

// ¾ÆÀÌµð°Ë»öÃ¢ÆË¾÷(ÁÖ¹®°úÁ¤)
function openIdSearchOrder(){
     window.open('../popup/IdSearchOrder.jsp?id='+this.applyForm.id.value , '_idSearch', 'status=no , resizable=no, scrollbars=no,left=250 , top=150, width=312, height=205');
}
// ID»ç¿ë(ÁÖ¹®°úÁ¤)
function useIdOrder(id){
     opener.applyForm.id.value = id;
     this.close();
}
// IDÀç°Ë»ö(ÁÖ¹®°úÁ¤)
function idSearchAgainOrder(){
     this.location = "../popup/IdSearchOrder.jsp";
}

// ºñ¹Ð¹øÈ£È®ÀÎÁú¹®
function riddleAsk(){
    if(this.memberForm.asksel.value == '0'){
        this.memberForm.ask.value = '';
        this.memberForm.ask.focus();
    }else{
        this.memberForm.ask.value = this.memberForm.asksel.value;
        this.memberForm.answer.value='';
        this.memberForm.answer.focus();
    }
}

// ÁÖ¼Ò°Ë»öÃ¢ ¿­±â
function openPost2(){
     window.open('../popup/postSearch.jsp', '_postSearch', 'status=no , resizable=yes, scrollbars=yes,left=250 , top=150, width=392, height=234');
}
// ÁÖ¼Ò°Ë»ö°á°úÃ¢ ¿­±â
function openPostResult2(){
     if(this.postSearchForm.dong.value !=  null && this.postSearchForm.dong.value != ''){
         window.resizeTo( 404, 450);
         this.postSearchForm.submit();
     }else{
         alert("°Ë»öÇÒ µ¿¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
         this.postSearchForm.dong.focus();
     }
}
// ÁÖ¼Ò°Ë»öÃ¢¿¡¼­ ÁÖ¼ÒÃ¤¿ì°í »ç¶óÁö±â
function fillAddress2(postZipCode1, postZipCode2, address){ 
    opener.memberForm.post1.value = postZipCode1;
    opener.memberForm.post2.value = postZipCode2;
    opener.memberForm.address.focus();
    opener.memberForm.address.value = address;
    this.close();
}

// ÁÖ¼Ò°Ë»öÃ¢ ¿­±â(ÁÖ¹®°úÁ¤)
function openPost2Order(){
     window.open('../popup/postSearchOrder.jsp', '_postSearch', 'status=no , resizable=yes, scrollbars=yes,left=250 , top=150, width=392, height=234');
}
// ÁÖ¼Ò°Ë»ö°á°úÃ¢ ¿­±â(ÁÖ¹®°úÁ¤)
function openPostResult2Order(){
     if(this.postSearchForm.dong.value !=  null && this.postSearchForm.dong.value != ''){
         window.resizeTo( 404, 450);
         this.postSearchForm.submit();
     }else{
         alert("°Ë»öÇÒ µ¿¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
         this.postSearchForm.dong.focus();
     }
}
// ÁÖ¼Ò°Ë»öÃ¢¿¡¼­ ÁÖ¼ÒÃ¤¿ì°í »ç¶óÁö±â(ÁÖ¹®°úÁ¤)
function fillAddress2Order(postZipCode1, postZipCode2, address){ 
    opener.applyForm.post1.value = postZipCode1;
    opener.applyForm.post2.value = postZipCode2;
    opener.applyForm.address.focus();
    opener.applyForm.address.value = address;
    this.close();
}

// ÁÖ¼Ò°Ë»öÃ¢ ¿­±â(µµ¸ÞÀÎµî·Ï´ëÇà)
function openPost2Domain(seq,admin){
     window.open('../popup/postSearchDomain.jsp?seq='+seq + '&admin='+admin, '_postSearch', 'status=no , resizable=yes, scrollbars=yes,left=250 , top=150, width=392, height=234');
}
// ÁÖ¼Ò°Ë»ö°á°úÃ¢ ¿­±â(µµ¸ÞÀÎµî·Ï´ëÇà)
function openPostResult2Domain(seq,admin){
     if(this.postSearchForm.dong.value !=  null && this.postSearchForm.dong.value != ''){
         window.resizeTo( 404, 450);
         this.postSearchForm.submit();
     }else{
         alert("°Ë»öÇÒ µ¿¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
         this.postSearchForm.dong.focus();
     }
}
// ÁÖ¼Ò°Ë»öÃ¢¿¡¼­ ÁÖ¼ÒÃ¤¿ì°í »ç¶óÁö±â(µµ¸ÞÀÎµî·Ï´ëÇà)
function fillAddress2Domain(seq,admin,postZipCode1, postZipCode2, address){ 
    if(seq == '0' && admin == '0'){
        opener.applyForm.ag_post1_0.value = postZipCode1;
        opener.applyForm.ag_post2_0.value = postZipCode2;
        opener.applyForm.ag_addr_0.focus();
        opener.applyForm.ag_addr_0.value = address;
        this.close();
    }else if(seq == '1' && admin == '0'){
        opener.applyForm.ag_post1_1.value = postZipCode1;
        opener.applyForm.ag_post2_1.value = postZipCode2;
        opener.applyForm.ag_addr_1.focus();
        opener.applyForm.ag_addr_1.value = address;
        this.close();
    }else if(seq == '2' && admin == '0'){
        opener.applyForm.ag_post1_2.value = postZipCode1;
        opener.applyForm.ag_post2_2.value = postZipCode2;
        opener.applyForm.ag_addr_2.focus();
        opener.applyForm.ag_addr_2.value = address;
        this.close();
    }else if(seq == '3' && admin =='0'){
        opener.applyForm.ag_post1_3.value = postZipCode1;
        opener.applyForm.ag_post2_3.value = postZipCode2;
        opener.applyForm.ag_addr_3.focus();
        opener.applyForm.ag_addr_3.value = address;
        this.close();
    }else if(seq == '4' && admin == '0'){
        opener.applyForm.ag_post1_4.value = postZipCode1;
        opener.applyForm.ag_post2_4.value = postZipCode2;
        opener.applyForm.ag_addr_4.focus();
        opener.applyForm.ag_addr_4.value = address;
        this.close();
    }else if(seq == '0' && admin == '1'){
        opener.applyForm.ag_adminPost1_0.value = postZipCode1;
        opener.applyForm.ag_adminPost2_0.value = postZipCode2;
        opener.applyForm.ag_adminAddrKor_0.focus();
        opener.applyForm.ag_adminAddrKor_0.value = address;
        this.close();
    }else if(seq == '1' && admin == '1'){
        opener.applyForm.ag_adminPost1_1.value = postZipCode1;
        opener.applyForm.ag_adminPost2_1.value = postZipCode2;
        opener.applyForm.ag_adminAddrKor_1.focus();
        opener.applyForm.ag_adminAddrKor_1.value = address;
        this.close();
    }else if(seq == '2' && admin == '1'){
        opener.applyForm.ag_adminPost1_2.value = postZipCode1;
        opener.applyForm.ag_adminPost2_2.value = postZipCode2;
        opener.applyForm.ag_adminAddrKor_2.focus();
        opener.applyForm.ag_adminAddrKor_2.value = address;
        this.close();
    }else if(seq == '3' && admin == '1'){
        opener.applyForm.ag_adminPost1_3.value = postZipCode1;
        opener.applyForm.ag_adminPost2_3.value = postZipCode2;
        opener.applyForm.ag_adminAddrKor_3.focus();
        opener.applyForm.ag_adminAddrKor_3.value = address;
        this.close();
    }else if(seq == '4' && admin == '1'){
        opener.applyForm.ag_adminPost1_4.value = postZipCode1;
        opener.applyForm.ag_adminPost2_4.value = postZipCode2;
        opener.applyForm.ag_adminAddrKor_4.focus();
        opener.applyForm.ag_adminAddrKor_4.value = address;
        this.close();
    }
}


// ÁÖ¼Ò°Ë»öÃ¢ ¿­±â(¼¼±Ý°è»ê¼­¿äÃ»)
function openPost2Tax(){
     window.open('../popup/postSearchTax.jsp', '_postSearch', 'status=no , resizable=yes, scrollbars=yes,left=250 , top=150, width=392, height=234');
}
// ÁÖ¼Ò°Ë»ö°á°úÃ¢ ¿­±â(¼¼±Ý°è»ê¼­¿äÃ»)
function openPostResult2Tax(){
     if(this.postSearchForm.dong.value !=  null && this.postSearchForm.dong.value != ''){
         window.resizeTo( 404, 450);
         this.postSearchForm.submit();
     }else{
         alert("°Ë»öÇÒ µ¿¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
         this.postSearchForm.dong.focus();
     }
}
// ÁÖ¼Ò°Ë»öÃ¢¿¡¼­ ÁÖ¼ÒÃ¤¿ì°í »ç¶óÁö±â(¼¼±Ý°è»ê¼­¿äÃ»)
function fillAddress2Tax(postZipCode1, postZipCode2, address){ 
    opener.taxForm.post1.value = postZipCode1;
    opener.taxForm.post2.value = postZipCode2;
    opener.taxForm.address.focus();
    opener.taxForm.address.value = address;
    this.close();
}



// ÁÖ¼Ò°Ë»ö°á°úÃ¢ ¿­±â
/*
function rePostResult2(){ 
     if(this.rePostResultForm.dong.value !=  null && this.rePostResultForm.dong.value != ''){
         this.rePostResultForm.submit();
     }else{
         alert("°Ë»öÇÒ µ¿¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
         this.rePostResultForm.dong.focus();
     }
}
*/

// È¸¿ø°¡ÀÔ
function join(){
    if((this.memberForm.id.value.length<4) || (this.memberForm.id.value.length>12)){
        alert('ID´Â 4ÀÚ ÀÌ»ó 12ÀÚ ÀÌÇÏÀÇ ¿µ¹®¼Ò¹®ÀÚ ¹× ¼ýÀÚ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.memberForm.id.focus();
    }else if((this.memberForm.pass.value.length<4) || (this.memberForm.pass.value.length>12)){
        alert('ºñ¹Ð¹øÈ£´Â 4ÀÚ ÀÌ»ó 12ÀÚ ÀÌÇÏÀÇ ¿µ¹®¼Ò¹®ÀÚ ¹× ¼ýÀÚ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.memberForm.pass.focus();
    }else if(this.memberForm.pass.value != this.memberForm.pass2.value){
        alert('ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.');
        this.memberForm.pass.value='';
        this.memberForm.pass2.value='';
        this.memberForm.pass.focus();
    }else if(this.memberForm.namekor.value == ''){
        alert('¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.memberForm.namekor.focus();
    }else if(this.memberForm.ssn1.value == ''){
        alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.ssn1.focus();
    }else if(this.memberForm.ssn2.value == ''){
        alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.ssn2.focus();
    }else if(this.memberForm.email.value == ''){
        alert("°í°´´Ô²² ¿¬¶ôÀ» À§ÇÑ emailÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.email.focus();
    }else if(this.memberForm.tel1.value == ''){
        alert("ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.tel1.focus();
    }else if(this.memberForm.tel2.value == ''){
        alert("ÀüÈ­ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.tel2.focus();
    }else if(this.memberForm.tel3.value == ''){
        alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.tel3.focus();
    }else if(this.memberForm.post1.value == ''){
        alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.post1.focus();
    }else if(this.memberForm.address.value == ''){
        alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.address.focus();

    }else if(!(this.memberForm.agree.checked)){
        alert("°³ÀÎÁ¤º¸º¸È£Á¤Ã¥À» ÀÐ¾îº¸½Ã°í µ¿ÀÇ¿©ºÎ¿¡ Ã¼Å©ÇØ ÁÖ¼¼¿ä.");
        this.memberForm.agree.focus();

    
/*
    if((this.applyForm.product[0].checked | this.applyForm.product[1].checked | this.applyForm.product[2].checked | this.applyForm.product[3].checked)==false){
        alert("»óÇ°À» Àû¾îµµ ÇÏ³ª ½ÅÃ»ÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
        this.applyForm.product[0].focus();
    }else if(this.applyForm.namekor.value == ''){
        alert("¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.namekor.focus();
    }else if(this.applyForm.ssn1.value == ''){
        alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.ssn1.focus();
    }else if(this.applyForm.ssn2.value == ''){
        alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.ssn2.focus();
    }else if(this.applyForm.email.value == ''){
        alert("°í°´´Ô²² ¿¬¶ôÀ» À§ÇÑ emailÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.email.focus();
    }else if(this.applyForm.tel1.value == ''){
        alert("ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.tel1.focus();
    }else if(this.applyForm.tel2.value == ''){
        alert("ÀüÈ­ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.tel2.focus();
    }else if(this.applyForm.tel3.value == ''){
        alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.applyForm.tel3.focus();
    }else if(!(this.applyForm.agree.checked)){
        alert("¾à°üÀ» ÀÐ¾îº¸½Ã°í µ¿ÀÇ¿©ºÎ¿¡ Ã¼Å©ÇØ ÁÖ¼¼¿ä.");
        this.applyForm.agree.focus();
*/
    }else{
        this.memberForm.submit();
    }
}

// IDÀç°Ë»ö
function goto(url){
     this.location = url;
}

// ·Î±×ÀÎÃ¼Å©
function logincheck(){
    if(this.loginform.id.value == ''){
        alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
        this.loginform.id.focus();
    }else if(this.loginform.pass.value == ''){
        alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
        this.loginform.pass.focus();
    }else{
        this.loginform.submit();
    }
}

// µµ¸ÞÀÎ °Ë»ö
function openDomainSearch2(){
    if(this.domainSearchForm.domain.value !=  null && this.domainSearchForm.domain.value != ''){
         window.open('../popup/domainSearch.jsp?domain='+this.domainSearchForm.domain.value+'&extend='+this.domainSearchForm.extend.value, '_domain',  'status=no , resizable=no, left=250 , top=150, width=482, height=220');
    }else{
        alert("°Ë»öÇÒ µµ¸ÞÀÎÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.domainSearchForm.domain.focus();
    }
}

// µµ¸ÞÀÎ ¼¼ºÎ°Ë»ö ÆäÀÌÁö ¿­±â
function openDomainDetail2(url){
     window.open(url, '_domaindetail',  'status=no , resizable=no,scrollbars=yes, left=200 , top=70, width=500, height=600');
}

// µµ¸ÞÀÎÀ» °¡Áö°í ½ÅÃ» ÆäÀÌÁö·Î ÀÌµ¿ÇÏ¸é¼­ ÀÚ½Å close
function apply2(domain, extend){
    opener.top.location='../apply/apply2_form.jsp?domain='+domain+'&extend='+extend+'&type=new';
    this.close();
}

// 2Â÷µµ¸ÞÀÎ
function apply3(domain){
    opener.location='../apply/apply2_form.jsp?domain='+domain+'&type=second';
    this.close();
}

// ÀÚÃ¼º¸À¯µµ¸ÞÀÎÀ¸·Î ½ÅÃ»ÇÏ±â
function applyWithMyDomain2(){
    if(this.myDomainForm.domain.value !=  null && this.myDomainForm.domain.value != ''){
        this.myDomainForm.submit();
    }else{
        alert("°Ë»öÇÒ µµ¸ÞÀÎÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.myDomainForm.domain.focus();
    }
}

// 2Â÷ µµ¸ÞÀÎ °Ë»ö
function open2ndDomainSearch2(){
    if(this.DomainSearchForm2.domain.value !=  null && this.DomainSearchForm2.domain.value != ''){
         window.open('../popup/2ndDomainSearch.jsp?domain='+this.DomainSearchForm2.domain.value, '_domain',  'status=no , resizable=no, left=250 , top=150, width=482, height=220');
    }else{
        alert("°Ë»öÇÒ µµ¸ÞÀÎÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.DomainSearchForm2.domain.focus();
    }
}

// µµ¸ÞÀÎ ÀÔ·Â ÆË¾÷¿¡¼­ µµ¸ÞÀÎ °Ë»öÃ¢¿¡ µµ¸ÞÀÎ ÀÔ·Â¿©ºÎ Ã¼Å©
function chkDomainSearch22(){
    if(this.domainSearchForm2.domain.value !=  null && this.domainSearchForm2.domain.value != ''){
        //this.domainSearchForm2.type.value = 'second';
        this.domainSearchForm2.submit();
    }else{
        alert("°Ë»öÇÒ 2Â÷ µµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.domainSearchForm2.domain.focus();
    }
}


// ¾ÆÀÌµð ÆÐ½º¿öµå Ã£±âÃ¢ ÆË¾÷
function openFind(){
     window.open('../popup/find.jsp?', '_idpassfind', 'status=yes , resizable=no, scrollbars=no,left=250 , top=150, width=545, height=607');
}


// ¾ÆÀÌµð ÆÐ½º¿öµå °Ë»ö ·Î±×ÀÎÃ¢À¸·Î °¡¸é¼­ »ç¶óÁö±â
function findtoLogin(id, pass){ 
    opener.location = "../mypage/mypage_main.jsp?id="+id+"&pass="+pass;
//    opener.loginForm.id.value = id;
//    opener.loginForm.pass.value = pass;

    this.close();
}


// ½ÅÃ»2´Ü¿¡¼­ 3´Ü°è·Î ÀÌµ¿ÇÏ±â
function applySecond(type,login){
    //µµ¸ÞÀÎµî·Ï´ëÇàÀ» ½ÅÃ»ÇÏÁö ¾Ê°í ÀÔ·ÂÇÑ°æ¿ì
    if(this.applyForm.addmulti.value == '0'){
        if(trim(this.applyForm.multidomain1.value) != '' 
        || trim(this.applyForm.multidomain2.value) != ''
        || trim(this.applyForm.multidomain3.value) != ''
        || trim(this.applyForm.multidomain4.value) != ''
        || trim(this.applyForm.multidomain5.value) != ''){
            if(confirm("¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏÁö ¾ÊÀ¸¼Ì½À´Ï´Ù.\nÀÔ·ÂÇÏ½Å µµ¸ÞÀÎ¿¡ ´ëÇØ¼­ ¼¼ÆÃ ¹× µî·Ï´ëÇàµÇÁö ¾Ê½À´Ï´Ù.")){
                applySecondMiddle(type,login);
            }else{
                this.applyForm.addmulti.focus();
            }
        }else{
            applySecondMiddle(type,login);
        }
    }
    // ¸ÖÆ¼µµ¸ÞÀÎÀ» 1°³ ¼±ÅÃÇÏ°í À¯È¿ÇÏÁö ¾Ê°Ô ÀÔ·ÂÇÑ °æ¿ì
    if(this.applyForm.addmulti.value == '1'){
        if(trim(this.applyForm.multidomain1.value) == ''){
            alert("¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain1.focus();
        }else if(trim(this.applyForm.multidomain2.value) != '' 
              || trim(this.applyForm.multidomain3.value) != ''
              || trim(this.applyForm.multidomain4.value) != ''
              || trim(this.applyForm.multidomain5.value) != ''){
            if(confirm("¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» 1°³ ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\n»óÀ§ 1°³ÀÇ µµ¸ÞÀÎÀ» Á¦¿ÜÇÑ ³ª¸ÓÁö µµ¸ÞÀÎ¿¡ ´ëÇØ¼­´Â\n¼¼ÆÃ ¹× µî·Ï´ëÇà½ÅÃ» µÇÁö ¾Ê½À´Ï´Ù.")){
                applySecondMiddle(type,login);
            }else{
                this.applyForm.addmulti.focus();
            }
        }else{
            applySecondMiddle(type,login);
        }
    }
    // ¸ÖÆ¼µµ¸ÞÀÎÀ» 2°³ ¼±ÅÃÇÏ°í À¯È¿ÇÏÁö ¾Ê°Ô ÀÔ·ÂÇÑ °æ¿ì
    if(this.applyForm.addmulti.value == '2'){
        if(trim(this.applyForm.multidomain1.value) == ''){
            alert("2°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain1.focus();
        }else if(trim(this.applyForm.multidomain2.value) == ''){
            alert("2°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain2.focus();
        }else if(trim(this.applyForm.multidomain3.value) != '' 
              || trim(this.applyForm.multidomain4.value) != ''
              || trim(this.applyForm.multidomain5.value) != ''){
            if(confirm("¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» 2°³ ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\n»óÀ§ 2°³ÀÇ µµ¸ÞÀÎÀ» Á¦¿ÜÇÑ ³ª¸ÓÁö µµ¸ÞÀÎ¿¡ ´ëÇØ¼­´Â\n¼¼ÆÃ ¹× µî·Ï´ëÇà½ÅÃ» µÇÁö ¾Ê½À´Ï´Ù.")){
                applySecondMiddle(type,login);
            }else{
                this.applyForm.addmulti.focus();
            }
        }else{
            applySecondMiddle(type,login);
        }
    }
    // ¸ÖÆ¼µµ¸ÞÀÎÀ» 3°³ ¼±ÅÃÇÏ°í À¯È¿ÇÏÁö ¾Ê°Ô ÀÔ·ÂÇÑ °æ¿ì
    if(this.applyForm.addmulti.value == '3'){
        if(trim(this.applyForm.multidomain1.value) == ''){
            alert("3°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain1.focus();
        }else if(trim(this.applyForm.multidomain2.value) == ''){
            alert("3°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain2.focus();
        }else if(trim(this.applyForm.multidomain3.value) == ''){
            alert("3°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain3.focus();
        }else if(trim(this.applyForm.multidomain4.value) != '' 
              || trim(this.applyForm.multidomain5.value) != ''){
            if(confirm("¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» 3°³ ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\n»óÀ§ 3°³ÀÇ µµ¸ÞÀÎÀ» Á¦¿ÜÇÑ ³ª¸ÓÁö µµ¸ÞÀÎ¿¡ ´ëÇØ¼­´Â\n¼¼ÆÃ ¹× µî·Ï´ëÇà½ÅÃ» µÇÁö ¾Ê½À´Ï´Ù.")){
                applySecondMiddle(type,login);
            }else{
                this.applyForm.addmulti.focus();
            }
        }else{
            applySecondMiddle(type,login);
        }
    }
    // ¸ÖÆ¼µµ¸ÞÀÎÀ» 4°³ ¼±ÅÃÇÏ°í À¯È¿ÇÏÁö ¾Ê°Ô ÀÔ·ÂÇÑ °æ¿ì
    if(this.applyForm.addmulti.value == '4'){
        if(trim(this.applyForm.multidomain1.value) == ''){
            alert("4°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain1.focus();
        }else if(trim(this.applyForm.multidomain2.value) == ''){
            alert("4°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain2.focus();
        }else if(trim(this.applyForm.multidomain3.value) == ''){
            alert("4°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain3.focus();
        }else if(trim(this.applyForm.multidomain4.value) == ''){
            alert("4°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain4.focus();
        }else if(trim(this.applyForm.multidomain5.value) != ''){
            if(confirm("¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» 4°³ ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\n»óÀ§ 4°³ÀÇ µµ¸ÞÀÎÀ» Á¦¿ÜÇÑ ¸¶Áö¸· µµ¸ÞÀÎ¿¡ ´ëÇØ¼­´Â\n¼¼ÆÃ ¹× µî·Ï´ëÇà½ÅÃ» µÇÁö ¾Ê½À´Ï´Ù.")){
                applySecondMiddle(type,login);
            }else{
                this.applyForm.addmulti.focus();
            }
        }else{
            applySecondMiddle(type,login);
        }
    }
    // ¸ÖÆ¼µµ¸ÞÀÎÀ» 5°³ ¼±ÅÃÇÏ°í À¯È¿ÇÏÁö ¾Ê°Ô ÀÔ·ÂÇÑ °æ¿ì
    if(this.applyForm.addmulti.value == '5'){
        if(trim(this.applyForm.multidomain1.value) == ''){
            alert("5°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain1.focus();
        }else if(trim(this.applyForm.multidomain2.value) == ''){
            alert("5°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain2.focus();
        }else if(trim(this.applyForm.multidomain3.value) == ''){
            alert("5°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain3.focus();
        }else if(trim(this.applyForm.multidomain4.value) == ''){
            alert("5°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain4.focus();
        }else if(trim(this.applyForm.multidomain5.value) == ''){
            alert("5°³ÀÇ ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù.\nµµ¸ÞÀÎ¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            this.applyForm.multidomain5.focus();
        }else{
            applySecondMiddle(type,login);
        }
    }
}

// ½ÅÃ»2´Ü°è¿¡¼­ 3´Ü°è·Î ÀÌµ¿ÇÏ±â Áß°£(È¸¿øÁ¤º¸Á¡°Ë)
function applySecondMiddle(type,login){
    if(login == '0'){ //·Î±×ÀÎÇÏÁö¾ÊÀº°æ¿ì
        if((this.applyForm.id.value.length<4) || (this.applyForm.id.value.length>12)){
            alert('ID´Â 4ÀÚ ÀÌ»ó 12ÀÚ ÀÌÇÏÀÇ ¿µ¹®¼Ò¹®ÀÚ ¹× ¼ýÀÚ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
            this.applyForm.id.focus();
        }else if((this.applyForm.pass.value.length<4) || (this.applyForm.pass.value.length>12)){
            alert('ºñ¹Ð¹øÈ£´Â 4ÀÚ ÀÌ»ó 12ÀÚ ÀÌÇÏÀÇ ¿µ¹®¼Ò¹®ÀÚ ¹× ¼ýÀÚ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
            this.applyForm.pass.focus();
        }else if(this.applyForm.pass.value != this.applyForm.pass2.value){
            alert('ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.');
            this.applyForm.pass.value='';
            this.applyForm.pass2.value='';
            this.applyForm.pass.focus();
        }else if(this.applyForm.namekor.value == ''){
            alert('¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.namekor.focus();
        }else if(this.applyForm.ssn1.value == ''){
            alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
            this.applyForm.ssn1.focus();
        }else if(this.applyForm.ssn2.value == ''){
            alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
            this.applyForm.ssn2.focus();
        }else if(this.applyForm.email.value == ''){
            alert("°í°´´Ô²² ¿¬¶ôÀ» À§ÇÑ emailÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
            this.applyForm.email.focus();
        }else if(this.applyForm.tel1.value == ''){
            alert("ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
            this.applyForm.tel1.focus();
        }else if(this.applyForm.tel2.value == ''){
            alert("ÀüÈ­ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
            this.applyForm.tel2.focus();
        }else if(this.applyForm.tel3.value == ''){
            alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
            this.applyForm.tel3.focus();
        }else if(this.applyForm.post1.value == ''){
            alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
            this.applyForm.post1.focus();
        }else if(this.applyForm.address.value == ''){
            alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
            this.applyForm.address.focus();
        }else{
            applySecondFinal(type,login);
        }
    }else{ // ·Î±×ÀÎÇÑ°æ¿ì
        applySecondFinal(type,login);
    }
}

// ½ÅÃ»2´Ü°è¿¡¼­ 3´Ü°è·Î ÀÌµ¿ÇÏ±â ÃÖÁ¾
function applySecondFinal(type,login){
  if((trim(this.applyForm.accountpass.value) != '') && (this.applyForm.t_ver.value != '')){
    if(type == 'new' 
       || (this.applyForm.addmulti.value>0 && trim(this.applyForm.multidomain1.value) != '' && this.applyForm.multiagency1.checked)
       || (this.applyForm.addmulti.value>1 && trim(this.applyForm.multidomain2.value) != '' && this.applyForm.multiagency2.checked)
       || (this.applyForm.addmulti.value>2 && trim(this.applyForm.multidomain3.value) != '' && this.applyForm.multiagency3.checked)
       || (this.applyForm.addmulti.value>3 && trim(this.applyForm.multidomain4.value) != '' && this.applyForm.multiagency4.checked)
       || (this.applyForm.addmulti.value>4 && trim(this.applyForm.multidomain5.value) != '' && this.applyForm.multiagency5.checked)  ){
       this.applyForm.action="../apply/apply25_dag.jsp";
    }else if(type == 'hold' || 'second'){
             this.applyForm.action="../apply/apply3_confirm.jsp";
    }
    this.applyForm.submit();
  }else if(this.applyForm.t_ver.value == '0' && this.applyForm.product.value > '106'){
      alert('ÅèÄ¹ ¹öÀüÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.');
      this.applyForm.t_ver.focus();
  }else if(this.applyForm.t_ver.value > '0' && this.applyForm.product.value < '107'){
      alert('ÅèÄ¹ ¹öÀü ¼±ÅÃÀº JSPÈ£½ºÆÃ ½ÅÃ»½Ã¿¡¸¸ °¡´ÉÇÕ´Ï´Ù.');
      this.applyForm.t_ver.value='0';
      this.applyForm.t_ver.focus();
  }else if((trim(this.applyForm.accountpass.value) == '')){
      alert('°èÁ¤ÆÐ½º¿öµå´Â ÇÊ¼ö ÀÔ·Â»çÇ×ÀÔ´Ï´Ù.\n\nÂ÷ÈÄ °èÁ¤ÆÐ½º¿öµå¸¦ ÀÌ¿ëÇÏ¿© Telnet, FtpµîÀ» »ç¿ëÇÏ°Ô µË´Ï´Ù.');
      this.applyForm.accountpass.focus();
  }
}

// ½ÅÃ»2.5´Ü°è¿¡¼­ 3´Ü°è·Î ÀÌµ¿
function applyDomain(count,ext0, ext1,ext2,ext3,ext4, ext5){
    // Ã¹¹øÂ°´Â ¹«Á¶°Ç Ã¼Å©(ÃÖ¼ÒÇÑ 1°³)
    if(this.applyForm.ag_email_0.value == ''){
        alert('ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_email_0.focus();
    }else if(this.applyForm.ag_namekor_0.value == ''){
        alert('ÇÑ±Û¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_namekor_0.focus();
    }else if(this.applyForm.ag_ssn1_0.value == ''){
        alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_ssn1_0.focus();
    }else if(this.applyForm.ag_ssn2_0.value == ''){
        alert('ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_ssn2_0.focus();
    }else if(this.applyForm.ag_firstName_0.value == ''){
        alert('¿µ¹®¸í(ÀÌ¸§)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_firstName_0.focus();
    }else if(this.applyForm.ag_secondName_0.value == ''){
        alert('¿µ¹®¸í(¼º)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_secondName_0.focus();
    }else if(this.applyForm.ag_post1_0.value == ''){
        alert('¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_post1_0.focus();
    }else if(this.applyForm.ag_post2_0.value == ''){
        alert('¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_post2_0.focus();
    }else if(this.applyForm.ag_addr_0.value == ''){
        alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_addr_0.focus();
    }else if(this.applyForm.ag_addrEng_0.value == ''){
        alert('ÁÖ¼Ò¸¦ ¿µ¹®¸íÀ¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_addrEng_0.focus();
    }else if(this.applyForm.ag_tel1_0.value == ''){
        alert('ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_tel1_0.focus();
    }else if(this.applyForm.ag_tel2_0.value == ''){
        alert('ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_tel2_0.focus();
    }else if(this.applyForm.ag_tel3_0.value == ''){
        alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_tel3_0.focus();
    }else if(this.applyForm.ag_orgkor_0.value == ''){
        alert('±â°ü¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ´ë½Å ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
        this.applyForm.ag_orgkor_0.focus();
    }else if(this.applyForm.ag_orgeng_0.value == ''){
        alert('±â°ü¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
        this.applyForm.ag_orgeng_0.focus();
    }else if((ext0 == 'co.kr' || ext0 == 'or.kr') && this.applyForm.ag_papernum_0.value == ''){
        alert('µî·ÏÁõ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n'+ext0+' µµ¸ÞÀÎÀÇ ½ÅÃ»¿¡ ÇÊ¼öÀûÀÎ »çÇ×ÀÔ´Ï´Ù.');
        this.applyForm.ag_papernum_0.focus();
    }else if(this.applyForm.ag_adminEmail_0.value == ''){
        alert('°ü¸®ÀÚ ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminEmail_0.focus();
    }else if(this.applyForm.ag_adminNameKor_0.value == ''){
        alert('°ü¸®ÀÚ ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminNameKor_0.focus();
    }else if(this.applyForm.ag_adminFirstName_0.value == ''){
        alert('°ü¸®ÀÚ ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminFirstName_0.focus();
    }else if(this.applyForm.ag_adminSecondName_0.value == ''){
        alert('°ü¸®ÀÚ ¼ºÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminSecondName_0.focus();
    }else if(this.applyForm.ag_adminPost1_0.value == ''){
        alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminPost1_0.focus();
    }else if(this.applyForm.ag_adminPost2_0.value == ''){
        alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminPost2_0.focus();
    }else if(this.applyForm.ag_adminAddrKor_0.value == ''){
        alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminAddrKor_0.focus();
    }else if(this.applyForm.ag_adminAddrEng_0.value == ''){
        alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminAddrEng_0.focus();
    }else if(this.applyForm.ag_adminTel1_0.value == ''){
        alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminTel1_0.focus();
    }else if(this.applyForm.ag_adminTel2_0.value == ''){
        alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminTel2_0.focus();
    }else if(this.applyForm.ag_adminTel3_0.value == ''){
        alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminTel3_0.focus();
    }else if(count == '1'){
        this.applyForm.submit();
    // µµ¸ÞÀÎÀÌ 1°³¸¦ ³Ñ´Â °æ¿ì(2°³ÀÏ°æ¿ì ÇÊÈ÷ Ã¼Å©)
    }else if(count>1){
        if(this.applyForm.ag_email_1.value == ''){
            alert('ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_email_1.focus();
        }else if(this.applyForm.ag_namekor_1.value == ''){
            alert('ÇÑ±Û¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_namekor_1.focus();
        }else if(this.applyForm.ag_ssn1_1.value == ''){
            alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_ssn1_1.focus();
        }else if(this.applyForm.ag_ssn2_1.value == ''){
            alert('ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_ssn2_1.focus();
        }else if(this.applyForm.ag_firstName_1.value == ''){
            alert('¿µ¹®¸í(ÀÌ¸§)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_firstName_1.focus();
        }else if(this.applyForm.ag_secondName_1.value == ''){
            alert('¿µ¹®¸í(¼º)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_secondName_1.focus();
        }else if(this.applyForm.ag_post1_1.value == ''){
            alert('¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_post1_1.focus();
        }else if(this.applyForm.ag_post2_1.value == ''){
            alert('¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_post2_1.focus();
        }else if(this.applyForm.ag_addr_1.value == ''){
            alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_addr_1.focus();
        }else if(this.applyForm.ag_addrEng_1.value == ''){
            alert('ÁÖ¼Ò¸¦ ¿µ¹®¸íÀ¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_addrEng_1.focus();
        }else if(this.applyForm.ag_tel1_1.value == ''){
            alert('ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_tel1_1.focus();
        }else if(this.applyForm.ag_tel2_1.value == ''){
            alert('ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_tel2_1.focus();
        }else if(this.applyForm.ag_tel3_1.value == ''){
            alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_tel3_1.focus();
        }else if(this.applyForm.ag_orgkor_1.value == ''){
            alert('±â°ü¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ´ë½Å ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
            this.applyForm.ag_orgkor_1.focus();
        }else if(this.applyForm.ag_orgeng_1.value == ''){
            alert('±â°ü¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
            this.applyForm.ag_orgeng_1.focus();
        }else if((ext1 == 'co.kr' || ext1 == 'or.kr') && this.applyForm.ag_papernum_1.value == ''){
            alert('µî·ÏÁõ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n'+ext1+' µµ¸ÞÀÎÀÇ ½ÅÃ»¿¡ ÇÊ¼öÀûÀÎ »çÇ×ÀÔ´Ï´Ù.');
            this.applyForm.ag_papernum_1.focus();
        }else if(this.applyForm.ag_adminEmail_1.value == ''){
            alert('°ü¸®ÀÚ ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_adminEmail_1.focus();
        }else if(this.applyForm.ag_adminNameKor_1.value == ''){
            alert('°ü¸®ÀÚ ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_adminNameKor_1.focus();
        }else if(this.applyForm.ag_adminFirstName_1.value == ''){
            alert('°ü¸®ÀÚ ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_adminFirstName_1.focus();
        }else if(this.applyForm.ag_adminSecondName_1.value == ''){
            alert('°ü¸®ÀÚ ¼ºÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_adminSecondName_1.focus();
        }else if(this.applyForm.ag_adminPost1_1.value == ''){
            alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_adminPost1_1.focus();
        }else if(this.applyForm.ag_adminPost2_1.value == ''){
            alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_adminPost2_1.focus();
        }else if(this.applyForm.ag_adminAddrKor_1.value == ''){
            alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_adminAddrKor_1.focus();
        }else if(this.applyForm.ag_adminAddrEng_1.value == ''){
            alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_adminAddrEng_1.focus();
        }else if(this.applyForm.ag_adminTel1_1.value == ''){
            alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_adminTel1_1.focus();
        }else if(this.applyForm.ag_adminTel2_1.value == ''){
            alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_adminTel2_1.focus();
        }else if(this.applyForm.ag_adminTel3_1.value == ''){
            alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
            this.applyForm.ag_adminTel3_1.focus();
        }else if(count == '2'){
            this.applyForm.submit();
        // µµ¸ÞÀÎÀÌ 2°³¸¦ ³Ñ´Â °æ¿ì(3°³ÀÏ°æ¿ì ÇÊÈ÷ Ã¼Å©)
        }else if(count>2){
            if(this.applyForm.ag_email_2.value == ''){
                alert('ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_email_2.focus();
            }else if(this.applyForm.ag_namekor_2.value == ''){
                alert('ÇÑ±Û¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_namekor_2.focus();
            }else if(this.applyForm.ag_ssn1_2.value == ''){
                alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_ssn1_2.focus();
            }else if(this.applyForm.ag_ssn2_2.value == ''){
                alert('ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_ssn2_2.focus();
            }else if(this.applyForm.ag_firstName_2.value == ''){
                alert('¿µ¹®¸í(ÀÌ¸§)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_firstName_2.focus();
            }else if(this.applyForm.ag_secondName_2.value == ''){
                alert('¿µ¹®¸í(¼º)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_secondName_2.focus();
            }else if(this.applyForm.ag_post1_2.value == ''){
                alert('¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_post1_2.focus();
            }else if(this.applyForm.ag_post2_2.value == ''){
                alert('¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_post2_2.focus();
            }else if(this.applyForm.ag_addr_2.value == ''){
                alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_addr_2.focus();
            }else if(this.applyForm.ag_addrEng_2.value == ''){
                alert('ÁÖ¼Ò¸¦ ¿µ¹®¸íÀ¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_addrEng_2.focus();
            }else if(this.applyForm.ag_tel1_2.value == ''){
                alert('ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_tel1_2.focus();
            }else if(this.applyForm.ag_tel2_2.value == ''){
                alert('ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_tel2_2.focus();
            }else if(this.applyForm.ag_tel3_2.value == ''){
                alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_tel3_2.focus();
            }else if(this.applyForm.ag_orgkor_2.value == ''){
                alert('±â°ü¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ´ë½Å ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
                this.applyForm.ag_orgkor_2.focus();
            }else if(this.applyForm.ag_orgeng_2.value == ''){
                alert('±â°ü¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
                this.applyForm.ag_orgeng_2.focus();
            }else if((ext2 == 'co.kr' || ext2 == 'or.kr') && this.applyForm.ag_papernum_2.value == ''){
                alert('µî·ÏÁõ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n'+ext2+' µµ¸ÞÀÎÀÇ ½ÅÃ»¿¡ ÇÊ¼öÀûÀÎ »çÇ×ÀÔ´Ï´Ù.');
                this.applyForm.ag_papernum_2.focus();
            }else if(this.applyForm.ag_adminEmail_2.value == ''){
                alert('°ü¸®ÀÚ ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_adminEmail_2.focus();
            }else if(this.applyForm.ag_adminNameKor_2.value == ''){
                alert('°ü¸®ÀÚ ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_adminNameKor_2.focus();
            }else if(this.applyForm.ag_adminFirstName_2.value == ''){
                alert('°ü¸®ÀÚ ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_adminFirstName_2.focus();
            }else if(this.applyForm.ag_adminSecondName_2.value == ''){
                alert('°ü¸®ÀÚ ¼ºÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_adminSecondName_2.focus();
            }else if(this.applyForm.ag_adminPost1_2.value == ''){
                alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_adminPost1_2.focus();
            }else if(this.applyForm.ag_adminPost2_2.value == ''){
                alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_adminPost2_2.focus();
            }else if(this.applyForm.ag_adminAddrKor_2.value == ''){
                alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_adminAddrKor_2.focus();
            }else if(this.applyForm.ag_adminAddrEng_2.value == ''){
                alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_adminAddrEng_2.focus();
            }else if(this.applyForm.ag_adminTel1_2.value == ''){
                alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_adminTel1_2.focus();
            }else if(this.applyForm.ag_adminTel2_2.value == ''){
                alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_adminTel2_2.focus();
            }else if(this.applyForm.ag_adminTel3_2.value == ''){
                alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                this.applyForm.ag_adminTel3_2.focus();
            }else if(count == '3'){
                this.applyForm.submit();
            // µµ¸ÞÀÎÀÌ 3°³¸¦ ³Ñ´Â °æ¿ì(4°³ÀÏ°æ¿ìÇÊÈ÷Ã¼Å©)
            }else if(count>3){
                if(this.applyForm.ag_email_3.value == ''){
                    alert('ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_email_3.focus();
                }else if(this.applyForm.ag_namekor_3.value == ''){
                    alert('ÇÑ±Û¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_namekor_3.focus();
                }else if(this.applyForm.ag_ssn1_3.value == ''){
                    alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_ssn1_3.focus();
                }else if(this.applyForm.ag_ssn2_3.value == ''){
                    alert('ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_ssn2_3.focus();
                }else if(this.applyForm.ag_firstName_3.value == ''){
                    alert('¿µ¹®¸í(ÀÌ¸§)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_firstName_3.focus();
                }else if(this.applyForm.ag_secondName_3.value == ''){
                    alert('¿µ¹®¸í(¼º)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_secondName_3.focus();
                }else if(this.applyForm.ag_post1_3.value == ''){
                    alert('¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_post1_3.focus();
                }else if(this.applyForm.ag_post2_3.value == ''){
                    alert('¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_post2_3.focus();
                }else if(this.applyForm.ag_addr_3.value == ''){
                    alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_addr_3.focus();
                }else if(this.applyForm.ag_addrEng_3.value == ''){
                    alert('ÁÖ¼Ò¸¦ ¿µ¹®¸íÀ¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_addrEng_3.focus();
                }else if(this.applyForm.ag_tel1_3.value == ''){
                    alert('ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_tel1_3.focus();
                }else if(this.applyForm.ag_tel2_3.value == ''){
                    alert('ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_tel2_3.focus();
                }else if(this.applyForm.ag_tel3_3.value == ''){
                    alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_tel3_3.focus();
                }else if(this.applyForm.ag_orgkor_3.value == ''){
                    alert('±â°ü¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ´ë½Å ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
                    this.applyForm.ag_orgkor_3.focus();
                }else if(this.applyForm.ag_orgeng_3.value == ''){
                    alert('±â°ü¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
                    this.applyForm.ag_orgeng_3.focus();
                }else if((ext3 == 'co.kr' || ext3 == 'or.kr') && this.applyForm.ag_papernum_3.value == ''){
                    alert('µî·ÏÁõ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n'+ext3+' µµ¸ÞÀÎÀÇ ½ÅÃ»¿¡ ÇÊ¼öÀûÀÎ »çÇ×ÀÔ´Ï´Ù.');
                    this.applyForm.ag_papernum_3.focus();
                }else if(this.applyForm.ag_adminEmail_3.value == ''){
                    alert('°ü¸®ÀÚ ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_adminEmail_3.focus();
                }else if(this.applyForm.ag_adminNameKor_3.value == ''){
                    alert('°ü¸®ÀÚ ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_adminNameKor_3.focus();
                }else if(this.applyForm.ag_adminFirstName_3.value == ''){
                    alert('°ü¸®ÀÚ ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_adminFirstName_3.focus();
                }else if(this.applyForm.ag_adminSecondName_3.value == ''){
                    alert('°ü¸®ÀÚ ¼ºÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_adminSecondName_3.focus();
                }else if(this.applyForm.ag_adminPost1_3.value == ''){
                    alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_adminPost1_3.focus();
                }else if(this.applyForm.ag_adminPost2_3.value == ''){
                    alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_adminPost2_3.focus();
                }else if(this.applyForm.ag_adminAddrKor_3.value == ''){
                    alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_adminAddrKor_3.focus();
                }else if(this.applyForm.ag_adminAddrEng_3.value == ''){
                    alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_adminAddrEng_3.focus();
                }else if(this.applyForm.ag_adminTel1_3.value == ''){
                    alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_adminTel1_3.focus();
                }else if(this.applyForm.ag_adminTel2_3.value == ''){
                    alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_adminTel2_3.focus();
                }else if(this.applyForm.ag_adminTel3_3.value == ''){
                    alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                    this.applyForm.ag_adminTel3_3.focus();
                }else if(count == '4'){
                    this.applyForm.submit();
                // µµ¸ÞÀÎÀÌ 4°³¸¦ ³Ñ´Â °æ¿ì(5°³ÀÏ°æ¿ì ÇÊÈ÷Ã¼Å©)
                }else if(count>4){
                    if(this.applyForm.ag_email_4.value == ''){
                        alert('ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_email_4.focus();
                    }else if(this.applyForm.ag_namekor_4.value == ''){
                        alert('ÇÑ±Û¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_namekor_4.focus();
                    }else if(this.applyForm.ag_ssn1_4.value == ''){
                        alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_ssn1_4.focus();
                    }else if(this.applyForm.ag_ssn2_4.value == ''){
                        alert('ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_ssn2_4.focus();
                    }else if(this.applyForm.ag_firstName_4.value == ''){
                        alert('¿µ¹®¸í(ÀÌ¸§)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_firstName_4.focus();
                    }else if(this.applyForm.ag_secondName_4.value == ''){
                        alert('¿µ¹®¸í(¼º)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_secondName_4.focus();
                    }else if(this.applyForm.ag_post1_4.value == ''){
                        alert('¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_post1_4.focus();
                    }else if(this.applyForm.ag_post2_4.value == ''){
                        alert('¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_post2_4.focus();
                    }else if(this.applyForm.ag_addr_4.value == ''){
                        alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_addr_4.focus();
                    }else if(this.applyForm.ag_addrEng_4.value == ''){
                        alert('ÁÖ¼Ò¸¦ ¿µ¹®¸íÀ¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_addrEng_4.focus();
                    }else if(this.applyForm.ag_tel1_4.value == ''){
                        alert('ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_tel1_4.focus();
                    }else if(this.applyForm.ag_tel2_4.value == ''){
                        alert('ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_tel2_4.focus();
                    }else if(this.applyForm.ag_tel3_4.value == ''){
                        alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_tel3_4.focus();
                    }else if(this.applyForm.ag_orgkor_4.value == ''){
                        alert('±â°ü¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ´ë½Å ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
                        this.applyForm.ag_orgkor_4.focus();
                    }else if(this.applyForm.ag_orgeng_4.value == ''){
                        alert('±â°ü¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
                        this.applyForm.ag_orgeng_4.focus();
                    }else if((ext4 == 'co.kr' || ext4 == 'or.kr') && this.applyForm.ag_papernum_4.value == ''){
                        alert('µî·ÏÁõ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n'+ext4+' µµ¸ÞÀÎÀÇ ½ÅÃ»¿¡ ÇÊ¼öÀûÀÎ »çÇ×ÀÔ´Ï´Ù.');
                        this.applyForm.ag_papernum_4.focus();
                    }else if(this.applyForm.ag_adminEmail_4.value == ''){
                        alert('°ü¸®ÀÚ ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_adminEmail_4.focus();
                    }else if(this.applyForm.ag_adminNameKor_4.value == ''){
                        alert('°ü¸®ÀÚ ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_adminNameKor_4.focus();
                    }else if(this.applyForm.ag_adminFirstName_4.value == ''){
                        alert('°ü¸®ÀÚ ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_adminFirstName_4.focus();
                    }else if(this.applyForm.ag_adminSecondName_4.value == ''){
                        alert('°ü¸®ÀÚ ¼ºÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_adminSecondName_4.focus();
                    }else if(this.applyForm.ag_adminPost1_4.value == ''){
                        alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_adminPost1_4.focus();
                    }else if(this.applyForm.ag_adminPost2_4.value == ''){
                        alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_adminPost2_4.focus();
                    }else if(this.applyForm.ag_adminAddrKor_4.value == ''){
                        alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_adminAddrKor_4.focus();
                    }else if(this.applyForm.ag_adminAddrEng_4.value == ''){
                        alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_adminAddrEng_4.focus();
                    }else if(this.applyForm.ag_adminTel1_4.value == ''){
                        alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_adminTel1_4.focus();
                    }else if(this.applyForm.ag_adminTel2_4.value == ''){
                        alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_adminTel2_4.focus();
                    }else if(this.applyForm.ag_adminTel3_4.value == ''){
                        alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                        this.applyForm.ag_adminTel3_4.focus();
                    }else if(count == '5'){
                        this.applyForm.submit();
                    // µµ¸ÞÀÎÀÌ 5°³¸¦ ³Ñ´Â°æ¿ì(µµ¸ÞÀÎÀÌ 6°³ÀÏ °æ¿ì ÇÊÈ÷ Ã¼Å©)
                    }else if(count>5){
                        if(this.applyForm.ag_email_5.value == ''){
                            alert('ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_email_5.focus();
                        }else if(this.applyForm.ag_namekor_5.value == ''){
                            alert('ÇÑ±Û¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_namekor_5.focus();
                        }else if(this.applyForm.ag_ssn1_5.value == ''){
                            alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_ssn1_5.focus();
                        }else if(this.applyForm.ag_ssn2_5.value == ''){
                            alert('ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_ssn2_5.focus();
                        }else if(this.applyForm.ag_firstName_5.value == ''){
                            alert('¿µ¹®¸í(ÀÌ¸§)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_firstName_5.focus();
                        }else if(this.applyForm.ag_secondName_5.value == ''){
                            alert('¿µ¹®¸í(¼º)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_secondName_5.focus();
                        }else if(this.applyForm.ag_post1_5.value == ''){
                            alert('¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_post1_5.focus();
                        }else if(this.applyForm.ag_post2_5.value == ''){
                            alert('¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_post2_5.focus();
                        }else if(this.applyForm.ag_addr_5.value == ''){
                            alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_addr_5.focus();
                        }else if(this.applyForm.ag_addrEng_5.value == ''){
                            alert('ÁÖ¼Ò¸¦ ¿µ¹®¸íÀ¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_addrEng_5.focus();
                        }else if(this.applyForm.ag_tel1_5.value == ''){
                            alert('ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_tel1_5.focus();
                        }else if(this.applyForm.ag_tel2_5.value == ''){
                            alert('ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_tel2_5.focus();
                        }else if(this.applyForm.ag_tel3_5.value == ''){
                            alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_tel3_5.focus();
                        }else if(this.applyForm.ag_orgkor_5.value == ''){
                            alert('±â°ü¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ´ë½Å ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
                            this.applyForm.ag_orgkor_5.focus();
                        }else if(this.applyForm.ag_orgeng_5.value == ''){
                            alert('±â°ü¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
                            this.applyForm.ag_orgeng_5.focus();
                        }else if((ext5 == 'co.kr' || ext5 == 'or.kr') && this.applyForm.ag_papernum_5.value == ''){
                            alert('µî·ÏÁõ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n'+ext4+' µµ¸ÞÀÎÀÇ ½ÅÃ»¿¡ ÇÊ¼öÀûÀÎ »çÇ×ÀÔ´Ï´Ù.');
                            this.applyForm.ag_papernum_5.focus();
                        }else if(this.applyForm.ag_adminEmail_5.value == ''){
                            alert('°ü¸®ÀÚ ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_adminEmail_5.focus();
                        }else if(this.applyForm.ag_adminNameKor_5.value == ''){
                            alert('°ü¸®ÀÚ ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_adminNameKor_5.focus();
                        }else if(this.applyForm.ag_adminFirstName_5.value == ''){
                            alert('°ü¸®ÀÚ ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_adminFirstName_5.focus();
                        }else if(this.applyForm.ag_adminSecondName_5.value == ''){
                            alert('°ü¸®ÀÚ ¼ºÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_adminSecondName_5.focus();
                        }else if(this.applyForm.ag_adminPost1_5.value == ''){
                            alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_adminPost1_5.focus();
                        }else if(this.applyForm.ag_adminPost2_5.value == ''){
                            alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_adminPost2_5.focus();
                        }else if(this.applyForm.ag_adminAddrKor_5.value == ''){
                            alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_adminAddrKor_5.focus();
                        }else if(this.applyForm.ag_adminAddrEng_5.value == ''){
                            alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_adminAddrEng_5.focus();
                        }else if(this.applyForm.ag_adminTel1_5.value == ''){
                            alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_adminTel1_5.focus();
                        }else if(this.applyForm.ag_adminTel2_5.value == ''){
                            alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_adminTel2_5.focus();
                        }else if(this.applyForm.ag_adminTel3_5.value == ''){
                            alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
                            this.applyForm.ag_adminTel3_5.focus();
                        }else if(count == '6'){
                            this.applyForm.submit();
                        }
                    }
                }
            }
        }
    }
}

function domainSame(seq){
    if(seq == '0'){
        if(this.applyForm.adminsame_0.checked){
            this.applyForm.ag_adminEmail_0.value       = this.applyForm.ag_email_0.value;
            this.applyForm.ag_adminNameKor_0.value     = this.applyForm.ag_namekor_0.value;
            this.applyForm.ag_adminFirstName_0.value   = this.applyForm.ag_firstName_0.value;
            this.applyForm.ag_adminSecondName_0.value  = this.applyForm.ag_secondName_0.value;
            this.applyForm.ag_adminPost1_0.value       = this.applyForm.ag_post1_0.value;
            this.applyForm.ag_adminPost2_0.value       = this.applyForm.ag_post2_0.value;
            this.applyForm.ag_adminAddrKor_0.value     = this.applyForm.ag_addr_0.value;
            this.applyForm.ag_adminAddrEng_0.value     = this.applyForm.ag_addrEng_0.value;
            this.applyForm.ag_adminTel1_0.value        = this.applyForm.ag_tel1_0.value;
            this.applyForm.ag_adminTel2_0.value        = this.applyForm.ag_tel2_0.value;
            this.applyForm.ag_adminTel3_0.value        = this.applyForm.ag_tel3_0.value;
            this.applyForm.ag_adminFax1_0.value        = this.applyForm.ag_fax1_0.value;
            this.applyForm.ag_adminFax2_0.value        = this.applyForm.ag_fax2_0.value;
            this.applyForm.ag_adminFax3_0.value        = this.applyForm.ag_fax3_0.value;
        }else{
            this.applyForm.ag_adminEmail_0.value       = '';
            this.applyForm.ag_adminNameKor_0.value     = '';
            this.applyForm.ag_adminFirstName_0.value   = '';
            this.applyForm.ag_adminSecondName_0.value  = '';
            this.applyForm.ag_adminPost1_0.value       = '';
            this.applyForm.ag_adminPost2_0.value       = '';
            this.applyForm.ag_adminAddrKor_0.value     = '';
            this.applyForm.ag_adminAddrEng_0.value     = '';
            this.applyForm.ag_adminTel1_0.value        = '';
            this.applyForm.ag_adminTel2_0.value        = '';
            this.applyForm.ag_adminTel3_0.value        = '';
            this.applyForm.ag_adminFax1_0.value        = '';
            this.applyForm.ag_adminFax2_0.value        = '';
            this.applyForm.ag_adminFax3_0.value        = '';
        }
    }else if(seq == '1'){
        if(this.applyForm.adminsame_1.checked){
            this.applyForm.ag_adminEmail_1.value       = this.applyForm.ag_email_1.value;
            this.applyForm.ag_adminNameKor_1.value     = this.applyForm.ag_namekor_1.value;
            this.applyForm.ag_adminFirstName_1.value   = this.applyForm.ag_firstName_1.value;
            this.applyForm.ag_adminSecondName_1.value  = this.applyForm.ag_secondName_1.value;
            this.applyForm.ag_adminPost1_1.value       = this.applyForm.ag_post1_1.value;
            this.applyForm.ag_adminPost2_1.value       = this.applyForm.ag_post2_1.value;
            this.applyForm.ag_adminAddrKor_1.value     = this.applyForm.ag_addr_1.value;
            this.applyForm.ag_adminAddrEng_1.value     = this.applyForm.ag_addrEng_1.value;
            this.applyForm.ag_adminTel1_1.value        = this.applyForm.ag_tel1_1.value;
            this.applyForm.ag_adminTel2_1.value        = this.applyForm.ag_tel2_1.value;
            this.applyForm.ag_adminTel3_1.value        = this.applyForm.ag_tel3_1.value;
            this.applyForm.ag_adminFax1_1.value        = this.applyForm.ag_fax1_1.value;
            this.applyForm.ag_adminFax2_1.value        = this.applyForm.ag_fax2_1.value;
            this.applyForm.ag_adminFax3_1.value        = this.applyForm.ag_fax3_1.value;
        }else{
            this.applyForm.ag_adminEmail_1.value       = '';
            this.applyForm.ag_adminNameKor_1.value     = '';
            this.applyForm.ag_adminFirstName_1.value   = '';
            this.applyForm.ag_adminSecondName_1.value  = '';
            this.applyForm.ag_adminPost1_1.value       = '';
            this.applyForm.ag_adminPost2_1.value       = '';
            this.applyForm.ag_adminAddrKor_1.value     = '';
            this.applyForm.ag_adminAddrEng_1.value     = '';
            this.applyForm.ag_adminTel1_1.value        = '';
            this.applyForm.ag_adminTel2_1.value        = '';
            this.applyForm.ag_adminTel3_1.value        = '';
            this.applyForm.ag_adminFax1_1.value        = '';
            this.applyForm.ag_adminFax2_1.value        = '';
            this.applyForm.ag_adminFax3_1.value        = '';
        }
    }else if(seq == '2'){
        if(this.applyForm.adminsame_2.checked){
            this.applyForm.ag_adminEmail_2.value       = this.applyForm.ag_email_2.value;
            this.applyForm.ag_adminNameKor_2.value     = this.applyForm.ag_namekor_2.value;
            this.applyForm.ag_adminFirstName_2.value   = this.applyForm.ag_firstName_2.value;
            this.applyForm.ag_adminSecondName_2.value  = this.applyForm.ag_secondName_2.value;
            this.applyForm.ag_adminPost1_2.value       = this.applyForm.ag_post1_2.value;
            this.applyForm.ag_adminPost2_2.value       = this.applyForm.ag_post2_2.value;
            this.applyForm.ag_adminAddrKor_2.value     = this.applyForm.ag_addr_2.value;
            this.applyForm.ag_adminAddrEng_2.value     = this.applyForm.ag_addrEng_2.value;
            this.applyForm.ag_adminTel1_2.value        = this.applyForm.ag_tel1_2.value;
            this.applyForm.ag_adminTel2_2.value        = this.applyForm.ag_tel2_2.value;
            this.applyForm.ag_adminTel3_2.value        = this.applyForm.ag_tel3_2.value;
            this.applyForm.ag_adminFax1_2.value        = this.applyForm.ag_fax1_2.value;
            this.applyForm.ag_adminFax2_2.value        = this.applyForm.ag_fax2_2.value;
            this.applyForm.ag_adminFax3_2.value        = this.applyForm.ag_fax3_2.value;
        }else{
            this.applyForm.ag_adminEmail_2.value       = '';
            this.applyForm.ag_adminNameKor_2.value     = '';
            this.applyForm.ag_adminFirstName_2.value   = '';
            this.applyForm.ag_adminSecondName_2.value  = '';
            this.applyForm.ag_adminPost1_2.value       = '';
            this.applyForm.ag_adminPost2_2.value       = '';
            this.applyForm.ag_adminAddrKor_2.value     = '';
            this.applyForm.ag_adminAddrEng_2.value     = '';
            this.applyForm.ag_adminTel1_2.value        = '';
            this.applyForm.ag_adminTel2_2.value        = '';
            this.applyForm.ag_adminTel3_2.value        = '';
            this.applyForm.ag_adminFax1_2.value        = '';
            this.applyForm.ag_adminFax2_2.value        = '';
            this.applyForm.ag_adminFax3_2.value        = '';
        }
    }else if(seq == '3'){
        if(this.applyForm.adminsame_3.checked){
            this.applyForm.ag_adminEmail_3.value       = this.applyForm.ag_email_3.value;
            this.applyForm.ag_adminNameKor_3.value     = this.applyForm.ag_namekor_3.value;
            this.applyForm.ag_adminFirstName_3.value   = this.applyForm.ag_firstName_3.value;
            this.applyForm.ag_adminSecondName_3.value  = this.applyForm.ag_secondName_3.value;
            this.applyForm.ag_adminPost1_3.value       = this.applyForm.ag_post1_3.value;
            this.applyForm.ag_adminPost2_3.value       = this.applyForm.ag_post2_3.value;
            this.applyForm.ag_adminAddrKor_3.value     = this.applyForm.ag_addr_3.value;
            this.applyForm.ag_adminAddrEng_3.value     = this.applyForm.ag_addrEng_3.value;
            this.applyForm.ag_adminTel1_3.value        = this.applyForm.ag_tel1_3.value;
            this.applyForm.ag_adminTel2_3.value        = this.applyForm.ag_tel2_3.value;
            this.applyForm.ag_adminTel3_3.value        = this.applyForm.ag_tel3_3.value;
            this.applyForm.ag_adminFax1_3.value        = this.applyForm.ag_fax1_3.value;
            this.applyForm.ag_adminFax2_3.value        = this.applyForm.ag_fax2_3.value;
            this.applyForm.ag_adminFax3_3.value        = this.applyForm.ag_fax3_3.value;
        }else{
            this.applyForm.ag_adminEmail_3.value       = '';
            this.applyForm.ag_adminNameKor_3.value     = '';
            this.applyForm.ag_adminFirstName_3.value   = '';
            this.applyForm.ag_adminSecondName_3.value  = '';
            this.applyForm.ag_adminPost1_3.value       = '';
            this.applyForm.ag_adminPost2_3.value       = '';
            this.applyForm.ag_adminAddrKor_3.value     = '';
            this.applyForm.ag_adminAddrEng_3.value     = '';
            this.applyForm.ag_adminTel1_3.value        = '';
            this.applyForm.ag_adminTel2_3.value        = '';
            this.applyForm.ag_adminTel3_3.value        = '';
            this.applyForm.ag_adminFax1_3.value        = '';
            this.applyForm.ag_adminFax2_3.value        = '';
            this.applyForm.ag_adminFax3_3.value        = '';
        }
    }else if(seq == '4'){
        if(this.applyForm.adminsame_4.checked){
            this.applyForm.ag_adminEmail_4.value       = this.applyForm.ag_email_4.value;
            this.applyForm.ag_adminNameKor_4.value     = this.applyForm.ag_namekor_4.value;
            this.applyForm.ag_adminFirstName_4.value   = this.applyForm.ag_firstName_4.value;
            this.applyForm.ag_adminSecondName_4.value  = this.applyForm.ag_secondName_4.value;
            this.applyForm.ag_adminPost1_4.value       = this.applyForm.ag_post1_4.value;
            this.applyForm.ag_adminPost2_4.value       = this.applyForm.ag_post2_4.value;
            this.applyForm.ag_adminAddrKor_4.value     = this.applyForm.ag_addr_4.value;
            this.applyForm.ag_adminAddrEng_4.value     = this.applyForm.ag_addrEng_4.value;
            this.applyForm.ag_adminTel1_4.value        = this.applyForm.ag_tel1_4.value;
            this.applyForm.ag_adminTel2_4.value        = this.applyForm.ag_tel2_4.value;
            this.applyForm.ag_adminTel3_4.value        = this.applyForm.ag_tel3_4.value;
            this.applyForm.ag_adminFax1_4.value        = this.applyForm.ag_fax1_4.value;
            this.applyForm.ag_adminFax2_4.value        = this.applyForm.ag_fax2_4.value;
            this.applyForm.ag_adminFax3_4.value        = this.applyForm.ag_fax3_4.value;
        }else{
            this.applyForm.ag_adminEmail_4.value       = '';
            this.applyForm.ag_adminNameKor_4.value     = '';
            this.applyForm.ag_adminFirstName_4.value   = '';
            this.applyForm.ag_adminSecondName_4.value  = '';
            this.applyForm.ag_adminPost1_4.value       = '';
            this.applyForm.ag_adminPost2_4.value       = '';
            this.applyForm.ag_adminAddrKor_4.value     = '';
            this.applyForm.ag_adminAddrEng_4.value     = '';
            this.applyForm.ag_adminTel1_4.value        = '';
            this.applyForm.ag_adminTel2_4.value        = '';
            this.applyForm.ag_adminTel3_4.value        = '';
            this.applyForm.ag_adminFax1_4.value        = '';
            this.applyForm.ag_adminFax2_4.value        = '';
            this.applyForm.ag_adminFax3_4.value        = '';
        }
    }else if(seq == '5'){
        if(this.applyForm.adminsame_5.checked){
            this.applyForm.ag_adminEmail_5.value       = this.applyForm.ag_email_5.value;
            this.applyForm.ag_adminNameKor_5.value     = this.applyForm.ag_namekor_5.value;
            this.applyForm.ag_adminFirstName_5.value   = this.applyForm.ag_firstName_5.value;
            this.applyForm.ag_adminSecondName_5.value  = this.applyForm.ag_secondName_5.value;
            this.applyForm.ag_adminPost1_5.value       = this.applyForm.ag_post1_5.value;
            this.applyForm.ag_adminPost2_5.value       = this.applyForm.ag_post2_5.value;
            this.applyForm.ag_adminAddrKor_5.value     = this.applyForm.ag_addr_5.value;
            this.applyForm.ag_adminAddrEng_5.value     = this.applyForm.ag_addrEng_5.value;
            this.applyForm.ag_adminTel1_5.value        = this.applyForm.ag_tel1_5.value;
            this.applyForm.ag_adminTel2_5.value        = this.applyForm.ag_tel2_5.value;
            this.applyForm.ag_adminTel3_5.value        = this.applyForm.ag_tel3_5.value;
            this.applyForm.ag_adminFax1_5.value        = this.applyForm.ag_fax1_5.value;
            this.applyForm.ag_adminFax2_5.value        = this.applyForm.ag_fax2_5.value;
            this.applyForm.ag_adminFax3_5.value        = this.applyForm.ag_fax3_5.value;
        }else{
            this.applyForm.ag_adminEmail_5.value       = '';
            this.applyForm.ag_adminNameKor_5.value     = '';
            this.applyForm.ag_adminFirstName_5.value   = '';
            this.applyForm.ag_adminSecondName_5.value  = '';
            this.applyForm.ag_adminPost1_5.value       = '';
            this.applyForm.ag_adminPost2_5.value       = '';
            this.applyForm.ag_adminAddrKor_5.value     = '';
            this.applyForm.ag_adminAddrEng_5.value     = '';
            this.applyForm.ag_adminTel1_5.value        = '';
            this.applyForm.ag_adminTel2_5.value        = '';
            this.applyForm.ag_adminTel3_5.value        = '';
            this.applyForm.ag_adminFax1_5.value        = '';
            this.applyForm.ag_adminFax2_5.value        = '';
            this.applyForm.ag_adminFax3_5.value        = '';
        }
    }
}


// ½Å¿ëÄ«µå °áÁ¦Ã¢ ¶ç¿ì±â ¹× ¹«ÅëÀå ÀÔ±ÝÇÏ±â
function paysecond(card_price, orderid){
    if(this.payForm.paymethod[0].checked == true){
        url = 'https://secure.mypay.net/cart.asp?cmd=pay&theme=card&goodname=À¥È£½ºÆÃ&cardmethod=CARD&mallid=jpsystems&theme=jpsystems_ansim&price='+ card_price+'&empty=1'+'&option1='+orderid+'&buyername='+this.payForm.buyername.value+'&recvtel='+this.payForm.buyertel.value+'&buyertel='+this.payForm.buyertel.value+'&recvname='+this.payForm.buyername.value+'&recvaddr='+this.payForm.address.value ;
        window.open(url,'_mypaynet', 'status=yes, resizable=yes, scrollbars=no, left=220, top=50, width=558, height=600');
    }else if(this.payForm.paymethod[1].checked == true){
        this.payForm.submit();
    }
}

// °áÁ¦¿Ï·á : MyPayNet

// ¿¡·¯½Ã       result     : 0
//              payamount  : 0
//              errmsg     : ¿¡·¯¸Þ½ÃÁö

// Á¤»ó°áÁ¦½Ã   result     : 1
//              payamount  : °áÁ¦¾×
//              errmsg     : ""
/* ÇÑ±ÛÆÄ¶ó¸ÞÅ¸¹®Á¦·Î ¿¡·¯¸Þ½ÃÁö ºÎºÐÀûÀ¸·Î ±â·Ï¾ÈµÊ */
function paycomplete2(orderid, result, payamount, errmsg, orderidpg, type){
    if(type == '021'){ //ÇÏµå¿ë·®Ãß°¡
        opener.location='http://www.humanfuture.co.kr/mypage/add_hard_result.jsp?paymethod=1&orderid='+orderid+'&orderidpg='+orderidpg+'&result='+result+'&payamount='+payamount+'&errmsg='+errmsg;
    }else if(type == '022'){ // MySql¿ë·®Ãß°¡
        opener.location='http://www.humanfuture.co.kr/mypage/add_mysql_result.jsp?paymethod=1&orderid='+orderid+'&orderidpg='+orderidpg+'&result='+result+'&payamount='+payamount+'&errmsg='+errmsg;
    }else if(type == '023'){ // º°µµDB¼¼ÆÃ
        opener.location='http://www.humanfuture.co.kr/mypage/add_db_result.jsp?paymethod=1&orderid='+orderid+'&orderidpg='+orderidpg+'&result='+result+'&payamount='+payamount+'&errmsg='+errmsg;
    }else if(type == '024'){ // ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃ
        opener.location='http://www.humanfuture.co.kr/mypage/add_multi_result.jsp?paymethod=1&orderid='+orderid+'&orderidpg='+orderidpg+'&result='+result+'&payamount='+payamount+'&errmsg='+errmsg;
    }else if(type == '025'){ // ÀÌ¸ÞÀÏ°èÁ¤Ãß°¡
        opener.location='http://www.humanfuture.co.kr/mypage/add_emailaccount_result.jsp?paymethod=1&orderid='+orderid+'&orderidpg='+orderidpg+'&result='+result+'&payamount='+payamount+'&errmsg='+errmsg;
    }else if(type == '026'){ // Æ®·¡ÇÈÃß°¡
        opener.location='http://www.humanfuture.co.kr/mypage/add_traffic_result.jsp?paymethod=1&orderid='+orderid+'&orderidpg='+orderidpg+'&result='+result+'&payamount='+payamount+'&errmsg='+errmsg;
    }else if(type == '031'){ // °èÁ¤¿¬Àå½ÅÃ»
        opener.location='http://www.humanfuture.co.kr/mypage/add_prolong_result.jsp?paymethod=1&orderid='+orderid+'&orderidpg='+orderidpg+'&result='+result+'&payamount='+payamount+'&errmsg='+errmsg;
    }else if(type == '1'){
        opener.location='http://www.humanfuture.co.kr/apply/apply4_result.jsp?paymethod=1&orderid='+orderid+'&orderidpg='+orderidpg+'&result='+result+'&payamount='+payamount+'&errmsg='+errmsg;
    }else if(type == '99'){  // ±âÅ¸±Ý¾×°áÁ¦
        opener.location='http://www.humanfuture.co.kr/support/support_etcresult.jsp?paymethod=1&orderid='+orderid+'&orderidpg='+orderidpg+'&result='+result+'&payamount='+payamount+'&errmsg='+errmsg;
    }
}


/* ¿ø°Ý ¹®¼­ ParentÀÇ Form¿¡ ´ëÇØ ½ÂÀÎ±ÇÇÑ¾øÀ½ 
function paycomplete2(orderid, result, payamount, errmsg, orderidpg){
       alert(orderid);
       alert(result);
       alert(payamount);
       alert(errmsg);
       alert(orderidpg);

       opener.cardPayForm.paymethod.value='1';
       opener.cardPayForm.orderid.value=orderid;
       opener.cardPayForm.result.value=result;
       opener.cardPayForm.payamount.value=payamount;
       opener.cardPayForm.errmsg.value=errmsg;
       opener.cardPayForm.orderidpg.value=orderidpg;
       opener.cardPayForm.action="./apply4_resutl.jsp";
       opener.cardPayForm.submit();
}
*/

function changePayWay(type, domain, extend){
    this.location = "./apply2_form.jsp?type="+type+"&domain="+domain+"&extend="+extend+"&product="+this.applyForm.product.value;
}

function chkPayway(){
    if(!(this.applyForm.product.value=='101' || this.applyForm.product.value=='104'  || this.applyForm.product.value=='107'  || this.applyForm.product.value=='110')){
        alert("°¢Á¾Ãß°¡½ÅÃ»Àº ¿¬´ÜÀ§ ¿ä±ÝÁ¦ ½ÅÃ»½Ã °¡´ÉÇÕ´Ï´Ù.");
        this.applyForm.addhard.value='0';
        this.applyForm.addmysql.value='0';
        this.applyForm.addmail.value='0';
        this.applyForm.addtraffic.value='0';
        this.applyForm.addmulti.value='0';
    }
}

function chooseTomcat(){
    if(this.applyForm.product.value > '106'){
        //this.applyForm.t_ver.value='';
    }else if(this.applyForm.product.value < '107'){
        //this.applyForm.t_ver.value='0';
	}
}

function login(){
    alert("È¸¿øÀü¿ë¸Þ´ºÀÔ´Ï´Ù.");
}

function soon(){
    alert("Á¦°ø ¿¹Á¤ÀÔ´Ï´Ù.");
}

function openNewWindow(url){
    window.open(url,"_new");
}

function accountSel(){
    this.location = './add_mysql_main.jsp?accountSel='+this.mysqlForm.account.value;
}

function accountSelMulti(){
    this.location = './add_multi_main.jsp?accountSel='+this.multiForm.account.value;
}

function multiApply(){ //¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃ¿äÃ»
    if(trim(this.multiForm.domain.value) == ''){
        alert('¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃÀ» Èñ¸ÁÇÏ´Â\nµµ¸ÞÀÎÀ»ÀÔ·ÂÇØÁÖ¼¼¿ä.');
        this.multiForm.domain.focus();
    }else{
        multiApplySubmit();
    }
}

function multiApplySubmit(){
    if(this.multiForm.agency.value == '0'){// µµ¸ÞÀÎµî·Ï´ëÇàÇÊ¿ä¾øÀ½
        this.multiForm.action = "../mypage/add_multi_confirm.jsp";
        this.multiForm.submit();
    }else if(this.multiForm.agency.value == '1'){//µµ¸ÞÀÎµî·Ï´ëÇàÇÊ¿ä
        this.multiForm.action = "../mypage/add_multi_domain.jsp";
        this.multiForm.submit();
    }
}


function applyDomainMulti(extend){ //¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃ½ÅÃ»½Ã µµ¸ÞÀÎµî·Ï´ëÇà½ÅÃ»
    if(this.applyForm.ag_email.value == ''){
        alert('ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_email.focus();
    }else if(this.applyForm.ag_namekor.value == ''){
        alert('ÇÑ±Û¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_namekor.focus();
    }else if(this.applyForm.ag_ssn1.value == ''){
        alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_ssn1.focus();
    }else if(this.applyForm.ag_ssn2.value == ''){
        alert('ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_ssn2.focus();
    }else if(this.applyForm.ag_firstName.value == ''){
        alert('¿µ¹®¸í(ÀÌ¸§)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_firstName.focus();
    }else if(this.applyForm.ag_secondName.value == ''){
        alert('¿µ¹®¸í(¼º)À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_secondName.focus();
    }else if(this.applyForm.ag_post1.value == ''){
        alert('¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_post1.focus();
    }else if(this.applyForm.ag_post2.value == ''){
        alert('¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_post2.focus();
    }else if(this.applyForm.ag_addr.value == ''){
        alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_addr.focus();
    }else if(this.applyForm.ag_addrEng.value == ''){
        alert('ÁÖ¼Ò¸¦ ¿µ¹®¸íÀ¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_addrEng.focus();
    }else if(this.applyForm.ag_tel1.value == ''){
        alert('ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_tel1.focus();
    }else if(this.applyForm.ag_tel2.value == ''){
        alert('ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_tel2.focus();
    }else if(this.applyForm.ag_tel3.value == ''){
        alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_tel3.focus();
    }else if(this.applyForm.ag_orgkor.value == ''){
        alert('±â°ü¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ´ë½Å ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
        this.applyForm.ag_orgkor.focus();
    }else if(this.applyForm.ag_orgeng.value == ''){
        alert('±â°ü¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n°³ÀÎ½ÅÃ»½Ã ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.');
        this.applyForm.ag_orgeng.focus();
    }else if((extend == 'co.kr' || extend == 'or.kr') && this.applyForm.ag_papernum.value == ''){
        alert('µî·ÏÁõ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n'+extend+' µµ¸ÞÀÎÀÇ ½ÅÃ»¿¡ ÇÊ¼öÀûÀÎ »çÇ×ÀÔ´Ï´Ù.');
        this.applyForm.ag_papernum.focus();
    }else if(this.applyForm.ag_adminEmail.value == ''){
        alert('°ü¸®ÀÚ ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminEmail.focus();
    }else if(this.applyForm.ag_adminNameKor.value == ''){
        alert('°ü¸®ÀÚ ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminNameKor.focus();
    }else if(this.applyForm.ag_adminFirstName.value == ''){
        alert('°ü¸®ÀÚ ¼º¸íÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminFirstName.focus();
    }else if(this.applyForm.ag_adminSecondName.value == ''){
        alert('°ü¸®ÀÚ ¼ºÀ» ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminSecondName.focus();
    }else if(this.applyForm.ag_adminPost1.value == ''){
        alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminPost1.focus();
    }else if(this.applyForm.ag_adminPost2.value == ''){
        alert('°ü¸®ÀÚ ¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminPost2.focus();
    }else if(this.applyForm.ag_adminAddrKor.value == ''){
        alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminAddrKor.focus();
    }else if(this.applyForm.ag_adminAddrEng.value == ''){
        alert('°ü¸®ÀÚ ÁÖ¼Ò¸¦ ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminAddrEng.focus();
    }else if(this.applyForm.ag_adminTel1.value == ''){
        alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminTel1.focus();
    }else if(this.applyForm.ag_adminTel2.value == ''){
        alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminTel2.focus();
    }else if(this.applyForm.ag_adminTel3.value == ''){
        alert('°ü¸®ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.applyForm.ag_adminTel3.focus();
    }else{
        this.applyForm.submit();
    }
}


// ¸ÖÆ¼µµ¸ÞÀÎ¼¼ÆÃ¿äÃ»½Ã ÁÖ¼Ò°Ë»öÃ¢ ¿­±â(µµ¸ÞÀÎµî·Ï´ëÇà)
function openPost2DomainMulti(admin){
     window.open('../popup/postSearchDomainMulti.jsp?admin='+admin, '_postSearch', 'status=no , resizable=yes, scrollbars=yes,left=250 , top=150, width=392, height=234');
}


// ÁÖ¼Ò°Ë»öÃ¢¿¡¼­ ÁÖ¼ÒÃ¤¿ì°í »ç¶óÁö±â(¸ÖÆ¼µµ¸ÞÀÎ¿¡¼­ÀÇ µµ¸ÞÀÎµî·Ï´ëÇà)
function fillAddress2DomainMulti(admin,postZipCode1, postZipCode2, address){ 
    if(admin == '0'){
        opener.applyForm.ag_post1.value = postZipCode1;
        opener.applyForm.ag_post2.value = postZipCode2;
        opener.applyForm.ag_addr.focus();
        opener.applyForm.ag_addr.value = address;
        this.close();
    }else if(admin == '1'){
        opener.applyForm.ag_adminPost1.value = postZipCode1;
        opener.applyForm.ag_adminPost2.value = postZipCode2;
        opener.applyForm.ag_adminAddrKor.focus();
        opener.applyForm.ag_adminAddrKor.value = address;
        this.close();
    }
}

// ÁÖ¼Ò°Ë»ö°á°úÃ¢ ¿­±â(¸ÖÆ¼µµ¸ÞÀÎ¿¡¼­ÀÇ µµ¸ÞÀÎµî·Ï´ëÇà)
function openPostResult2DomainMulti(admin){
     if(this.postSearchForm.dong.value !=  null && this.postSearchForm.dong.value != ''){
         window.resizeTo( 404, 450);
         this.postSearchForm.submit();
     }else{
         alert("°Ë»öÇÒ µ¿¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
         this.postSearchForm.dong.focus();
     }
}

function domainSameMulti(){
        if(this.applyForm.adminsame.checked){
            this.applyForm.ag_adminEmail.value       = this.applyForm.ag_email.value;
            this.applyForm.ag_adminNameKor.value     = this.applyForm.ag_namekor.value;
            this.applyForm.ag_adminFirstName.value   = this.applyForm.ag_firstName.value;
            this.applyForm.ag_adminSecondName.value  = this.applyForm.ag_secondName.value;
            this.applyForm.ag_adminPost1.value       = this.applyForm.ag_post1.value;
            this.applyForm.ag_adminPost2.value       = this.applyForm.ag_post2.value;
            this.applyForm.ag_adminAddrKor.value     = this.applyForm.ag_addr.value;
            this.applyForm.ag_adminAddrEng.value     = this.applyForm.ag_addrEng.value;
            this.applyForm.ag_adminTel1.value        = this.applyForm.ag_tel1.value;
            this.applyForm.ag_adminTel2.value        = this.applyForm.ag_tel2.value;
            this.applyForm.ag_adminTel3.value        = this.applyForm.ag_tel3.value;
            this.applyForm.ag_adminFax1.value        = this.applyForm.ag_fax1.value;
            this.applyForm.ag_adminFax2.value        = this.applyForm.ag_fax2.value;
            this.applyForm.ag_adminFax3.value        = this.applyForm.ag_fax3.value;
        }else{
            this.applyForm.ag_adminEmail.value       = '';
            this.applyForm.ag_adminNameKor.value     = '';
            this.applyForm.ag_adminFirstName.value   = '';
            this.applyForm.ag_adminSecondName.value  = '';
            this.applyForm.ag_adminPost1.value       = '';
            this.applyForm.ag_adminPost2.value       = '';
            this.applyForm.ag_adminAddrKor.value     = '';
            this.applyForm.ag_adminAddrEng.value     = '';
            this.applyForm.ag_adminTel1.value        = '';
            this.applyForm.ag_adminTel2.value        = '';
            this.applyForm.ag_adminTel3.value        = '';
            this.applyForm.ag_adminFax1.value        = '';
            this.applyForm.ag_adminFax2.value        = '';
            this.applyForm.ag_adminFax3.value        = '';
        }
}


function accountSelMail(){
    this.location = './add_email_main.jsp?accountSel='+this.emailForm.account.value;
}

// ½Å¿ëÄ«µå °áÁ¦Ã¢ ¶ç¿ì±â ¹× ¹«ÅëÀå ÀÔ±ÝÇÏ±â
function paySecondGeneral(card_price, orderid, type){
	/*
    if(this.payForm.paymethod[0].checked == true){
        //url = 'https://secure.mypay.net/cart.asp?cmd=pay&theme=card&goodname=À¥È£½ºÆÃ&cardmethod=CARD&mallid=jpsystems&theme=jpsystems_ansim&price='+ card_price+'&empty=1'+'&option1='+orderid+'&option2='+type+'&buyername='+this.payForm.buyername.value+'&recvtel='+this.payForm.buyertel.value+'&buyertel='+this.payForm.buyertel.value+'&recvname='+this.payForm.buyername.value+'&recvaddr='+this.payForm.address.value ;
        //window.open(url,'_mypaynet', 'status=yes, resizable=yes, scrollbars=no, left=220, top=50, width=558, height=600');
		alert('PGÀÌ°üÀÛ¾÷À¸·Î ÀÎÇÏ¿©\nÇÑ½ÃÀûÀ¸·Î ½Å¿ëÄ«µå°áÁ¦°¡ ÀÌ¿ëºÒ°¡ÇÕ´Ï´Ù.\nÀÓ½Ã·Î ¹«ÅëÀåÀÔ±ÝÀÌ ÀÌ¿ë°¡´ÉÇÏ¿À´Ï\n¸ÞÀÎÆäÀÌÁöÀÇ ÀÔ±Ý°èÁÂ¸¦ ÀÌ¿ëÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.\n°¨»çÇÕ´Ï´Ù.');
    }else if(this.payForm.paymethod[1].checked == true){
	*/
	    this.payForm.paymethod.value = '0';
        this.payForm.submit();
	/*
    }
	*/
}

// ±âÅ¸±Ý¾×°áÁ¦(½Å¿ëÄ«µåÀü¿ë)
function paySecondGeneralOut(card_price, orderid, type){
    //url = 'https://secure.mypay.net/cart.asp?cmd=pay&theme=card&goodname=À¥È£½ºÆÃ&cardmethod=CARD&mallid=jpsystems&theme=jpsystems_ansim&price='+ card_price+'&empty=1'+'&option1='+orderid+'&option2='+type+'&buyername='+this.payForm.buyername.value+'&recvtel='+this.payForm.buyertel.value+'&buyertel='+this.payForm.buyertel.value+'&recvname='+this.payForm.buyername.value+'&recvaddr='+this.payForm.address.value ;
    //window.open(url,'_mypaynet', 'status=yes, resizable=yes, scrollbars=no, left=220, top=50, width=558, height=600');
	alert('KCP·ÎÀÇ PGÀÌ°üÀÛ¾÷À¸·Î ÀÎÇÏ¿©\nÇÑ½ÃÀûÀ¸·Î ½Å¿ëÄ«µå°áÁ¦°¡ ÀÌ¿ëºÒ°¡ÇÕ´Ï´Ù.\nÀÓ½Ã·Î ¹«ÅëÀåÀÔ±ÝÀÌ ÀÌ¿ë°¡´ÉÇÏ¿À´Ï\n¸ÞÀÎÆäÀÌÁöÀÇ ÀÔ±Ý°èÁÂ¸¦ ÀÌ¿ëÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.\n°¨»çÇÕ´Ï´Ù.');
}

// ±âÅ¸±Ý¾×°áÁ¦Å×½ºÆ® ISPÀû¿ë (½Å¿ëÄ«µåÀü¿ë)
function paySecondGeneralOutTest(card_price, orderid, type){
    url = 'https://secure.mypay.net/cart.asp?cmd=pay&theme=card&goodname=À¥È£½ºÆÃ&cardmethod=CARD&mallid=jpsystems&theme=jpsystems_ansim&price='+ card_price+'&empty=1'+'&option1='+orderid+'&option2='+type+'&buyername='+this.payForm.buyername.value+'&recvtel='+this.payForm.buyertel.value+'&buyertel='+this.payForm.buyertel.value+'&recvname='+this.payForm.buyername.value+'&recvaddr='+this.payForm.address.value ;
    window.open(url,'_mypaynet', 'status=yes, resizable=no, scrollbars=no, left=220, top=50, width=558, height=600');
}









    function  jsf__pay( form )
    {
		/*
		alert('jsf__pay');
		alert(document.Payplus);
		alert(document.Payplus.object);
		*/

        if( document.Payplus.object == null )
        {
            openwin = window.open( '/kcp/chk_plugin.html', 'chk_plugin', 'width=420, height=100, top=300, left=300' );
        }

        if ( MakePayMessage( form ) == true )
        {
            openwin = window.open( '/kcp/proc_win.html', 'proc_win', 'width=449, height=209, top=300, left=300' );
            return  true;
        }
        else
        {
            return  false;
        }
    }

// ½Å¿ëÄ«µå °áÁ¦Ã¢ ¶ç¿ì±â
function payKCP(card_price, orderid, type){
    if(this.payForm.paymethod[0].checked == true){
	    // alert('test2');
		if(jsf__pay(this.payForm)){
		    this.payForm.action = "/kcp/pp_ax_hub.jsp";
			this.payForm.submit();
	    }

    }else if(this.payForm.paymethod[1].checked == true){
        this.payForm.submit();
    }
}






function accountSelProlong(){
    this.location = './add_prolong_main.jsp?accountSel='+this.prolongForm.account.value;
}

function monthChange(accountSel){
    this.location = './add_prolong_main.jsp?accountSel='+accountSel+'&month='+this.prolongForm.addterm.value;
}

function domainTermChange(accountSel,month, domainyearcount){
    var domaincountall = this.prolongForm.domaincountall.value;
    var domainyearsel  = '';
    if(domaincountall == 1){
        domainyearsel = this.prolongForm.domainyear.value;
    }else{
        domainyearsel = this.prolongForm.domainyear[domainyearcount-1].value;
    }
    var yearoriginal   = '';
    if(domaincountall == 1){
            yearoriginal = yearoriginal+'&yearoriginal_0='+this.prolongForm.domainyear.value;
    }else{
        for(i=0;i<domaincountall;i++){
            //if(i!=(domainyearcount-1)){
            yearoriginal = yearoriginal+'&yearoriginal_'+i+'='+this.prolongForm.domainyear[i].value;
            //}
        }
    }
    //alert(accountSel+'    '+ month +'    '+ domainyearcount +'    '+  domainyearsel+'    '+  yearoriginal);
    this.location = './add_prolong_main.jsp?accountSel='+accountSel+'&month='+month+'&domainyearcount='+domainyearcount
                  + '&domainyear='+domainyearsel
                  + yearoriginal;
}


function searchTechSupportBySeq(seq,seqtemp){
    this.itemForm.seq.value = seq;
    this.itemForm.seqtemp.value = seqtemp;
    this.itemForm.submit();
}


// ¼¼±Ý°è»ê¼­ ½ÅÃ»
function taxApply(){
    if(trim(this.taxForm.business1.value) == ''){
        alert('»ç¾÷ÀÚµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä');
        this.taxForm.business1.focus();
    }else if(trim(this.taxForm.business2.value) == ''){
        alert('»ç¾÷ÀÚµî·Ï¹øÈ£ µÎ¹øÂ° ÀÚ¸®¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä');
        this.taxForm.business2.focus();
    }else if(trim(this.taxForm.business3.value) == ''){
        alert('»ç¾÷ÀÚµî·Ï¹øÈ£ ¼¼¹øÂ° ÀÚ¸®¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä');
        this.taxForm.business3.focus();
    }else if(trim(this.taxForm.name.value) == ''){
        alert('½ÅÃ»ÀÎ ¼º¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä');
        this.taxForm.name.focus();
    }else if(trim(this.taxForm.tel.value) == ''){
        alert('½ÅÃ»ÀÎ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.taxForm.tel.focus();
    }else if(trim(this.taxForm.email.value) == ''){
        alert('½ÅÃ»ÀÎ ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.taxForm.email.focus();
    }else if(trim(this.taxForm.companyname.value) == ''){
        alert('»óÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.taxForm.companyname.focus();
    }else if(trim(this.taxForm.represent.value) == ''){
        alert('´ëÇ¥ÀÚ¼º¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä');
        this.taxForm.represent.focus();
    }else if(trim(this.taxForm.post1.value) == ''){
        alert('¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.taxForm.post1.focus();
    }else if(trim(this.taxForm.post2.value) == ''){
        alert('¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.taxForm.post2.focus();
    }else if(trim(this.taxForm.address.value) == ''){
        alert('»ç¾÷Àå ¼ÒÀçÁö¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.taxForm.address.focus();
    }else if(trim(this.taxForm.businesstype.value) == ''){
        alert('¾÷ÅÂ¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.taxForm.businesstype.focus();
    }else if(trim(this.taxForm.businesskind.value) == ''){
        alert('Á¾¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.taxForm.businesskind.focus();
    }else{
        this.taxForm.submit();
    }
}

//±âÅ¸±Ý¾×°áÁ¦
function orderingOut(){
    if(trim(this.etcForm.namekor.value) == ''){
        alert('½ÅÃ»ÀÎ ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.etcForm.namekor.focus();
    }else if(trim(this.etcForm.total.value) == ''){
        alert('°áÁ¦±Ý¾×À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.etcForm.total.focus();
    }else if(!checkNumber(this.etcForm.total.value)){
        alert('¼ýÀÚ¸¦ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.');
        this.etcForm.total.value='';
        this.etcForm.total.focus();
    }else if(trim(this.etcForm.total.value) < 1000){
        alert('½Å¿ëÄ«µå°áÁ¦´Â 1000¿ø ÀÌ»óºÎÅÍ °¡´ÉÇÕ´Ï´Ù.');
        this.etcForm.total.value='';
        this.etcForm.total.focus();
    }else if(trim(this.etcForm.demand.value) == ''){
        alert('ÁÖ¹®»çÇ×À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.etcForm.demand.focus();
    }else{
        this.etcForm.submit();
    }
}


// ¼ýÀÚÃ¼Å©
function checkNumber(num) { 
        flag         = true;
        val          = num; 
        new_val = ''; 
        for(i=0;i<val.length;i++) { 
                char = val.substring(i,i+1); 
                if (char < '0' || char > '9') { 
                        flag = false;
                        return false; 
                }else{ 
                        new_val = new_val + char; 
                } 
        }
        if(flag) return true;
}

// °øÁö»çÇ×¿­±â
function openNotice(url){
     window.open(url, '_notice', 'status=no , resizable=no, scrollbars=no,left=395 , top=30, width=400, height=510');
}

// °øÁö»çÇ×¿­±â
function openEvent1(url){
     window.open(url, '_event1', 'status=no , resizable=no, scrollbars=no,left=20, top=20, width=400, height=510');
}


function openEvent2(url){
     window.open(url, '_event2', 'status=no , resizable=no, scrollbars=no,left=370 , top=180, width=400, height=510');
}

/*
function openEvent3(url){
     window.open(url, '_event1', 'status=no , resizable=no, scrollbars=no,left=20, top=20, width=400, height=595');
}
*/
function openEvent3(url){
     window.open(url, '_event1', 'status=no , resizable=no, scrollbars=no,left=20, top=20, width=377, height=555');
}

function openEvent4(url){
     window.open(url, '_event2', 'status=no , resizable=no, scrollbars=no,left=370 , top=130, width=400, height=516');
}

function openEvent5(url){
     window.open(url, '_event2', 'status=no , resizable=no, scrollbars=no,left=20 , top=20, width=400, height=510');
}

function openAccident(url){ //»ç°í¾È³»
     window.open(url, '_event1', 'status=no , resizable=no, scrollbars=no,left=20, top=20, width=400, height=600');
}


// ¹®ÀÇ¸ÞÀÏ·Î °¡±â
function supportMail(address, kind){
    this.mailForm.address.value=address;
    this.mailForm.kind.value=kind;
    this.mailForm.submit();
}

// ¹®ÀÇ¸ÞÀÏº¸³»±â
function sendSupportMail(){
    if(trim(this.mailForm.sender.value)==''){
        alert('È¸½Å¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.mailForm.sender.focus();
    }else if(this.mailForm.sender.value.indexOf('@') == -1){
        alert('À¯È¿ÇÏÁö ¾ÊÀº ¸ÞÀÏÁÖ¼ÒÀÔ´Ï´Ù.');
        this.mailForm.sender.focus();
    }else if(this.mailForm.sender.value.indexOf('@') != -1 && trim(this.mailForm.sender.value.substring(this.mailForm.sender.value.indexOf('@')+1,this.mailForm.sender.value.indexOf('@')+2)) == ''){
        alert('À¯È¿ÇÏÁö ¾ÊÀº ¸ÞÀÏÁÖ¼ÒÀÔ´Ï´Ù.');
        this.mailForm.sender.focus();
    }else{
        this.mailForm.submit();
    }
}

// È¨ÆäÀÌÁöÁ¦ÀÛ, °³¹ßÀÇ·Ú, À¯Áöº¸¼ö¸ÞÀÏÁ¢¼ö, ¹«ÅëÀåÀÔ±Ý³»¿ª¾Ë¸²Àå
function sendMail(){
    if(trim(this.mailForm.sender.value)==''){
        alert('È¸½Å¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.mailForm.sender.focus();
    }else if(this.mailForm.sender.value.indexOf('@') == -1){
        alert('À¯È¿ÇÏÁö ¾ÊÀº ¸ÞÀÏÁÖ¼ÒÀÔ´Ï´Ù.');
        this.mailForm.sender.focus();
    }else if(this.mailForm.sender.value.indexOf('@') != -1 && trim(this.mailForm.sender.value.substring(this.mailForm.sender.value.indexOf('@')+1,this.mailForm.sender.value.indexOf('@')+2)) == ''){
        alert('À¯È¿ÇÏÁö ¾ÊÀº ¸ÞÀÏÁÖ¼ÒÀÔ´Ï´Ù.');
        this.mailForm.sender.focus();
    }else{
        this.mailForm.submit();
    }
}

function gotoMain(){
    this.location="../inc/index.jsp"
}

// trim ÇÔ¼ö Ãß°¡
function trim(inputString) {
   // Removes leading and trailing spaces from the passed string. Also removes
   // consecutive spaces and replaces it with one space. If something besides
   // a string is passed in (null, custom object, etc.) then return the input.
   if (typeof inputString != "string") { return inputString; }
   var retValue = inputString;
   var ch = retValue.substring(0, 1);
   while (ch == " ") { // Check for spaces at the beginning of the string
      retValue = retValue.substring(1, retValue.length);
      ch = retValue.substring(0, 1);
   }
   ch = retValue.substring(retValue.length-1, retValue.length);
   while (ch == " ") { // Check for spaces at the end of the string
      retValue = retValue.substring(0, retValue.length-1);
      ch = retValue.substring(retValue.length-1, retValue.length);
   }
   while (retValue.indexOf("  ") != -1) { // Note that there are two spaces in the string - look for multiple spaces within the string
      retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); // Again, there are two spaces in each of the strings
   }
   return retValue; // Return the trimmed string back to the user
} // Ends the "trim" function



// È¸¿øÁ¤º¸¼öÁ¤
function modifyMember(){
    if((this.memberForm.passMember.value.length<4) || (this.memberForm.passMember.value.length>12)){
        alert('ºñ¹Ð¹øÈ£´Â 4ÀÚ ÀÌ»ó 12ÀÚ ÀÌÇÏÀÇ ¿µ¹®¼Ò¹®ÀÚ ¹× ¼ýÀÚ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
        this.memberForm.passMember.focus();
    }else if(this.memberForm.passMember.value != this.memberForm.pass2.value){
        alert('ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.');
        this.memberForm.passMember.value='';
        this.memberForm.pass2.value='';
        this.memberForm.passMember.focus();
    }else if(this.memberForm.namekor.value == ''){
        alert('¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
        this.memberForm.namekor.focus();
    }else if(this.memberForm.ssn1.value == ''){
        alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.ssn1.focus();
    }else if(this.memberForm.ssn2.value == ''){
        alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.ssn2.focus();
    }else if(this.memberForm.email.value == ''){
        alert("°í°´´Ô²² ¿¬¶ôÀ» À§ÇÑ emailÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.email.focus();
    }else if(this.memberForm.tel1.value == ''){
        alert("ÀüÈ­¹øÈ£ Áö¿ª¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.tel1.focus();
    }else if(this.memberForm.tel2.value == ''){
        alert("ÀüÈ­ ±¹¹øÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.tel2.focus();
    }else if(this.memberForm.tel3.value == ''){
        alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.tel3.focus();
    }else if(this.memberForm.post1.value == ''){
        alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.post1.focus();
    }else if(this.memberForm.post2.value == ''){
        alert("¿ìÆí¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.post2.focus();
    }else if(this.memberForm.address.value == ''){
        alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        this.memberForm.address.focus();
    }else{
        this.memberForm.submit();
    }
}

function findIdPass(){
    window.open('../popup/find.jsp', '_find', 'status=no , resizable=no, left=200 , top=30, width=545, height=650');
}

function passSearchLogin(){
    opener.location = '../mypage/mypage_main.jsp?id=' + passSuccessForm.id.value + '&pass=' + passSuccessForm.pass.value;
    this.close();
}

function openChangeId(){
    window.open('../popup/changeId.jsp?custno=' + this.idChangeForm.custno.value + '&id=' + this.idChangeForm.id.value+ '&pass=' + this.idChangeForm.pass.value, '_changeId', 'status=no , resizable=no, left=200 , top=30, width=482, height=260');
}

function chnageIdConfirm(){
    this.changeIdConfirmForm.submit();
}

function openSkin(url){
    window.open('../mypage/previewSkin.jsp?url='+url, '_preview',  'status=no , resizable=no, left=150, top=150, width=610, height=515');
}

function openSkin_gb(url){
    window.open('../mypage/previewSkin.jsp?url='+url, '_preview_gb',  'status=no , resizable=no, left=150, top=50, width=616, height=688');
}


function open30(){
    window.open('../popup/30_pop.htm', '_30guarantee', 'status=no , resizable=no, left=400, top=150, width=385, height=365');
}


function techSearch(){
    if(this.techSupportSearchForm.searchword.value.indexOf('%') != -1){
        alert('°Ë»ö¾î·Î % ´Â »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.');
        return false;
    }else if(this.techSupportSearchForm.searchword.value.length < 2){
        alert('°Ë»ö¾î´Â ÃÖ¼Ò 2ÀÚ ÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.');
        return false;
    }else{
        return true;
    }
}


//2003.09.23 ¼­¹öÈ¯°æÃß°¡
function openServer(server){
     window.open('serverInfo.jsp?server='+server, '_serverInfo',  'status=no , resizable=no,scrollbars=no, left=500 , top=10, width=380, height=380');
}
