<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
    String stt= request.getParameter("stt");  
    if (stt == null) {stt = "null";}
    %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel=stylesheet href="images/style.css" type=text/css>
<link rel=stylesheet href="images/AjaxForm.css" type=text/css>
<script type="text/javascript" src="js/Contact.js"></script>
<script>document.getElementById("titleCustomer").innerHTML = "Liên Hệ";</script>
<title>Contact</title>
</head>
<body>
<% if (stt.equals("ok")) {%>
<br>
<div align="Center" style="border:1px solid #cfcfcf;padding:25px 10px 20px 10px;background-color:#f3f3f3; width:350px ">
<b>Liên hệ của bạn đã được gửi đi</b>
</div>
<% } if (stt.equals("fail")) { %>
<br>
<div align="Center" style="border:1px solid #cfcfcf;padding:20px 10px 20px 10px;background-color:#f3f3f3; width:350px ">
<b><font color="red">Không thể kết nối Internet</font></b>
</div>
<% } else { %>


<br>
<div align="Center" style="border:1px solid #cfcfcf;padding:25px 10px 10px 10px;background-color:#f3f3f3; width:350px ">
<form action="Contact" method="post" onsubmit="return validate(this);">
<center><b>KHÁCH HÀNG LIÊN HỆ</b></center><bR><bR>
<table>
	<tr>
		<td>Tên thật</td>
		<td><input type="text" size="24" id="realname" name="realname" /></td>
	</tr>
	<tr>
		<td>Email</td>
		<td><input type="text" size="24" id="email" name="email" /></td>
	</tr>
	<tr>
		<td>Tiêu đề</td>
		<td><input type="text" size="24" id="subject" name="subject" /></td>
	</tr>
	<tr>
		<td>Nội dung</td>
		<td><textarea class="UniXT" rows="14" cols="32" id="content" name="content"></textarea></td>
	</tr>
	<tr><td><input type="submit" class="UniXT" value="Gửi liên hệ"></td><td></td></tr>
</table>
</form>
</div>
<br><br>
<% } %>
</body>
</html>