/home/mjc1/public_html/html/m/join_reg.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
<?php include_once("./_common2.php"); ?>
<?php
include("./include/header.php");

if(!(
$_GET['agreeText1']==&& $_GET['agreeText2']==1) && !(isset($memberRow))){
?>
    
    <script>
        alert("회원가입 이용약관 동의 하셔야 합니다.");    
        document.location.href="join_renew_terms.php";
    </script>
<?php
    
exit;
}
?>


<!-- **********************
'//업종 선택 스크립트
*********************** -->
<script>
function UpJongSelect(UJong){

    if (UJong !== '직접입력') {

        memberJoin.upjong.value = UJong;

    } else {

        memberJoin.upjong.value = "";
        window.document.memberJoin.upjong.focus();

    }

}
</script>
<script src="https://spi.maps.daum.net/imap/map_js_init/postcode.v2.js"></script>
<script>

function postSearch(){
    
    window.open("../../manage/postSearch.php","","width=440,height=400,scrollbars=yes");
    
}
function postSearch2(){
    
    window.open("../../manage/postSearch_doro.php","","width=440,height=400,scrollbars=yes");
    
}

function postSearch3(zip1,zip2,addr1){
    new daum.Postcode({
        oncomplete: function(data) {
        // 팝업에서 검색결과 항목을 클릭했을때 실행할 코드를 작성하는 부분입니다.
        // 예제를 참고하여 다양한 활용법을 확인해 보세요.
            zoncode1 = data.zonecode.substring(0,3);
            zoncode2 = data.zonecode.substring(3,5);

            if(1==1){ // 5자리 우편번호 사용  이전꺼 사용시엔 1==2로 세팅
                $("#"+zip1).val(data.zonecode);
                /* $("#"+zip1).val(zoncode1); $("#"+zip2).val(zoncode2); */
            } else {
                $("#"+zip1).val(data.postcode1);
                $("#"+zip2).val(data.postcode2);
            }

              // 각 주소의 노출 규칙에 따라 주소를 조합한다.
            // 내려오는 변수가 값이 없는 경우엔 공백('')값을 가지므로, 이를 참고하여 분기 한다.
            var fullAddr = ''; // 최종 주소 변수
            var extraAddr = ''; // 조합형 주소 변수

            // 사용자가 선택한 주소 타입에 따라 해당 주소 값을 가져온다.
            if (data.userSelectedType === 'R') { // 사용자가 도로명 주소를 선택했을 경우
                fullAddr = data.roadAddress;

            } else { // 사용자가 지번 주소를 선택했을 경우(J)
                fullAddr = data.jibunAddress;
            }

            // 사용자가 선택한 주소가 도로명 타입일때 조합한다.
            if(data.userSelectedType === 'R'){
                //법정동명이 있을 경우 추가한다.
                if(data.bname !== ''){
                    extraAddr += data.bname;
                }
                // 건물명이 있을 경우 추가한다.
                if(data.buildingName !== ''){
                    extraAddr += (extraAddr !== '' ? ', ' + data.buildingName : data.buildingName);
                }
                // 조합형주소의 유무에 따라 양쪽에 괄호를 추가하여 최종 주소를 만든다.
                extraAddr = (extraAddr !== '' ? ' ('+ extraAddr +')' : '');
            }

            $("#"+addr1).val(fullAddr+" "+extraAddr+" ");
            $("#"+addr1).focus();
            alert('나머지 주소를 입력하시기 바랍니다.')
        }
    }).open();
}

function memberReg(){

<?php if($_SERVER['REMOTE_ADDR']=='58.151.27.172'){?>
    /*if($("input[name='captcha_input']").val()==''){
         alert("스팸방지 보안을 입력 하시기 바랍니다.");
        return;
    }
    memberJoin.submit();
    return;*/
<?php ?>

    if(memberJoin.Mid.value.trim() == ""){
        
        alert("회원 아이디를 입력하세요");
        memberJoin.Mid.focus();
            return;
    }

    if(memberJoin.Mpassword1.value == ""){
        
        alert("회원 비밀번호를 입력하세요");
        memberJoin.Mpassword1.focus();
        return;
    }
    
    if(memberJoin.Mpassword2.value == ""){
        
        alert("회원 비밀번호를 입력하세요");
        memberJoin.Mpassword2.focus();
        return;
    }
    
    if( memberJoin.Mpassword1.value != memberJoin.Mpassword2.value){
        
        alert("비밀번호가 일치하지 않습니다.확인해 주세요");
        memberJoin.Mpassword1.focus();
        return;
    }

    var special_pattern = /[\/:?#@&]/gi;
    if(special_pattern.test(memberJoin.Mpassword1.value)) {
        alert("비밀번호에 특수문자(/:?#@&)가 포함되어있습니다.");
        return;
    }
    
    if(memberJoin.Mname.value == ""){
        
        alert("회원 이름을 입력하세요");
        memberJoin.Mname.focus();
        return;
    }
    
    /*if(memberJoin.jumin2.value == ""){
        alert("주민등록 뒷자리를 입력하세요");
        memberJoin.jumin2.focus();
        return;
        
    }*/

    if(memberJoin.upjong.value == ""){
        
        alert("업종을 선택 또는 직접 입력하세요.");
        memberJoin.upjong.focus();
        return;    
    }

    if(memberJoin.post1.value == "" || memberJoin.Madd.value == ""){
        
        alert("주소를 입력 입력하세요.");
        memberJoin.Madd.focus();
        return;    
    }


    if(memberJoin.tel.value == ""){
        
        alert("연락처를 입력하세요.");
        memberJoin.tel.focus();
        return;    
    }


    if(memberJoin.Memail.value == ""){
        
        alert("이메일 주소를 입력하세요.");
        memberJoin.Memail.focus();
        return;
    }


    if(memberJoin.Mpassword1.value.length < 10){
        
        alert("개인정보 취급방침에 따라 비밀번호는 10자리 이상으로 입력바랍니다.");
        memberJoin.Mpassword1.focus();
        return;
        
    }

    if($("input[name='companyNum']").val()!=''){ // 사업자등록증 있으면 핸드폰 필수
        if($("input[name='phone1']").val()=='' || $("input[name='phone2']").val()=='' || $("input[name='phone3']").val()==''){
            alert('사업자 번호 입력시엔 핸드폰 필수 입니다.')
            return;
        }
    }

    if(!ck_passwd_ajax()){ return; }

    if($("input[name='mail_ok']").is(":checked")==false){
        alert("안내수신동의를 하셔야 가입이 가능합니다.");
        return;
    }

    
    $cp_flag = 0;
    $("input[name='come_path']").each(function(){
        if($(this).is(":checked")==true){ 
            if($(this).val()=='기타' && $("input[name='come_path_etc']").val()==''){
                alert('가입경로 : 기타사유를 입력해주세요.'); return;
            } else {
                $cp_flag = 1; 
            }
        }
    });
    if($cp_flag==0){ alert('더 나은 사후관리를 위하여 구입경로를 선택 해 주세요.'); return; }

    /*if($("input[name='captcha_input']").val().trim()==''){
        alert('스팸방지 확인을 하시기 바랍니다.');
        return;
    }*/

    /*if (grecaptcha.getResponse() == ""){
        alert("스팸방지 확인을 하시기 바랍니다.");
        return;
    }*/


    if($("input[name='captcha_input']").val()==''){
         alert("스팸방지 보안을 입력 하시기 바랍니다.");
        return;
    }

    /*$.get("join_spam.php",function(rtn){
        if(rtn==0){
            alert('스팸방비 보안입력이 틀렸습니다.'); return;
        } else if(!(rtn==0 || rtn==1)){
            alert(rtn); return;
        }
    }); 
    // 키 검증이 한번하고 난 다음은 폐기되므로 불가
    */

    

    /*var obj = document.getElementById("joinBt");
     obj.style.display = "none";*/


    memberJoin.submit();
}



function engnum(v_this){
     
     var mkey = event.keyCode
     
     if ( (mkey < 48|| mkey > 57) && (mkey < 65 || mkey > 90) && (mkey < 97 || mkey > 122) && (mkey != 13)){
         alert("특수문자는 입력할수 없습니다.");
        var v = $(v_this).val();
        v = v.substring(0,v.length-1);
        $(v_this).val(v);
         event.returnValue=false; 
     }   


function checkPassword(value)
{
    var reg1 = /[a-z]/g;
    var reg2 = /[0-9]/g;

    return (reg1.test(value) && reg2.test(value));
}

function idCheck(){
    
    var openerId =   document.memberJoin.Mid.value;
    
    window.open("../../manage/member_id_check3.php","","width=410,height=384,scrollbars=yes")
    
}

String.prototype.trim = function()
{
    return this.replace(/(^\s*)|(\s*$)/g, "");
}

    
function Msg(t){
    alert(t);
}

function chkWorkNumb(strNumb) {
    strNumb = Replace(strNumb,"-");
    if(strNumb.length == 0) return true;
    if (strNumb.length != 10) {
        alert("사업자등록번호가 잘못되었습니다.");
        return false;
    }
    
    sumMod = 0;
    sumMod += parseInt(strNumb.substring(0,1));
    sumMod += parseInt(strNumb.substring(1,2)) * 3 % 10;
    sumMod += parseInt(strNumb.substring(2,3)) * 7 % 10;
    sumMod += parseInt(strNumb.substring(3,4)) * 1 % 10;
    sumMod += parseInt(strNumb.substring(4,5)) * 3 % 10;
    sumMod += parseInt(strNumb.substring(5,6)) * 7 % 10;
    sumMod += parseInt(strNumb.substring(6,7)) * 1 % 10;
    sumMod += parseInt(strNumb.substring(7,8)) * 3 % 10;
    sumMod += Math.floor(parseInt(strNumb.substring(8,9)) * 5 / 10);
    sumMod += parseInt(strNumb.substring(8,9)) * 5 % 10;
    sumMod += parseInt(strNumb.substring(9,10));
    
    if (sumMod % 10 != 0) {
        alert("사업자등록번호가 잘못되었습니다.");
        return false;
    }
    return true;
}

function Replace(strString, strChar) {
    var strTmp = "";
    for (i = 0; i< strString.length; i++) {
        if (strString.charAt(i) != strChar) {
            strTmp = strTmp + strString.charAt(i);
        }
    }
    return strTmp;
}

function ck_passwd_ajax(){
    var form_data = $("form[name='memberJoin']").serialize();
    var ax = "";
    $.ajax({type:"post", url:"../millennium/ajax.member_pw_ck.php",data:form_data, dataType : "html", async:false, contentType: 'application/x-www-form-urlencoded; charset=euc-kr', 
        success:function(xml){    
            if(xml!=''){    alert(xml); ax = false; } else { ax = true; }
        },
        error:function(rtn,status,error){
            ax = false;
        }
    });
    return ax;
}

function wrestSaupja(sn)
{
   var pattern = /([0-9]{3})-?([0-9]{2})-?([0-9]{5})/;
   if (!pattern.test(sn)) {
       return " 사업자등록번호 10자리를 숫자 또는 ###-##-##### 형식으로 입력하십시오.\n";
   }
   else
   {
        var sum = 0;
        var at = 0;
        var att = 0;
        var saupjano= RegExp.$1 + RegExp.$2 + RegExp.$3;
        sum = (saupjano.charAt(0)*1)+
              (saupjano.charAt(1)*3)+
              (saupjano.charAt(2)*7)+
              (saupjano.charAt(3)*1)+
              (saupjano.charAt(4)*3)+
              (saupjano.charAt(5)*7)+
              (saupjano.charAt(6)*1)+
              (saupjano.charAt(7)*3)+
              (saupjano.charAt(8)*5);
        sum += parseInt((saupjano.charAt(8)*5)/10);
        at = sum % 10;
        if (at != 0)
            att = 10 - at; 

        if (saupjano.charAt(9) != att)
        {
           return "올바른 사업자등록번호가 아닙니다.\n";
        } else {
            return "";
        }
    }
}

function preg_replace2(vt,vv,obj){
    if(vt=='sn' || vt=='sn_office'){
        vv = vv.replace("-","");
        if(vv.length==10){
            var ck = wrestSaupja(vv);
        } else {
            ck = "";
        }
        if(ck==""){
            $.ajax({type:"post", url:"../millennium/ajax.preg_replace.php?vt="+vt+"&vv="+vv, async:false, dataType : "html", 
                success:function(rtn){    
                    if(rtn.substring(0,1)=='0'){
                        v = rtn.split("^");
                        alert(v[1]);
                        $(obj).val("");
                    } else {
                        $(obj).val(rtn);
                    }
                },
                error:function(rtn,status,error){

                }
        });    
        } else {
            alert(ck); obj.val("").focus();
        }
    } else {
        $.ajax({type:"post", url:"../millennium/ajax.preg_replace.php?vt="+vt+"&vv="+vv, async:false, dataType : "html", 
            success:function(rtn){    
                $(obj).val(rtn);
            },
            error:function(rtn,status,error){

            }
        });
    }
}

document.addEventListener('keydown', function(event) {
  if (event.keyCode === 13) {
    event.preventDefault();
  };
}, true);

$(function(){
    $(document).on("change",".comp_sn_class_office, .comp_sn_class, .telno_class, .number_class, .int_class, .dbl_num_class",function(){ // 번호등 - 처리
        var v = $(this).val();
        if($(this).hasClass("comp_sn_class")==true){
            preg_replace2("sn",v,$(this));
        } else if($(this).hasClass("comp_sn_class_office")==true){
            preg_replace2("sn_office",v,$(this));
        } else if($(this).hasClass("telno_class")==true){
            preg_replace2("hp",v,$(this));
        } else if($(this).hasClass("number_class")==true){
            preg_replace2("number",v,$(this));
        } else if($(this).hasClass("int_class")==true){
            $(this).val(integer_ch(v));
        } else if($(this).hasClass("dbl_num_class")==true){
            preg_replace2("onlynum",v,$(this));
        }
    });
});
</script>

<SCRIPT LANGUAGE="JavaScript">
<!--
    function viewmain(num){
    //    itab1 / imain1
        for(var i=1;i<4;i++){
            if(i == num ){ //같으면 표시
                document.getElementById("itab"+i).style.fontWeight = "700";
                document.getElementById("imain"+i).style.display = "block";
            } else {    //다르면 감추기
                document.getElementById("itab"+i).style.fontWeight = "normal";
                document.getElementById("imain"+i).style.display = "none";
            }
        }
    }
//-->
</script>
<!--<script language="javascript" src="./okplugin_js.php?txtid=txt1" ></script>-->

<style>
.wrap {margin-top:25px;}
.contents {padding:20px;box-sizing:border-box;}
.level9 { font-size: 20px; line-height: 24px; font-family: verdana, sans-serif}
.h_line {height:2px;width:480px;background-color:#012D6A;position:absolute;top:15px;}
.wrap h1,.wrap h2,.wrap h3 ,.wrap h4, .wrap a,.wrap p,.wrap div,.wrap label,.wrap input,.wrap span, .wrap em, .wrap textarea, .wrap button, .wrap th, .wrap td, .wrap select{font-weight:600;}
.joinHeader {height:36px;position:relative;}
.joinHeader h1 {font-size:2rem;text-align:center;line-height:38px;color:#012D6A;}
.joinTable {margin-top: 30px;border-top: none !important;}
.joinTable label {display:block; font-size:0.9rem;margin: 12px 0 4px;}
.red {color:#BE0000 !important;}
.joinTable th, .joinTable td {font-size:16px;font-weight:600;border:none;}
.joinTable th {color:#012D6A;background:none;}
.joinTable tr {border:none;height:52px;}
.joinTable .label {color:#707070;margin-left:12px;font-size:14px;display:block;}
.joinTable input, .joinTable select {font-size:12px;padding:10px !important;;border: 1px solid #CCCCCC !important;margin-right:12px;}
.joinTable input[type=radio]{min-width:inherit;margin-right:8px;}
.tel_box {min-width:100px !important;}
.s_btn {background: #012D6A !important;font-size:14px;color:#fff !important;border-radius:5px !important;padding:10px 36px !important;cursor:pointer;}
.s_btn a {padding:10px 43px;}
.s_btn a:hover{color:#fff;}
.joinTable input[name='come_path']{vertical-align:middle;}
.come_path_label {color:#000;margin-right:12px;line-height:20px;font-weight:600;display:inline !important;}
.joinBtn {background: #9DCC34;border-radius:10px;border:none;padding:10px 50px 8px; font-size:21px;color:#fff;cursor:pointer;line-height:30px;}
</style>

<div class="wrap">
    <div class="contents">
        <div class="joinSection">
            <div class="joinHeader">
                <h1>회원가입</h1>
            </div>
            <!--<form name="memberJoin" target="Joinifm" method="post" action="https://<?php echo $_SERVER['SERVER_NAME'];?>/html/millennium/joinProcess.php" enctype="multipart/form-data">-->
            <!--<form name="memberJoin" method="post" target="Joinifm" action="<?php if($MJSOFT_SSL_USE=='Y'){?>https://<?php echo $_SERVER['SERVER_NAME'];?>/html/millennium/joinProcess.php<?php } else {?>joinProcess.php<?php }?>" enctype="multipart/form-data">-->
            <form name="memberJoin" method="post" target="Joinifm" action="https://<?php echo $_SERVER['SERVER_NAME'];?>/html/millennium/joinProcess.php" enctype="multipart/form-data" onsubmit='return false;'>
                <input type='hidden' name='pos_mode' value='mobile'>
                <!-- 개인정보등록 -->
                <table class="joinTable">
                    <caption><span style="font-size:16px;color:#012D6A;"><span class="red">* </span>는 필수 항목입니다.</span></caption>
                    <tr>
                        <td>
                            <label><span class="red">*</span>회원ID</label>
                            <input style="width:40%;" name="Mid" readonly type="text" onClick="idCheck();" size="15" maxlength="20" placeholder="ID는 수정불가입니다."> <a onClick="idCheck();"><span class="s_btn">ID중복확인</span></a>
                        </td>
                    </tr>
                    <tr>    
                        <td>
                            <label><span class="red">*</span>비밀번호</label>
                            <input style="width:70%;" name="Mpassword1" type="password" size="28" maxlength="15" onkeypress="javascript:engnum(this)" placeholder="영문자숫자조합 10자리이상 15자리 이하">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label><span class="red">*</span>비밀번호 확인</label>
                            <input style="width:70%;" name="Mpassword2" type="password" size="28" maxlength="15" onkeypress="javascript:engnum(this)" placeholder="비밀번호를 다시한번 입력해 주세요.">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label><span class="red">*</span>성명</label>
                            <input style="width:70%;" name="Mname" type="text" size="15" maxlength="20" placeholder="구매자의 실명을 입력해 주세요.">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label>회사명</label>
                            <input style="width:70%;" name="Mcompany" type="text" size="20" maxlength="20">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label>사업자등록번호</label>
                            <input style="width:70%;" class="comp_sn_class" type="text" name="companyNum" maxlength="12" value="<?=$memberRow_companyNum;?>" style="ime-mode:disabled" onkeyPress="if ((event.keyCode<48) || (event.keyCode>57)) event.returnValue=false;" placeholder="(-)제외한 번호를 입력해주세요.">
                        </td>
                    </tr>
                    <tr>
                        <td>
                        <label>업태</label>
                        <input style="width:70%;" type="text" name="upte" size="0" maxlength="50" value="<?=$memberRow_upte;?>"></td>
                    </tr>
                    <tr>
                        <td>
                            <label><span class="red">*</span>업종</label>
                            <? include("./opt_select.php"); ?>
                            <input style="width:70%;" type="text" name="upjong" size="15" maxlength="50" value="<?=$memberRow_upjong;?>" placeholder="업종을 정확하게 직접입력(선택)해 주세요."> 
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label><span class="red">*</span>주소</label>
                            <input name="post1" id="post1" type="text" size="10" maxlength="7" onclick="postSearch3('post1','post2','Madd');"><!-- -
                            <input name="post2" id="post2" type="text" size="3" maxlength="3" onclick="postSearch3('post1','post2','Madd');">-->
                            <a onClick="postSearch3('post1','post2','Madd');" style="cursor:pointer;" vspace="5" align="absmiddle"><span class="s_btn">우편번호찾기</span></a>
                            <br>
                            
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input style="width:70%;" name="Madd"  id="Madd" type="text">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label><span class="red">*</span>연락처</label>
                            <input style="width:70%;" class='telno_class' name="tel" type="text" size="11" style="ime-mode:disabled" placeholder="(-)제외한 번호를 입력해주세요."><span class="label"> ID/비밀번호 찾기시 필요</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label>긴급연락처</label>
                            <input style="width:70%;" class='telno_class' name="phone" type="text" size="11" style="ime-mode:disabled" placeholder="(-)제외한 번호를 입력해주세요."><span class="label"> 핸드폰 전화번호를 입력해 주세요</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label><span class="red">*</span>전자우편/이메일</label>
                            <input style="width:70%;" name="Memail" type="text" size="50" maxlength="70"><span class="label"> ID/비밀번호 찾기시 필요</span>
                        </td>
                    </tr>
                    <tr style="height:44px;">
                        <label></label>
                        <td></td>
                    </tr>
                    <tr style="height:44px;">
                        <td style="border-top:2px dotted #012D6A;"></td>
                    </tr>
                    <tr>
                        <td style="font-size:14px;">
                            <label>사용프로그램</label>
                            <input type="hidden" name="Msw1" > 제품 미등록 (구매고객은 전화로 등록 요청)
                        </td>
                    </tr>
                    <tr>
                        <td style="font-size:14px;">
                            <label><span class="red">*</span>안내수신동의</label>
                            <input type='checkbox' name='mail_ok' value='1' style='width:15px;min-width:15px;'> 동의함
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label>추천인ID</label>
                            <input style="width:70%;" name="Mrecom" type="text" size="15" maxlength="20" placeholder='추천받은 분의 ID를 입력해주세요.'>
                        </td>
                    </tr>
                    <tr>
                        <td style='line-height:36px;padding-bottom:5px;font-size:14px;vertical-align:top;'>
                            <label style="vertical-align:top;margin-top:10px;line-height:30px;"><span class="red">*</span>가입경로</label>
                            ※ 더 나은 사후관리를 위하여 구입경로를 입력 해 주세요.<br>
                            <ul>
                                <li><input type='radio' name='come_path' value='인터넷검색' size=1 id="come_path1"><label for="come_path1" class="come_path_label">인터넷검색</label></li>
                                <li><input type='radio' name='come_path' value='지인(타사)소개' id="come_path2"><label for="come_path2" class="come_path_label">지인(타사)소개</label></li>
                                <li><input type='radio' name='come_path' value='블로그' id="come_path3"><label for="come_path3" class="come_path_label">블로그</label></li>
                                <li><input type='radio' name='come_path' value='인스타그램' id="come_path4"><label for="come_path4" class="come_path_label">인스타그램</label></li>
                                <li><input type='radio' name='come_path' value='페이스북' id="come_path5"><label for="come_path5" class="come_path_label">페이스북</label></li>
                                <li><input type='radio' name='come_path' value='기존사용자' id="come_path6"><label for="come_path6" class="come_path_label">기존사용자</label></li>
                                <li><input type='radio' name='come_path' value='기타' id="come_path7"><label for="come_path7" class="come_path_label">기타(직접입력)</label></li>
                            </ul>
                            <span class='etc_span_class' style='display:none;line-height: 0px;'><br><input type='text' name='come_path_etc' value='' style='width:236px;' placeholder='기타사유를 직접 입력하세요.'></span>
                        </td>
                    </tr>
                    <script>
                        $(function(){
                            $("input[name='come_path']").click(function(){
                                $v = $(this).val();
                                if($v=='기타'){
                                    $(".etc_span_class").show();
                                } else {
                                    $(".etc_span_class").hide();
                                }
                            });
                        });
                    </script>
                    <!--보안코드 넣기-->
                    <tr>
                        <td colspan="3">
                        <label><span class="red">*</span>스팸방지보안</label>
<?php 
    
//include($_SERVER['DOCUMENT_ROOT']."/inc_pack/CAPTCHA/join_spam_inc4.php");
?>
<style>
.simple_captcha_class  span { font-size:20px !important; }
</style>
<?php

    
function captcha_str_ch($v){ // 세선파일 디렉토리 설정시 캇차 이미지 처리 안되어서 그냥 텍스트로 하되 해킹프로그램 긁기로 최대한 처리안되게 해주는 역활
        
$c_array = array('gray','red','blue','green','pink','purple');
        
$v_cnt strlen($v);
        
$rtn "";
        for(
$i=0;$i<$v_cnt;$i++){
            
$rtn .= "<span style='color:{$c_array[$i]}'>{$v[$i]}&nbsp;</span>";
        }
        return 
$rtn;
    }

    include(
$_SERVER['DOCUMENT_ROOT']."/inc_pack/scaptcha/simple-php-captcha.php");
    
$captcha simple_php_captcha();
    
$_SESSION['captcha'] = $captcha;
    
$_SESSION['captcha_code'] = $captcha['code'];
    
$c_code captcha_str_ch($_SESSION['captcha']['code']);
    echo 
"<ul><li style='float:left;line-height:28px;' class='txt21 simple_captcha_class'>{$c_code}</li><li style='float:left;'><span style='line-height:35px;padding:10px 20px;margin:0 12px;cursor:pointer;' class='pointer simple_captcha_change s_btn'>새로고침</span></li>";
    echo 
"<li style=''>&nbsp;<input type='text' name='captcha_input' class='box100_30' style='margin-top:4px;margin-bottom:5px;width:70%;' placeholder='대소문자 구분해서 입력하시기 바랍니다.'></li></ul>";
?>
<script>
    $(function(){
        $(".simple_captcha_change").click(function(){ // 스팸방지 리로드
            $.get("./ajax.captcha_reload.php",function(rtn){
                $(".simple_captcha_class").html(rtn);
            })    ;
        });
    });
</script>
            <p style="font-size:0.9rem;text-align:center;">※ 스팸방지보안이 잘되지 않을경우 다른 브라우저(IE추천)를 이용해서 회원가입하거나 고객센터(1566-8680)에 문의주시기바랍니다.</p>
                        </td>
                    </tr>
                    <tr style="height:44px;">    
                        <td>
                            <label></label>
                        </td>
                    </tr>
                </table>

                <div style="padding-top:20px;border-top:2px dotted #012D6A;text-align:center;">
                        <button class="joinBtn" onclick = "location.href = 'javascript:memberReg();' " name = "joinBt" id = "joinBt">회원가입</button>
                </div>

                <input type="hidden" name="mode" value="insert">

            </form>
        </div><!-- joinSection -->
    </div><!--contents-->
</div><!--wrap-->

<iframe name="Joinifm" width="0" height="0"></iframe> 


<? include("./include/footer.php"); ?>