/home/mjc1/public_html/html/millennium/findidpw2.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
<?php
    
include_once("./_common.php");
?>
<title>¾ÆÀ̵ð/ºñ¹Ð¹øÈ£ Ã£±â</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="./css/style.css" rel="stylesheet" type="text/css">
<link href="./newcss/style.css" rel="stylesheet" type="text/css">
<? 
    
/*20130805 º¯¼ö¼±¾ð*/
    
if (isset($_REQUEST['menu'])) {
        
$menu_new $_REQUEST['menu'];
    } else {
        
$menu_new "";
    }

    if (isset(
$_REQUEST['div'])) {
        
$div_new $_REQUEST['div'];
    } else {
        
$div_new "";
    }
?>
<script language='javascript' src="./js/jquery-1.8.3.min.js"></script>
<script src="./js/jqueryui/jquery-ui.js"></script>
<SCRIPT LANGUAGE="JavaScript">

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:"./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:"./ajax.preg_replace.php?vt="+vt+"&vv="+vv, async:false, dataType : "html", 
            success:function(rtn){    
                $(obj).val(rtn);
            },
            error:function(rtn,status,error){

            }
        });
    }
}

$(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));
        }
    });
});

function goIdPw(div) {
    if(div == "id") {
        document.frm_findpw.div.value = "id";
        document.getElementById("dv_id").style.display = "none";
        document.getElementById("dv_pw").style.display = "";
        document.getElementById("tab_pw").style.border = "none";
        document.getElementById("tab_id").style.borderBottom = "3px solid #9DCC34";
        document.frm_findpw.rd_idpw[0].click();
    } else if(div == "pw"){
        document.frm_findpw.div.value = "pw";
        document.getElementById("dv_id").style.display = "";
        document.getElementById("dv_pw").style.display = "none";
        document.getElementById("tab_pw").style.borderBottom = "3px solid #9DCC34";
        document.getElementById("tab_id").style.border = "none";
        document.frm_findpw.rd_idpw[1].click();
    }
    init();
}

function checkIdpw() {

    if(document.frm_findpw.txt_name.value.trim() == "")
    {
        alert("* ¼º¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        document.frm_findpw.txt_name.focus();
        return false;
    }


    if(document.frm_findpw.txt_email.value.trim() == "")
    {
        alert("* °¡ÀÔ´ç½Ã ÀÔ·ÂÇÑ À̸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        document.frm_findpw.txt_email.focus();
        return false;
    }


    if(document.frm_findpw.div.value == "pw")
    {
        if(document.frm_findpw.txt_id.value.trim() == "")
        {
            alert("* ¾ÆÀ̵𸦠ÀÔ·ÂÇØÁÖ¼¼¿ä.");
            document.frm_findpw.txt_id.focus();
            return false;
        }

        if(!confirm("±âÁ¸ ºñ¹Ð¹øÈ£¸¦ »èÁ¦Çϰí Àӽúñ¹Ð¹øÈ£¸¦ ¹ß¼ÛÇÕ´Ï´Ù\nµ¿ÀÇÇϽʴϱî?")) {
            return false;
        }
    }


    if(document.frm_findpw.div.value == "dv_id")
    {
        if(document.frm_findpw.tel.value.trim() == "")
        {
            alert("* ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
            document.frm_findpw.tel.focus();
            return false;
        }
        
    }

    

    document.frm_findpw.submit();
}

String.prototype.trim = function()
{
    return this.replace(/(^\s*)|(\s*$)/g, "");
}
</SCRIPT>
<style>
    @font-face {/*G¸¶Äϻ꽺M*/
    font-family:'gs';
    src:url('./fonts/GmarketSansTTFMedium.eot');
    src:url('./fonts/GmarketSansTTFMedium.eot?#iefix') format('embedded-opentype'),
    url('./fonts/GmarketSansTTFMedium.woff2') format('woff2'),
    url('./fonts/GmarketSansTTFMedium.woff') format('woff'),
    url('./fonts/GmarketSansTTFMedium.ttf') format('truetype');
    src:local(¡Ø), url('./fonts/GmarketSansTTFMedium.woff') format('woff');
}
    *, body {font-family:'gs', sans-serif, 'GmarketSansTTFMedium' !important;}
    .findidpw_head h1{height:20px;text-align:center;color:#012D6A; font-size:18px;font-weight:400;margin-bottom:26px !important;padding-top:26px;}
    .h_line {height:2px;width:27%;background-color:#012D6A;position:absolute;top:32px;}
    .idpw_tab {margin-bottom:26px;}
    .idpw_tab input {border:0px;visibility:hidden;margin-top:0;vertical-align:middle;}
    .idpw_tab label{font-size:12px;color:#012D6A;cursor:pointer;}
    th {font-weight:400;width:69px;}
    td input {height:36px;width:217px;}
    #frm_findpw {background: #012D6A;font-size: 16px;color: #fff; border:none;border-radius: 5px;padding: 10px 46px;cursor:pointer;margin-right:12px;}
    .close_find {background:#fff;font-size: 16px;color:  #012D6A; border:1px solid #012D6A;border-radius: 5px;padding: 10px 46px;cursor:pointer;}
</style>

<div align="center" style="background:#fff;">
<form name="frm_findpw" action="<?php if($MJSOFT_SSL_USE=='Y'){?>https://<?php echo $_SERVER['SERVER_NAME'];?>/html/millennium/findidpw_ok.php<?php } else {?>findidpw_ok.php<?php }?>" onsubmit="return false;">
    <input type="hidden" name="div" value="id">
    <div class="findidpw_head">
        <div class="h_line" style="left:0;"></div>
        <h1>¾ÆÀ̵ð/ºñ¹Ð¹øÈ£ Ã£±â</h1>
        <div class="h_line" style="right:0;"></div>
    </div>
    <div class="idpw_tab">
        <span style="margin-left:-13px">
            <input type="radio" NAME="rd_idpw" id="rd_idpw_id" onclick="goIdPw('id')" value="0" checked><label for="rd_idpw_id" id="tab_id" style="border-bottom:3px solid #9DCC34;padding:4px 14px;">¾ÆÀ̵ðã±â</label>
        </span>
        <span>
            <input type="radio" NAME="rd_idpw" id="rd_idpw_pw" value="1" onclick="goIdPw('pw')" class="txt03"><label for="rd_idpw_pw" id="tab_pw" style="padding:4px 8px;">ºñ¹Ð¹øÈ£ Ã£±â</label>
        </span>
    </div>


<table width="286" cellpadding="0" cellspacing="0" border="0">
    <colgroup>
        <col width="85"><col width="5"><col width="175">
    </colgroup>
    <tr><td height="2" colspan="3"></td></tr>

    <tr height="52" id="dv_id" style="display:none">
        <th width="69">¾ÆÀ̵ð<th>
        <td align="left"><INPUT TYPE="text" NAME="txt_id" size="10"><td>
    </tr>

    <tr><td height="1"  colspan="3"></td></tr>

    <tr height="52">
        <th width="69">¼º¸í<th>
        <td align="left"><INPUT TYPE="text" NAME="txt_name" size="10"><td>
    </tr>

    <tr><td height="1"  colspan="3"></td></tr>

    <!--<tr height="25">
        <td align="right" style="padding-right:5px;"><img src="./img/login/num_text.jpg" alt="Áֹεî·Ï¹øÈ£"><td>
        <td>****** - <INPUT TYPE="password" name="txt_jumin2" style="width:75px;"  maxlength="7"><td>
    </tr>-->

    <tr height="52">
        <th>À̸ÞÀÏ<th>
        <td align="left"><INPUT TYPE="text" name="txt_email" maxlength="30"><td>
    </tr>

    <tr><td height="1" colspan="3"></td></tr>

    <tr height="52" id="dv_pw">
        <th>¿¬¶ôó<th>
        <td align="left"><input name="tel" type="text" size="11" class='telno_class'>
        <td>
    </tr>

    <tr><td height="1" colspan="3"></td></tr>

</table>

<br>
<table class="txt03" width="300">
    <tr>
        <td align="center">
            <button name="frm_findpw" id="frm_findpw" value="<?=$menu_new?>" onclick="checkIdpw();" border="0"  tabindex="4" align="absmiddle">ã±â</button>

            <button class="close_find" onclick="self.close();" border="0" align="absmiddle">´Ý±â</button>
        </td>
    </tr>
</table>
</form>
</div>

<SCRIPT LANGUAGE="JavaScript">
function init()
{
    document.frm_findpw.txt_id.value = "";
    document.frm_findpw.txt_name.value = "";
    //document.frm_findpw.txt_jumin2.value = "";
    document.frm_findpw.tel.value = "";
}
document.frm_findpw.div.value = "id";
init();
</SCRIPT>
<script>goIdPw('<?=$div_new?>');</script>