<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<%@ page session="true" %>
<% request.setCharacterEncoding("EUC-KR"); 
%>
<script>
function Re(){
	location.href="http://localhost:8080/Park20162515/Main.jsp";
}
</script>
<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>회원가입</title>
</head>
<body bgcolor="#777777" style="color : #eeeeee; width:750px; margin: 0 auto;">
<%
	if(session.getAttribute("login").equals("1")){
		%> <script>alert('잘못된 접근입니다.'); location.href="http://localhost:8080/Park20162515/Main.jsp"</script><%
	}else {
		%><jsp:include page="Offline.jsp" /><%
	}
%>
<hr>
<h1>회 원 가 입</h1>
<form method="post" action="JoinPro.jsp" onsubmit="Check();">
<table border="1" bgcolor="#eeeeee" style="color : #777777 ">
<tr>
<th  >사용자 ID</th>
<td colspan="3"  ><input type="text" name="ID" id="ID"></td>
</tr>
<tr>
<th >비밀번호</th>
<td  ><input type="password" name="PW1"></td>
<th  >비밀번호확인</th>
<td  ><input type="password" name="PW2"></td>
</tr>
<tr>
<th  >사용자 이름</th>
<td   colspan="3"><input type="text" name="Name"></td>
</tr>
<tr>
<th  >생년월일</th>
<td   colspan="3"><input type="date" name="Birth"></td>
</tr>
<tr>
<th  >우편번호</th>
<td   colspan="3"><input type="text" name="ZipCode1">-<input type="text" name="ZipCode2"></td>
</tr>
<tr>
<th  >주소</th>
<td   colspan="3"><input type="text" name="Zip1"></td>
</tr>
<tr>
<th  >나머지주소</th>
<td   colspan="3"><input type="text" name="Zip2"></td>
</tr>
<tr>
<th  >E-Mail</th>
<td   colspan="3"><input type="text" name="Email1">@
<select name="Email2">
<option value="0">선택하세요</option>
<option value="naver.com">naver.com</option>
<option value="daum.net">daum.net</option>
<option value="gmail.com">gmail.com</option>
<option value="daum.net">nate.com</option>
</select></td>
</tr>
<tr>
<th  >직업</th>
<td  colspan="3"><select name="Job">
<option value="학생">학생</option>
<option value="선생님">선생님</option>
<option value="백수">백수</option>
<option value="직장인">직장인</option>
<option value="교수">교수</option>
<option value="기타">기타</option>
</select></td>
</tr>
<tr>
<th   colspan="4">
<input type="submit" value="등록">&nbsp;<input type="reset" onClick="Re();" value="취소">
</th>
</tr>
</table>
</form>
</body>
</html>