<%@ include file="/includes.jsp" %>
<!-- /emdt/tiles/layout.jsp -->
<tiles:importAttribute />
<table width="100%" height="100%">
	<tr>
		<td valign="top" height="10px">
			<tiles:insertTemplate template="emdtTopHeader.jsp" >
				<tiles:putAttribute name="pageTitle" value="${pageTitle}"></tiles:putAttribute>
			</tiles:insertTemplate>
		</td>
	</tr>

	<tr>
		<td valign="top" height="10px">
			<tiles:insertTemplate template="patientDemographics.jsp" flush="true"/>
		</td>
	</tr>

	<tr>
		<td valign="top" height="10px">
			<tiles:insertTemplate template="emdtMenu.jsp" flush="true"/>
		</td>
	</tr>
	
	<tr>
	
		<td style="padding: 2px;" valign="top" align="center">
			<c:if test="${not empty  error}">
				<table width="400px" cellpadding="4" >
					<tr> <td><span class="error"> <c:out value="${error}" /> </span> </td> </tr>
				</table>
			</c:if>
			<c:if test="${not empty  message}">
				<table width="400px" cellpadding="4">
					<tr> <td> <span class="message"><c:out value="${message}"/></span> </td> </tr>
				</table>
			</c:if>
			<tiles:insertTemplate template="${innerContent}"/>
		</td>
	</tr>
</table>