최초등록

This commit is contained in:
sp1000je
2026-02-23 10:01:00 +09:00
commit 7bc9767bf4
3120 changed files with 198447 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->
<!--#include file = "inc_auth_code.asp" -->
<%
auth_code_num = InputValue( request("auth_code_num") )
auth_num = InputValue( request("auth_num") )
If auth_code_num = "" Or auth_num = "" Then
Response.write "auth_code error"
Response.end
End if
If auth_num = auth_code_arr( CInt(auth_code_num) ) Then
Response.write "ok"
Else
Response.write "no"
End if
%>
+39
View File
@@ -0,0 +1,39 @@
<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->
<!--#include file = "inc_auth_code.asp" -->
<%
m_mobile1 = InputValue( request("m_mobile1") )
m_mobile2 = InputValue( request("m_mobile2") )
m_mobile3 = InputValue( request("m_mobile3") )
auth_code_num = request("auth_code_num")
If auth_code_num = "" Then
Response.write "auth_code error"
Response.end
End if
tran_phone = m_mobile1 & m_mobile2 & m_mobile3
tran_callback = "15449642"
Rdate = Date() & " " & Right(hour(now), 2) & ":" & Right(minute(now), 2) & ":" & Right(second(now), 2)
s_num = get_idx_add()
message = "[나눔문자서비스]모바일 인증번호는 " & auth_code_arr( CInt(auth_code_num) ) & "입니다. 정확히 입력해주세요."
SQL = "Insert into em_tran(tran_id, tran_phone, tran_callback, tran_status, tran_date, tran_msg, tran_etc1, tran_etc2, tran_etc3, tran_etc4) values ("
SQL = SQL & "'nninc','"&tran_phone&"', '"&tran_callback&"', '1', '"&Rdate&"', '"&message&"','', '"&s_num&"','161', '159')"
'response.write sql & "<br>"
'response.write "<br>sql="&sql
'response.end
dbcon.execute sql
Response.write "ok"
%>
+11
View File
@@ -0,0 +1,11 @@
@charset "utf-8";
.member_req1{ color:#e06912; font-weight:bold; text-align:middle; letter-spacing:-1px;}
.member_req2{ color:#e06912; font-weight:bold; text-align:middle; }
input.member_input {border:1px solid #cdcdcd; height:17px; padding:3px 3px 0px 3px; font-size:1em; background-color:#ffffff;margin-bottom:2px;}}
span.member_text1 {padding-left:6px; font-family:dotum; color:#777777; font-size: 0.9em; font-weight:normal; letter-spacing:-0.1em;}
div.post_search_wrap {margin-top:6px;}
div.post_search {overflow:auto; height:80px; border:1px solid #cdcdcd; margin-top:3px; margin-right:10px; padding:6px;}
+24
View File
@@ -0,0 +1,24 @@
<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->
<%
m_id = inputValue(request("m_id"))
'동일아이디 체크
'*****************************************
sql = "select count(m_num) as id_chk from member where m_id='"&m_id&"'"
Set Rs = Dbcon.Execute (sql)
idcnt = CInt(Rs("id_chk"))
rs.close : Set rs = nothing
'*****************************************
If idcnt = 0 then
%>
alert("사용할 수 있는 아이디 입니다.");
document.getElementById("frm").idchk.value = "Y";
document.getElementById("frm").m_pwd.focus();
<%else%>
alert("[<%=m_id%>]은(는) 이미 사용중인 아이디 입니다.");
document.getElementById("frm").idchk.value = "N";
document.getElementById("frm").m_id.focus();
<%End if%>
+146
View File
@@ -0,0 +1,146 @@
<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->
<link rel="Stylesheet" type="text/css" href="/content/member/css/member.css" />
<table>
<tr>
<td>
<%if request("mode")="" then%>
<!-- 검색전 : 시작 -->
<form id="idSearchFrm" name="idSearchFrm" method="post" action="<%=Request.ServerVariables("SCRIPT_NAME")%>" onsubmit="return sendit();">
<div>
<input type="hidden" name="mode" value="proc">
</div>
<table>
<tr>
<td>
<table>
<tr>
<td>이름</td>
<td><input name="m_name" id="m_name" type="text"></td>
</tr>
<tr>
<td height="25" align="left">이메일</td>
<td><input name="m_email" id="m_email" type="text"></td>
</tr>
</table>
</td>
<td>
<input type="image" src="/content/member/img/btn_search3.gif"/>
</td>
</tr>
</table>
</form>
<script type="text/javascript">
<!--
function sendit(){
var eForm = document.getElementById("idSearchFrm");
if(!valueChk(eForm.m_name, "이름")){return false;}
if(!valueChk(eForm.m_email, "회원가입시 입력하신 이메일")){return false;}
}
function valueChk(obj, objName){//text필드
if(obj.value.split(" ").join("") == ""){
alert(objName+"을(를) 입력하세요");
try{
obj.focus();
}catch(e){
}
return false;
}else{
return true;
}
}
//-->
</script>
<!-- 검색전 : 끝 -->
<%else%>
<%
m_name = inputValue(request("m_name"))
m_email = inputValue(request("m_email"))
sql = "SELECT m_id, m_pwd FROM member WHERE m_name = '"&m_name&"' and m_email = '"&m_email&"' and m_level<>'2'"
Set Rs = Dbcon.Execute (sql)
If Not Rs.eof Then
search_id = Rs("m_id")
search_pwd = Rs("m_pwd")
Else
search_id = ""
search_pwd = ""
End If
rs.close : Set rs = Nothing
Function strSec(str, cnt)
strCnt = len(str) - CInt(cnt)
sec = ""
For i=1 To strCnt
Sec = Sec & "*"
Next
strSec = Left(str,cnt)&sec
End function
%>
<!-- 검색 결과 : 시작 -->
<table>
<tr>
<td style="line-height:20px;">
<% If search_pwd = "" then
urlvalue = Request.ServerVariables("SCRIPT_NAME")
%>
<%=m_name%>님의 회원 정보가 없습니다. 다시 확인하세요.<br/>
<% else
urlvalue = LOGIN_URL
%>
<strong><%=m_name%></strong>님의 아이디는 <strong><%=search_id%></strong>
<br/>비밀번호는 [<strong><%=strSec(search_pwd, 3)%></strong>]입니다.
<br />개인정보보호를 위해 비밀번호의 일부분을 *처리 하였습니다.<br/>
<%End if %>
<p style="padding-top: 10px;"><a href="<%=urlvalue%>"><img src="/content/member/img/find_btn.gif" border="0" alt="확인"/></a></p>
</td>
</tr>
</table>
<!-- 검색 결과 : 끝 -->
<%End if%>
</td>
</tr>
</table>
Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 858 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 866 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 646 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

+14
View File
@@ -0,0 +1,14 @@
<%
Dim auth_code_arr(9)
auth_code_arr(0) = "472890"
auth_code_arr(1) = "190823"
auth_code_arr(2) = "168349"
auth_code_arr(3) = "598134"
auth_code_arr(4) = "634921"
auth_code_arr(5) = "548902"
auth_code_arr(6) = "890675"
auth_code_arr(7) = "673490"
auth_code_arr(8) = "507489"
auth_code_arr(9) = "671289"
%>
+37
View File
@@ -0,0 +1,37 @@
<form id="loginFrm" method="post" action="/content/member/login_ok.asp" onsubmit="return sendit();">
<div>
<input type="hidden" name="prepage" value="<%=request("prepage")%>" />
</div>
<table>
<tr>
<td>
<table>
<tr>
<td>아이디</td>
<td><input name="m_id" id="m_id" type="text" /></td>
</tr>
<tr>
<td>비밀빈호</td>
<td><input name="m_pwd" id="m_pwd" type="password" /></td>
</tr>
</table>
</td>
<td>
<input type="image" src="/content/member/img/btn_login.gif">
</td>
</tr>
</table>
</form>
<script type="text/javascript">
function sendit(){
frm = document.getElementById("loginFrm");
if (CheckSpaces(frm.m_id, "아이디")){return false;}
else if (CheckSpaces(frm.m_pwd, "비밀번호")){return false;}
}
</script>
+26
View File
@@ -0,0 +1,26 @@
<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->
<%
m_id = InputValue(request("m_id"))
m_pwd = InputValue(request("m_pwd"))
if memgr_idpwdchk3(m_id,m_pwd) then
Call memgr_logincookie(m_id,m_pwd) '인증쿠키발생
If session("ss_g_num") = "1" Then
memgr_ad_cmscookie()
End if
else
Call Back_back ("아이디 또는 비밀번호를 확인하세요.")
End if
If prepage = "" Then prepage = "/content/01message/01_01.asp"
Call loding ("0", prepage)
%>
+52
View File
@@ -0,0 +1,52 @@
<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->
<%
'동산의료원 채용 결과만보는화면(은영-211130)
m_id = InputValue(request("m_id"))
m_pwd = InputValue(request("m_pwd"))
page_type = InputValue(request("page_type"))
'어차피 결과만보는화면이니깐 파라미터로 아이디&비번 안넘기기..노출될거같아서
m_id = "dsmc"
m_pwd = "dsmc"
if memgr_idpwdchk3(m_id,m_pwd) then
Call memgr_logincookie_dsmc(m_id,m_pwd) '인증쿠키발생
else
Call Back_back ("아이디 또는 비밀번호를 확인하세요.")
End if
If page_type = "daegu" Then
prepage = "/content/01message/03_01_dsmc_daegu.asp"
Else
prepage = "/content/01message/03_01_dsmc.asp"
End If
Call loding ("0", prepage)
function memgr_logincookie_dsmc(m_id, m_pwd)
Dim sql, Rs_m, lastdate
sql = " select m_num, m_id, m_name, m_level, m_pwd, m_jumin, (m_mobile1+'-'+m_mobile2+'-'+m_mobile3)as m_mobile, bdm_idx from member where m_id = '" & m_id & "' and m_pwd = '" & m_pwd & "'"
Set Rs_m = dbcon.execute( sql )
SESSION("ss_dsmc_m_num") = Rs_m("m_num")
SESSION("ss_dsmc_m_id") = Rs_m("m_id")
SESSION("ss_dsmc_m_name") = Rs_m("m_name")
'최근접속일 등록
lastdate = date()
sql = "update member set m_lastdate='" & lastdate & "' where m_id = '" & Trim( Rs_m("m_id") ) & "'"
dbcon.execute sql
Set Rs_m = nothing
End Function
%>
+11
View File
@@ -0,0 +1,11 @@
<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->
<%
Call memgr_logout()
%>
<script type='text/javascript'>
top.location.href = '/';
</script>
+12
View File
@@ -0,0 +1,12 @@
<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->
<%
Call memgr_logout()
%>
<script type='text/javascript'>
alert("로그아웃되었습니다.");
self.close();
</script>
Binary file not shown.
+485
View File
@@ -0,0 +1,485 @@
<!--include virtual = "/common/lib/dbcon.asp" -->
<!--include virtual = "/common/lib/func.asp" -->
<%
If SESSION("ss_m_id") ="" then
Call loding("0", LOGIN_URL & "?prepage="&server.urlencode(request.ServerVariables("SCRIPT_NAME") & "?" & request.ServerVariables("QUERY_STRING")))
End if
'레코드필드
R_Fields = "mc_idx, mc_addr, mc_nickname, mc_phone, mc_mobile, mc_email, mc_homepage, mc_joinlevel, mc_wdate, mc_jumin, mc_mailing, mc_sms, mc_sex, mc_birth, mc_fax, mc_marry, mc_marrydate, mc_job, mc_text, mc_nickname_req, mc_jumin_req, mc_sex_req, mc_birth_req, mc_phone_req, mc_fax_req, mc_mobile_req, mc_email_req, mc_addr_req, mc_homepage_req, mc_marry_req, mc_marrydate_req, mc_job_req, mc_text_req"
Call SelectQuery(R_Fields, "member_config", "")
'레코드필드
R_Fields = "m_num, m_id, m_pwd, m_name, m_nickname, m_jumin, m_zipcode, m_addr1, m_addr2, m_phone1, m_phone2, m_phone3, m_email, m_mobile1, m_mobile2, m_mobile3, m_fax1, m_fax2, m_fax3, m_homepage, m_date, m_modymate, m_lastdate, m_chuchun, m_ip, m_level, m_autoimg_str, m_temp1, m_temp2, m_temp3, m_sex, m_birth, m_sms, m_mailing, m_marry, m_marrydate, m_job, m_text, bdm_idx"
R_tablename_str = "member"
R_WHERE_str = " WHERE m_num=" &SESSION("ss_m_num")
Call SelectQuery(R_Fields, R_tablename_str, R_WHERE_str)
disabled_opt = "disabled ='disabled'"
m_pwd_type = "text"
If IsNull(m_birth) Then m_birth = ""
If IsNull(m_marrydate) Then m_marrydate = ""
arr_birth = Split(m_birth,"-")
arr_marrydate = Split(m_marrydate,"-")
ReDim preserve arr_birth(2), arr_marrydate(2)
m_birth_Y = arr_birth(0)
m_birth_M = arr_birth(1)
m_birth_D = arr_birth(2)
m_marrydate_Y = arr_marrydate(0)
m_marrydate_M = arr_marrydate(1)
m_marrydate_D = arr_marrydate(2)
'최상위부서 조회
sql = "select bdm_idx, bdm_menuname from bd_menu_page where bdm_chk = 'Y' and bdm_ref=0 order by bdm_code"
Set rs = dbcon.execute( sql )
If rs.bof Or rs.eof Then
buseo_data1 = null
Else
buseo_data1 = rs.getrows
End If
Set rs = Nothing
Randomize()
auth_code_num = Int(Rnd * 10)
%>
<script type="text/javascript">
//<![CDATA[
var buseo_view_idx = "";
function buseo_select_view(value){
var obj = document.getElementById("bdm_idx_"+value);
obj.style.display = "inline";
obj.disabled = false;
if(buseo_view_idx != ""){
var obj2 = document.getElementById("bdm_idx_"+buseo_view_idx);
obj2.style.display = "none";
obj2.disabled = true;
}
buseo_view_idx = value;
}
onload = function(){
buseo_select_view(document.getElementById("p_buseo").value);
}
$(function(){
$("#m_mobile1, #m_mobile2, #m_mobile3").change(function(){
authShow();
});
});
var auth_count = 0;
function mobileAuthRequest(){
if(auth_count >= 3){
alert("3회까지 번호요청이 가능합니다.");
}else{
mobileAuthNumberRequest();
$("#button_auth_request").hide();
$("#span_auth_num").show();
}
}
function mobileAuthRequestCancel(){
$("#button_auth_request").show();
$("#span_auth_num").hide();
}
function mobileAuthNumberRequest(){
var auth_code_num = $("#auth_code_num").val();
var m_mobile1 = $("#m_mobile1").val();
var m_mobile2 = $("#m_mobile2").val();
var m_mobile3 = $("#m_mobile3").val();
var url = "/content/member/ajax_auth_send.asp";
url += "?auth_code_num="+auth_code_num;
url += "&m_mobile1="+m_mobile1;
url += "&m_mobile2="+m_mobile2;
url += "&m_mobile3="+m_mobile3;
$.get(url, function(data, status){
//alert("Data: " + data + "\nStatus: " + status);
if(trim( data ) != "ok"){
alert(data);
}
auth_count++;
});
}
function mobileAuthNumberCheck(){
var auth_code_num = $("#auth_code_num").val();
var auth_num = $("#auth_num").val();
var url = "/content/member/ajax_auth_check.asp";
url += "?auth_code_num="+auth_code_num;
url += "&auth_num="+auth_num;
$.get(url, function(data, status){
//alert("Data: " + data + "\nStatus: " + status);
if(data == "ok"){
alert("휴대폰 인증이 완료 되었습니다.");
$("#mobile_auth").val("Y");
authHidden();
}else{
alert("휴대폰 인증실패. 인증번호를 다시 확인하세요");
$("#mobile_auth").val("N");
}
});
}
function authHidden(){
$("#button_auth_request").hide();
$("#span_auth_num").hide();
}
function authShow(){
$("#mobile_auth").val("N");
$("#button_auth_request").show();
$("#span_auth_num").hide();
}
function trim(str){
return str.replace(/^\s+|\s+$/g, "");
}
//]]>
</script>
<link rel="Stylesheet" type="text/css" href="/content/member/css/member.css" />
<form id="frm" name="frm" method="post" action="/content/member/regist_ok.asp" onsubmit="return sendit();">
<div>
<input type="hidden" id="m_num" name="m_num" value="<%=SESSION("ss_m_num")%>" />
<input type="hidden" id="ok_url" name="ok_url" value="<%=request.ServerVariables("SCRIPT_NAME") & "?" & request.ServerVariables("QUERY_STRING")%>" />
<input type="hidden" id="idchk" name="idchk" value="N" />
<input type="hidden" id="mobile_auth" name="mobile_auth" value="Y" />
<input type="hidden" id="auth_code_num" name="auth_code_num" value="<%=auth_code_num%>" />
<input type="hidden" name="autoimg_str" value="<%=autoimg_str%>" />
</div>
<table class="table4">
<colgroup>
<col width="20%" />
<col width="*" />
</colgroup>
<tbody>
<tr>
<th scope="row">아이디</th>
<td><%=m_id%></td>
</tr>
<tr>
<th scope="row">비밀번호</th>
<td><input name="m_pwd" id="m_pwd" type="password" value="<%=m_pwd%>" maxlength="20" class="inp_basic ess" style="width:300px;" /></td>
</tr>
<tr>
<th scope="row">비밀번호 확인</th>
<td><input name="m_pwdchk" id="m_pwdchk" type="password" maxlength="20" class="inp_basic ess" style="width:300px;" /></td>
</tr>
<tr>
<th scope="row">이름</th>
<td><%=m_name%></td>
</tr>
<tr>
<th scope="row">휴대전화</th>
<td>
<ul class="tel">
<li><input type="tel" class="inp_basic ess" style="width:80px;" name="m_mobile1" id="m_mobile1" onblur="SetNum(this)" maxlength="4" value="<%=m_mobile1%>" /></li>
<li>-</li>
<li><input type="tel" class="inp_basic ess" style="width:80px;" name="m_mobile2" id="m_mobile2" onblur="SetNum(this)" maxlength="4" value="<%=m_mobile2%>" /></li>
<li>-</li>
<li><input type="tel" class="inp_basic ess" style="width:80px;" name="m_mobile3" id="m_mobile3" onblur="SetNum(this)" maxlength="4" value="<%=m_mobile3%>" /></li>
</ul>
<input id="button_auth_request" name="button_auth_request" type="button" value="인증번호 요청" onclick="mobileAuthRequest();" style="display:none;" />
<span id="span_auth_num" style="display:none;">
<label for="auth_num">인증번호입력</label><input type="text" id="auth_num" name="auth_num" maxlength="6" class="member_input" style="width:50px;" />
<input type="button" value="휴대폰인증" onclick="mobileAuthNumberCheck();" />
<input type="button" value="취소" onclick="mobileAuthRequestCancel();" />
</span>
<br /><span>※ 유선번호로 등록하시려면 (1544-9642 문자전송시스템 담당자)로 연락바랍니다.</span>
</td>
</tr>
<tr>
<th scope="row">부서</th>
<td>
<ul>
<li>
<select class="select_basic ess" style="width:150px;" id="p_buseo" name="p_buseo" onchange="buseo_select_view(this.value);">
<%
If Not( isnull(buseo_data1) ) Then
For i = 0 To ubound(buseo_data1, 2)
p_bdm_idx = buseo_data1(0, i)
p_bdm_menuname = buseo_data1(1, i)
%>
<option value="<%=p_bdm_idx%>" <%=chkSelect(p_bdm_idx, get_bdm_idx2(bdm_idx))%>><%=p_bdm_menuname%></option>
<%
next
End if
%>
</select>
</li>
<li>
<%
If Not( isnull(buseo_data1) ) Then
For i = 0 To ubound(buseo_data1, 2)
p_bdm_idx = buseo_data1(0, i)
p_bdm_menuname = buseo_data1(1, i)
%>
<select class="select_basic ess" style="width:100px;display:none;" id="bdm_idx_<%=p_bdm_idx%>" name="bdm_idx" disabled="disabled">
<%
sql = "select bdm_idx, bdm_menuname from bd_menu_page where bdm_ref = '" & p_bdm_idx & "' and bdm_chk = 'Y' order by bdm_code"
Set rs = dbcon.execute( sql )
If rs.bof Or rs.eof Then
buseo_data2 = null
Else
buseo_data2 = rs.getrows
End If
Set rs = Nothing
If Not( isnull( buseo_data2 ) ) Then
For z = 0 To Ubound(buseo_data2, 2)
c_bdm_idx = buseo_data2(0, z)
c_bdm_menuname = buseo_data2(1, z)
%>
<option value="<%=c_bdm_idx%>" <%=chkSelect(bdm_idx, c_bdm_idx)%>><%=c_bdm_menuname%></option>
<%
next
End if
%>
</select>
<%
next
End if
%>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
<div class="btngroup">
<ul class="btn_nrm column2">
<li><input type="submit" class="nrm1" value="개인정보수정" style="width:200px;" /></li>
<!-- <li><a href="javascript: secede();" class="nrm2">회원탈퇴</a></li> -->
</ul>
</div>
</div>
<!-- //개인정보수정 -->
</form>
<form id= "frm_addr" method='post' action="">
<div>
<input type="hidden" name="ZC_SG" />
</div>
</form>
<script type="text/javascript">
<!--
function sendit(){
var eForm = document.getElementById("frm");
if(eForm.mobile_auth.value != "Y"){
alert("휴대폰 번호를 인증받아야 문자발송이 가능합니다.");
eForm.button_auth_request.focus();
return false;
}
if(!valueChk(eForm.m_pwd, "비밀번호")){
return false;
}
if(eForm.m_pwd.value != eForm.m_pwdchk.value){
alert("비밀번호를 다시 확인하세요.");
eForm.m_pwdchk.focus();
return false;
}
<%if mc_nickname="Y" and mc_nickname_req="Y" then %>
if(!valueChk(eForm.m_nickname, "닉네임")){return false;}
<%end if%>
<%if mc_birth="Y" and mc_birth_req="Y" then %>
if(!valueChk(eForm.m_birth_Y, "생년월일")){return false;}
if(!valueChk(eForm.m_birth_M, "생년월일")){return false;}
if(!valueChk(eForm.m_birth_D, "생년월일")){return false;}
<%end if%>
<%if mc_email="Y" and mc_email_req="Y" then %>
if(!isCorrectEmail(eForm.m_email)){return false;}
<%end if%>
<%if mc_phone="Y" and mc_phone_req="Y" then %>
if(!valueChk(eForm.m_phone1, "전화번호")){return false;}
if(!valueChk(eForm.m_phone2, "전화번호")){return false;}
if(!valueChk(eForm.m_phone3, "전화번호")){return false;}
<%end if%>
<%if mc_mobile="Y" and mc_mobile_req="Y" then %>
if(!valueChk(eForm.m_mobile1, "휴대폰번호")){return false;}
if(!valueChk(eForm.m_mobile2, "휴대폰번호")){return false;}
if(!valueChk(eForm.m_mobile3, "휴대폰번호")){return false;}
<%end if%>
<%if mc_fax="Y" and mc_fax_req="Y" then %>
if(!valueChk(eForm.m_fax1, "팩스번호")){return false;}
if(!valueChk(eForm.m_fax2, "팩스번호")){return false;}
if(!valueChk(eForm.m_fax3, "팩스번호")){return false;}
<%end if%>
<%if mc_addr="Y" and mc_addr_req="Y" then %>
if(!valueChk(eForm.m_zip1, "주소")){return false;}
if(!valueChk(eForm.m_zip1, "주소")){return false;}
if(!valueChk(eForm.m_addr1, "주소")){return false;}
if(!valueChk(eForm.m_addr2, "상세주소")){return false;}
<%end if%>
<%if mc_marrydate="Y" and mc_marrydate_req="Y" then %>
if(document.getElementById("m_marry_Y").checked){
if(!valueChk(eForm.m_marrydate_Y, "결혼기념일")){return false;}
if(!valueChk(eForm.m_marrydate_M, "결혼기념일")){return false;}
if(!valueChk(eForm.m_marrydate_D, "결혼기념일")){return false;}
}
<%end if%>
<%if mc_homepage="Y" and mc_homepage_req="Y" then %>
if(!valueChk(eForm.m_homepage, "홈페이지")){return false;}
<%end if%>
<%if mc_job="Y" and mc_job_req="Y" then %>
if(!valueChk(eForm.m_job, "직업")){return false;}
<%end if%>
<%if mc_text="Y" and mc_text_req="Y" then %>
if(!valueChk(eForm.m_text, "남기는말씀")){return false;}
<%end if%>
}
function valueChk(obj, objName){
//text필드
if(obj.value.split(" ").join("") == ""){
alert(objName+"을(를) 입력하세요");
try{
obj.focus();
}
catch(e){
}
return false;
}
else{
return true;
}
}
//E-mail 체크
function isCorrectEmail(obj) {
var i;
var check=0;
var dot=0;
var before = "";
var after = "";
if(obj.value.length == 0){
alert("이메일을 입력하세요");
obj.focus();
return(false);
}
for(i=0; i<obj.value.length; i++) {
if(obj.value.charAt(i) == '@') {
check = check + 1;
}
else if(check == 0) {
before = before + obj.value.charAt(i);
}
else if(check == 1) {
after = after + obj.value.charAt(i);
}
}
if( check >= 2 || check == 0 ) {
alert("잘못된 전자우편 주소입니다.");
obj.focus();
obj.select()
return(false);
}
for(i=0; i<before.length; i++) {
if(!((before.charAt(i) >= 'A' && before.charAt(i) <= 'z') ||
(before.charAt(i) >= '0' && before.charAt(i) <= '9') ||
(before.charAt(i) == '_') || (before.charAt(i) == '-'))) {
alert("잘못된 전자우편 주소입니다.");
obj.focus();
obj.select()
return(false);
}
}
for(i=0; i<after.length; i++) {
if(!((after.charAt(i) >= 'A' && after.charAt(i) <= 'z') ||
(after.charAt(i) >= '0' && after.charAt(i) <= '9') ||
(after.charAt(i) == '_') || (after.charAt(i) == '.') ||
(after.charAt(i) == '-'))) {
alert("잘못된 전자우편 주소입니다.");
obj.focus();
obj.select()
return(false);
}
}
for(i=0; i<after.length; i++) {
if(after.charAt(i) == '.') {
dot = dot + 1;
}
}
if( dot < 1 ) {
alert("잘못된 전자우편 주소입니다.");
obj.focus();
obj.select()
return(false);
}
return(true);
}
function SetNum(obj){
//숫자만 입력
val=obj.value;
re=/[^0-9]/gi;
obj.value=val.replace(re,"");
}
function secede(){
var eForm = document.getElementById("frm");
if(!valueChk(eForm.m_pwd, "비밀번호")){
return ;
}
if(eForm.m_pwd.value != eForm.m_pwdchk.value){
alert("비밀번호를 다시 확인하세요.");
eForm.m_pwdchk.focus();
return ;
}
if(confirm("정말 탈퇴하시겠습니까?")){
eForm.action="/content/member/secede_ok.asp";
eForm.submit();
}
}
//-->
</script>