<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*,com.csc.library.utilities.*"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*"  %>
<jsp:useBean id="logout" class="com.csc.library.system.Task" scope="page"/>
<%
	logout.setChannel(request,response);
	logout.checkProfile();
	UProfile uf=(UProfile)session.getAttribute("userprofile");
	if( uf != null ){		
		String userID=uf.getUserId();
		//logout.saveLogoutLog(uf);			
	}
	session.invalidate();	
%>
<script language="javascript">
function  logout(){
	location="INDEX.jsp";
}

function setTimer(){
	setTimeout("logout()",2000);
}

</script>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
body {
	margin: 0px;
}
-->
</style>
<head>
<title>Logout.jsp</title>
</head>
<body  onload="setTimer();">
<form name="cscform" method="post" target="_top">
  <!----------BEGIN CSC INITIAL ZONE ------------------------>
  <%//=screen.InitialVariable()%>
  <!----------END CSC INITIAL ZONE -------------------------->
  <table id="Table_01" width="800" height="600" border="0" cellpadding="0" cellspacing="0" align="center">
	<tr>
		<td rowspan="4">
			<img src="IMAGES/YUM_01.gif" width="108" height="600" alt=""></td>
		<td rowspan="4">
			<img src="IMAGES/YUM_02.gif" width="116" height="600" alt=""></td>
		<td rowspan="4">
			<img src="IMAGES/YUM_03.gif" width="185" height="600" alt=""></td>
		<td>
			<img src="IMAGES/YUM_04.gif" width="379" height="27" alt=""></td>
		<td rowspan="4">
			<img src="IMAGES/YUM_05.gif" width="12" height="600" alt=""></td>
	</tr>
	<tr>
		<td>
			<table width="379" height="252" border="0" cellspacing="3" cellpadding="3" background="IMAGES/YUM_06.gif">
                      <tr>
                        <td><p align="center"><font color="#FF0000" size="5" face="MS Sans Serif, Tahoma, sans-serif">ออกจากระบบ</font><br>
                            <b><font color="#999999" size="5" face="MS Sans Serif, Tahoma, sans-serif">กรุณารอสักครู่................</font></b><font color="#999999" size="5"></font></p></td>
                      </tr>
                    </table>
            </td>
	</tr>
	<tr>
		<td>
			<img src="IMAGES/YUM_07.gif" width="379" height="174" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="IMAGES/YUM_08.gif" width="379" height="147" alt=""></td>
	</tr>
</table>
</form>
</body>
</html>