<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">

<title>회원가입</title>
<link href="member.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
 
function check(){
	var str1
	var str2
	var str3
	var str4
	var str5
	var str6
	var str7
	str1=document.frm.id.value
	str2=document.frm.password1.value
	str3=document.frm.password2.value
	str4=document.frm.name.value
	str5=document.frm.birth.value
	str6=document.frm.tel.value
	str7=document.frm.address1.value
	str8=document.frm.address2.value
	str9=document.frm.address3.value
	str10=document.frm.address4.value
	str11=document.frm.email.value
	str12=document.frm.mail.value
	str13=document.frm.job.value
	if(str1==''){
		alert("아이디를 입력해주세요");
		
	}
	else if(str2==''){
		alert("비밀번호를 입력해주세요");
		
	}
	else if(str3==''){
		alert("비밀번호 확인을 입력해주세요");
		
	}
	else if(str4==''){
		alert("사용자이름을 입력해주세요");
		
	}
	else if(str5==''){
		alert("년도를 입력해주세요");
		
	}
	else if(str6==''){
		alert("전화번호를 입력해주세요");
		
	}
	else if(str7==''){
		alert("우편번호를 입력해주세요");
		
	}
	else if(str8==''){
		alert("우편번호를 입력해주세요");
		
	}
	else if(str9==''){
		alert("주소를 입력해주세요");
		
	}
	else if(str10==''){
		alert("나머지 주소를 입력해주세");
		
	}
	else if(str11==''){
		alert("이메일를 입력해주세요");
		
	}
	
	else if(str12=='default'){
		alert("이메일주소를 선택해주세요");
		
	}
	else if(str13==''){
		alert("직업을 입력해주세요");
		
	}
	else{
		document.frm.submit();
	      return true;
}
}
</script>
</head>
<body>
<div id="web">
 <div class="top">
 <div class="top_space">
 <div class="top_manu">
 <ul>
 <li>
 <a href="main.jsp"> 
 <span class="homeIcon"></span>메인페이지</a>
    </li>
    <li>
    <a href="loginForm.jsp">
    <span class="loginIcon"></span>로그인</a>
    </li>
    <li>

 <a href="memberForm.jsp"><span class="signIcon"></span>회원가입</a>
 </li>
 </ul>
 </div></div><hr style="border:solid 0.7px #BDBDBD;"></div>

<main id="main">
  <div class="main_membert1space">
 <div class="main_membert1size">
  <div class="main_membert1">
  <table border="0" width="550px" height="45px"align="center"cellspacing="0" >
<tr><td align="center" >회원가입<br><br><hr></td></tr>
</table>
 </div>
 </div>
 </div>
<div class="main_membert2space">
 <div class="main_membert2size">
  <div class="main_membert2">
  <form method="post" action="memberPro.jsp" name="frm" onSubmit="check();return false;"><br>
<table border="0" width="550px" height="700"  align="center" cellspacing="0"  class="text3">
<tr><td ><strong>사용자 ID</strong></td>
<td colspan="3"><input type="text" name="id" maxlength="50" size="19" style=" height:25px; width:145px;">  
<input type="button" class="btn1" value="중복확인 " ></td></tr>
<tr><td ><strong>비밀번호</strong></td>
<td><input type="password" name="password1" placeholder="비밀번호"maxlength="50"style=" height:25px; width:145px;"></td>
<td ><strong>비밀번호 확인</strong></td>
<td><input type="password" name="password2" placeholder="비밀번호 확인"  maxlength="50" style=" height:25px; width:145px;"></td>
</tr>
<tr><td><strong>사용자 이름</strong></td>
<td colspan="3"><input type="text" name="name" size="19" maxlength="50" style=" height:25px; width:145px;"></td></tr>
<tr><td><strong>성별</strong></td>
<td colspan="3"><input type="radio" name="gender" value="남자" checked="checked"/><strong>남자</strong>
<input type="radio" name="gender" value="여자" /><strong>여자</strong></td></tr>
<tr> <td><strong>생년 월일</strong> </td>
<td  colspan="3"> <input type="text" name="birth"  maxlength="50" size="19" style=" height:25px; width:145px;">년
<select name="m" style=" height:25px;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>월
<select name="d" style=" height:25px;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>일</td>
</tr>
<tr><td><strong>전화번호</strong></td>
<td colspan="3"><input type="tel" name="tel"  placeholder="000-0000-0000"  maxlength="50" size="19" style=" height:25px; width:145px;">
<input type="button" class="btn1" value=" 번호인증 "></td></tr>
<tr><td><strong>우편번호</strong></td>
<td colspan="3"><input type="text" name="address1" maxlength="50" size="19" style=" height:25px; width:145px;"> -
<input type="text" name="address2" size="19" style=" height:25px; width:145px;">
<input type="button" class="btn1" value=" 우편번호" ></td></tr>
<tr> <td><strong>주소</strong></td>
<td colspan="3"><input type="text" name="address3" maxlength="50" size="19" style=" height:25px; width:145px;"></td></tr>
<tr><td><strong>나머지 주소</strong></td>
<td colspan="3"><input type="text" name="address4" maxlength="50" size="19" style=" height:25px; width:145px;"></td></tr>
<tr><td><strong>이메일</strong></td>
<td  colspan="3"><input type="text" name="email"  maxlength="50" size="19" style=" height:25px; width:145px;"> @ 
<select name="mail" style=" height:25px;">
<option value="default">선택하세요</option>
<option value="naver.com">naver.com</option>
<option value="nate.com">nate.com</option>
<option value="daum.com">daum.net</option>
</select></tr>

<tr> <td><strong>직업</strong></td>
<td colspan="3"><input type="text" name="job" maxlength="50" size="19" style=" height:25px; width:145px;"></td></tr>
<tr><td colspan="4" align="center">

<hr>
<br>
<input type="submit" value=" 등록" name="ok"   class="btn1" >
<input type="reset" value=" 취소" class="btn1"></td></tr>
</table>
</form>
  </div>
 </div>
 </div>
 </main>
 <bottom id="bottom">
 </bottom>
 </div>
</body>
</html>
