<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ page import="org.apache.struts.Globals" %>
<%@ page import="org.apache.struts.action.ActionMessages" %>

<!-- Import the tile parameters -->
<tiles:importAttribute name="bundle" ignore="true" scope="request" />
<tiles:importAttribute name="title"  ignore="false" scope="request" />
<tiles:importAttribute name="helpIdName" ignore="true" scope="request" />
<tiles:importAttribute name="enableMessages" ignore="false" scope="request" />
<tiles:importAttribute name="pageName" ignore="false" scope="request" />
<tiles:importAttribute name="onLoadMethodName" ignore="true" scope="request"/>

<!-- If resource bundle name is provided get the message from that resource bundle -->
<c:if test="${not empty bundle}">
	<c:set var="pageTitle"><bean-el:message bundle="${bundle}" key="${title}" /></c:set>
</c:if>

<!-- If resource bundle name is not provided get the message from the default resource bundle -->
<c:if test="${empty bundle}" >
	<c:set var="pageTitle"><bean-el:message key="${title}" /></c:set>
</c:if>
<head>
	<title><c:out value="${pageTitle}" /></title>
	<!-- <link href="../stylesheets/ESR_structure.css" rel="stylesheet" type="text/css"> -->
<!--	<link href="stylesheets/ESR_structure.css" rel="stylesheet" type="text/css"> -->
</head>
<%@ include file="commonHeaderIncludes.jsp" %>
<!-- <script language="JavaScript" src="../scripts/ESR-Script.js"></script> -->
<!-- <script language="JavaScript" src="../scripts/RoboHelp_CSH.js"></script> -->
<!-- <script language="JavaScript" src="scripts/RoboHelp_CSH.js"></script> -->
<noscript>Java Script Disabled on your browser. Please Enable it. </noscript> 

<body bgcolor="#E8EDF7" onLoad="<c:out value="${onLoadMethodName}"/>">
<span style='display:none' id='serverSessionTimeout'><%=sessionTimeout%></span>
<table width="100%" border="0" cellspacing="0" cellpadding="0" role="presentation">
	<tiles:insert attribute="header" />
 	<tr>
  		<td colspan="3" valign="top" class="conWellBkg">
			<table valign="top" height="100%" width="100%" border="0" cellspacing="0" cellpadding="0" style="padding: 0 10 0 10" role="presentation">
                <tr height="10"><td></td></tr> <!-- row spacing -->

                <c:if test="${(empty enableMessages) or enableMessages == 'true'}">
                <tr>
                  <td align="left" valign="top">
                    <%@ include file="/tiles/common/errorMessage.jsp" %>
                  </td>
                </tr>
                <tr>
                  <td align="left" valign="top">
                    <%@ include file="/tiles/common/informationMessage.jsp" %>
                  </td>
                </tr>
			    </c:if>

        <tr align="center">
				  <td valign="top">
            <a name="ContentArea" id = "ContentArea"/>
				    <tiles:insert attribute="content" />
				  </td>
				</tr>
				<tr align="center">
		 		  <td height="140">&nbsp;</td>
				</tr>
			</table>
  		</td>
 	</tr>
 	<tr>
      <tiles:insert attribute="footer" />
 	</tr>
</table>
</body>

<script type="text/javascript" language="javascript">
	getESCache().disableSessionTimers=true;
	pageSetup();
</script>
