<%@ include file="/includes.jsp"%>
<%@ taglib prefix="smvc" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<c:set var="browser" value="${header['User-Agent']}" scope="page" />
<style>
	select {
		min-width: 18px;
		width: 215px;
		max-width: 215px;
	}
</style>
<script>

	function updateSpecialistFields(index){
		var id='tempSpecialityId'+index;
		var userString=document.getElementById(id).value;
		var mySplitResult = userString.split(",");
		var str=mySplitResult[0];
		var rest = str.substring(0, str.lastIndexOf(" ") + 1);
		var last = str.substring(str.lastIndexOf(" ") + 1, str.length);
		document.getElementById('referringSpecialistsurname').value=last;
		document.getElementById('referringSpecialistforename').value=rest;
		document.getElementById('referringSpecialistemail').value=mySplitResult[1];
	}
</script>
<script src="../js/ReferralsDefinition.js" type="text/javascript"></script>
<script type="text/javascript">
	if (!String.prototype.trim) {
		(function() {
			// Make sure we trim BOM and NBSP
			var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
			String.prototype.trim = function() {
				return this.replace(rtrim, '');
			};
		})();
	}

	function selectClinicianforTheSelectedHospital(){
		if (!document.getElementById("selectedHospital"))
			return;
		var selectedHospitalId= document.getElementById("selectedHospital").value;
		var select=document.getElementById("clinician");

		if(select!=null){
			for(var i = 1; i <=select.options.length; i++) {
				select.options.remove(i);
				select=document.getElementById("clinician");
			}
			select.innerHTML = "";


		}
		if(selectedHospitalId==""){

		}else{
			var hospitalselected = "hospital"+selectedHospitalId;
			var locationList = document.getElementById(hospitalselected).value;
			if(locationList.charAt(0) == '['){
				locationList= locationList.substr(1);
			}
			if(locationList.charAt(locationList.length-1) == ']'){
				locationList= locationList.substr(0,locationList.length-1);
			}

			var res = locationList.split(",");
			for(var i = 0; i <res.length; i++) {
				var opt = new Option(res[i].trim(),res[i].trim());
				select.options[i] = opt;
			}
		}
	}
</script>

<c:if
		test="${referralPatientDto.currentCareSpell.referralsDefinition ne null || emdt.currentCareSpell.referralsDefinition ne null}">
	<c:choose>
		<c:when
				test="${referralPatientDto.currentCareSpell.referralsDefinition ne null}">
			<c:set var="referralsDefinition" value="${referralPatientDto.currentCareSpell.referralsDefinition}"/>
		</c:when>
		<c:otherwise>
			<c:set var="referralsDefinition" value="${emdt.currentCareSpell.referralsDefinition}" />
		</c:otherwise>
	</c:choose>
</c:if>
<div class="rowDiv">
	<div class="fieldSetBoxRadios"  style='display:none;'>
		<div class="legendBox"><c:out value="${centralHubHospital.hospitalName}"/>
			Clinicians</div>
		<div class="legendBoxWrapper">
			Submit To Clinician:
			<smvc:select path="referredTo" id="referredTo">
				<c:choose>
					<c:when test="${referralsDefinition ne null }">
						<c:forEach var="clinicians"	items="${referralsDefinition.clinicians}">
							<smvc:option value="${clinicians.username}"><c:out value="${clinicians.name}"/></smvc:option>
						</c:forEach>
					</c:when>
					<c:otherwise>
						<c:forEach var="managementClinicians" items="${webapp.allManagementClinicians}">
							<smvc:option value="${managementClinicians.username}"><c:out value="${managementClinicians.name}"/></smvc:option>
						</c:forEach>
					</c:otherwise>
				</c:choose>
				<option value="Any">Any</option>
			</smvc:select>
		</div>
	</div>
</div>
<div class="rowDiv">
	<div class="fieldSetBoxRadios">
		<div class="legendBox">Priority</div>
		<div class="legendBoxWrapper">
			Priority:
			<webapp:selectAndEditList path="referralPatient.priority"  domain="EMDT" list="PatientPriority" includeEmpty="false" disabled="${editDisabled}" currentValue="${referralPatientDto.referralPatient.priority}" />
		</div>
	</div>
</div>
<!--
<div class="rowDiv">
<div class="fieldSetBoxRadios">
<div class="legendBox">Referral Method</div>
<div class="legendBoxWrapper">
Referral Method:
<c:set var="referralMethod" value="${currentCareSpell.referralDetails.referralMethod}"/>
<c:if test="${empty currentCareSpell.referralDetails.referralMethod}">
	<c:set var="referralMethod" value="${webapp.defaultReferralMethod}"></c:set>
</c:if>
<webapp:selectAndEditList path="currentCareSpell.referralDetails.referralMethod"  domain="EMDT" list="referralMethod"
						  includeEmpty="false" disabled="${editDisabled}"/>" currentValue="${referralMethod}" />
</div>
</div>
</div>
-->
<div class="pdLeftColumn">
	<div class="fieldSetSectionHolder">
		<div class="fieldSetBox">
			<div class="legendBox">Patient Details</div>
			<div class="legendBoxWrapper">
				<table>
					<tr>
						<td class="label">Hospital Number</td>
						<td class="input">
							<smvc:input path="referralPatient.hospitalNumber" />
						</td>
					</tr>
					<tr>
						<td class="label">NHS Number</td>
						<td class="input">
							<smvc:input path="referralPatient.nhsNumber" id="nhsNumberId" />
						</td>
					</tr>
					<tr>
						<td class="label">Title</td>
						<td class="input">
							<smvc:input path="referralPatient.title" cssClass="mediumTxtBox"
										maxlength="255" />
						</td>
					</tr>
					<tr>
						<td class="label"><b>Surname</b></td>
						<td class="input">
							<smvc:input path="referralPatient.surname" maxlength="255" />
						</td>
					</tr>
					<tr>
						<td class="label">First name</td>
						<td class="input">
							<smvc:input path="referralPatient.forename" maxlength="255" />
						</td>
					</tr>
					<tr>
						<td class="label"><span>Date of Birth</span></td>
						<td class="input">
							<spring:bind path="strDateOfBirth">
								<input id="strDateOfBirth" name="strDateOfBirth" type="text" value="<c:out value="${referralPatientDto.strDateOfBirth}"/>" placeholder="dd/mm/yyyy" class="mediumTxtBox"/>
							</spring:bind>
							<img title='Click to choose date' style='cursor: pointer'
								 src='../images/16x16/date.png' id='strDateOfBirth_DateTrigger' />
						</td>
					</tr>
					<tr>
						<td class="label"><span>Date of Death</span></td>
						<td class="input">
							<spring:bind path="strDateOfDeath">
								<input id="strDateOfDeath" name="strDateOfDeath" type="text" value="<c:out value="${referralPatientDto.strDateOfDeath}"/>" placeholder="dd/mm/yyyy" class="mediumTxtBox"/>
							</spring:bind>
							<img title='Click to choose date' style='cursor: pointer'
								 src='../images/16x16/date.png' id='strDateOfDeath_DateTrigger' />
						</td>
					</tr>
					<tr>
						<td class="label"><span>Sex</span></td>
						<td class="input">
							<label> <webapp:selectAndEditList domain="EMDT" patientInfoReadonly="${isPatientInfoReadonly}"
															  path="referralPatient.sex" list="SexCode"
															  currentValue="${referralPatientDto.referralPatient.sex}"
															  includeEmpty="true" /> </label>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>

<div class="pdRightColumn">
	<div class="fieldSetSectionHolder">
		<div class="fieldSetBox">
			<div class="legendBox">Patient Address</div>
			<div class="legendBoxWrapper">
				<table>
					<tr>
						<td class="label">Address</td>
						<td class="input"><span class="inputLabel"> <smvc:textarea
								path="referralPatient.address" cols="20" rows="3" /> </span></td>
					</tr>
					<tr>
						<td class="label">Postcode</td>
						<td class="input"><smvc:input path="referralPatient.postcode"
													  cssClass="mediumTxtBox" maxlength="255" /></td>
					</tr>
					<tr>
						<td class="label">Country</td>
						<td class="input"><smvc:input path="referralPatient.country"
													  maxlength="255" />
						</td>
					</tr>
					<tr>
						<td class="label">Home Phone</td>
						<td class="input"><smvc:input
								path="referralPatient.homePhoneNumber" maxlength="255" />
						</td>
					</tr>
					<tr>
						<td class="label">Mobile Phone</td>
						<td class="input"><smvc:input
								path="referralPatient.mobilePhoneNumber" maxlength="255" /></td>
					</tr>
					<tr>
						<td class="label">Work Phone</td>
						<td class="input"><smvc:input
								path="referralPatient.workPhoneNumber" maxlength="255" /></td>
					</tr>
					<tr>
						<td class="label">Email Address</td>
						<td class="input"><smvc:input
								path="referralPatient.emailAddress" maxlength="255" /> <img
								src="../emdt/images/imgEmailIcon.gif" alt="" /></td>
					</tr>
				</table>
			</div>
		</div>
	</div>

</div>

<c:if test="${webapp.properties['emdt.patientInfo.showAllergies'] ne false }">
	<div class="rowDiv" style="width: 100%;">
		<div class="fieldSetBox">
			<div class="legendBox">Allergies</div>
			<div class="legendBoxWrapper">
				<smvc:textarea path="referralPatient.allergies"  rows="3" disabled="${isPatientInfoReadonly}" cssStyle="width: 100%;" />
			</div>
		</div>
	</div>
</c:if>


<div class="pdLeftColumn">

<c:if test="${emdt.prefShowPatientInfoExtraDemographics}">
		<div class="fieldSetSectionHolder">
			<div class="fieldSetBox">
				<div class="legendBox">Additional Patient Details</div>
				<div class="legendBoxWrapper">
					<table>
						<tr>
							<td class="label">Marital Status</td>
							<td class="input"><webapp:selectAndEditList domain="EMDT" patientInfoReadonly="${isPatientInfoReadonly}"
																		path="referralPatient.maritalStatus" list="MaritalStatus" currentValue="${referralPatientDto.referralPatient.maritalStatus}" includeEmpty="true" />
							</td>
						</tr>
						<tr>
							<td class="label">Nationality</td>
							<td class="input"><webapp:selectAndEditList path="referralPatient.nationality" patientInfoReadonly="${isPatientInfoReadonly}" domain="EMDT"
																		list="Nationality" currentValue="${referralPatientDto.referralPatient.nationality}" includeEmpty="true" />
							</td>
						</tr>
						<tr>
							<td class="label">Language</td>
							<td class="input">
								<webapp:selectAndEditList path="referralPatient.language" patientInfoReadonly="${isPatientInfoReadonly}" domain="EMDT"
														  list="Language" currentValue="${referralPatientDto.referralPatient.language}" includeEmpty="true" />
							</td>
						</tr>
						<tr>
							<td class="label">Religion</td>
							<td class="input"><webapp:selectAndEditList path="referralPatient.religion" patientInfoReadonly="${isPatientInfoReadonly}" domain="EMDT"
																		list="Religion" currentValue="${referralPatientDto.referralPatient.religion}" includeEmpty="true" />
							</td>
						</tr>
						<tr>
							<td class="label">Ethnic Group</td>
							<td class="input">
								<webapp:selectAndEditList path="referralPatient.ethnicity" patientInfoReadonly="${isPatientInfoReadonly}" domain="EMDT"
														  list="Ethnicity" currentValue="${referralPatientDto.referralPatient.ethnicity}" includeEmpty="true" />
							</td>
						</tr>
						<tr>
							<td class="label">Occupation</td>
							<td class="input"><smvc:input
									path="referralPatient.occupation" maxlength="255" /></td>
						</tr>
						<tr>
							<td>Reg. Disabled</td>
							<td>
								<smvc:radiobutton value="Yes" path="referralPatient.registeredDisabled" /> Yes &nbsp;&nbsp;
								<smvc:radiobutton value="No" path="referralPatient.registeredDisabled" /> No &nbsp;&nbsp;
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>

	</c:if>
	<c:if test="${emdt.prefShowPatientInfoNextOfKin}">
		<div class="fieldSetSectionHolder marginBottomNone">
			<div class="fieldSetBox">
				<div class="legendBox">Next of Kin</div>
				<div class="legendBoxWrapper">
					<table>
						<tr>
							<td class="label">Surname</td>
							<td class="input"><smvc:input path="referralPatient.nokSurname" maxlength="255" /></td>
						</tr>
						<tr>
							<td class="label">First Name</td>
							<td class="input"><smvc:input path="referralPatient.nokForenames" maxlength="255" /></td>
						</tr>
						<tr>
							<td class="label">Telephone</td>
							<td class="input"><smvc:input path="referralPatient.nokTelephoneNumber1" maxlength="255" /></td>
						</tr>
						<tr>
							<td class="label">Address</td>
							<td class="input"><span class="inputLabel"> <smvc:textarea path="referralPatient.nokAddress" cols="20" rows="3" /> </span></td>
						</tr>
						<tr>
							<td class="label">Postcode</td>
							<td class="input"><smvc:input path="referralPatient.nokPostcode" maxlength="255" /></td>
						</tr>
						<tr>
							<td class="label"><span>Relationship to patient</span></td>
							<td class="input"><webapp:selectAndEditList path="referralPatient.nokRelationship" patientInfoReadonly="${isPatientInfoReadonly}" domain="EMDT"
																		list="PatientNOKRelationship" currentValue="${referralPatientDto.referralPatient.nokRelationship}" includeEmpty="true" /></td>
						</tr>
					</table>
				</div>
			</div>
		</div>
		<div class="fieldSetSectionHolder txtCenter marginBottomNone">&nbsp;</div>
	</c:if>

</div>

<div class="pdRightColumn">
	<div class="fieldSetSectionHolder">
		<div class="fieldSetBox">
			<div class="legendBox">Referring Specialist</div>
			<div class="legendBoxWrapper">
				<table>
					<tr>
						<td class="label">Job Title</td>
						<td class="input">
							<c:choose>
								<c:when test="${webapp.roleManagement and ('ReferAPatient' ne parentScreen)}">
									<webapp:selectAndEditList path="currentCareSpell.referralDetails.referringSpecialistJobTitle"
															  patientInfoReadonly="${isPatientInfoReadonly}" domain="EMDT" list="ReferringSpecialistJobTitle"
															  currentValue="${referralPatientDto.currentCareSpell.referralDetails.referringSpecialistJobTitle}" includeEmpty="true" />
								</c:when>
								<c:otherwise>
									<webapp:selectAndEditList path="currentCareSpell.referralDetails.referringSpecialistJobTitle" domain="EMDT" list="ReferringSpecialistJobTitle"
															  currentValue="${referralPatientDto.currentCareSpell.referralDetails.referringSpecialistJobTitle}" includeEmpty="true" />
								</c:otherwise>
							</c:choose>
						</td>
					</tr>
					<tr>
						<td class="label">Name</td>
						<td class="input"><c:choose>
							<c:when test="${webapp.roleManagement and ('ReferAPatient' ne parentScreen)}">
								<smvc:input path="currentCareSpell.referralDetails.referringSpecialistUser.username" readonly="true" />
							</c:when>
							<c:otherwise>
								<smvc:select path="selectedReferringSpName" onchange="javascript:updateSpecialistFields(this.selectedIndex);">
									<smvc:option value=""></smvc:option>
									<c:forEach items="${webapp.usersByHospitalIdMap[webapp.currentUser.hospital.id]}" var="mDMBean">
										<c:choose>
											<c:when test="${webapp.userIdUsernameMap[mDMBean] eq referralPatientDto.currentCareSpell.referralDetails.referringSpecialistUser.username}">
												<smvc:option value="${webapp.userIdUsernameMap[mDMBean]}" selected="selected"><c:out value="${webapp.userIdNameMap[mDMBean]}"/></smvc:option>
												<c:set var="selectedReferringSpNameSelected" value="selected"/>
											</c:when>
											<c:otherwise>
												<smvc:option value="${webapp.userIdUsernameMap[mDMBean]}"><c:out value="${webapp.userIdNameMap[mDMBean]}"/></smvc:option>
											</c:otherwise>
										</c:choose>
									</c:forEach>
									<c:if test="${not empty (referralPatientDto.currentCareSpell.referralDetails.referringSpecialistUser.username)  and selectedReferringSpNameSelected ne 'selected'}">
										<smvc:option value="${referralPatientDto.currentCareSpell.referralDetails.referringSpecialistUser.username}" selected="selected"><c:out value="${webapp.userIdNameMap[referralPatientDto.currentCareSpell.referralDetails.referringSpecialistUser.id]}"/></smvc:option>
									</c:if>
								</smvc:select>
								<c:forEach varStatus="loop" items="${webapp.usersByHospitalIdMap[webapp.currentUser.hospital.id]}" var="mDMBean">
									<input type="hidden" id="tempSpecialityId<c:out value="${loop.count}"/>" value="<c:out value="${webapp.userIdNameMap[mDMBean]}"/>,<c:out value="${webapp.userIdEmailMap[mDMBean]}"/>" />
								</c:forEach>
							</c:otherwise>
						</c:choose>
						</td>
					</tr>
					<tr>
						<td class="label">Referring User</td>
						<td class="input"><c:choose>
							<c:when test="${referralPatientDto.currentCareSpell.referralDetails.referredFromUser.username != null}">
								<input type="text" value="<c:out value="${referralPatientDto.currentCareSpell.referralDetails.referredFromUser.username}"/>" readonly="readonly" />
							</c:when>
							<c:otherwise>
								<input type="text" value="<c:out value="${webapp.currentUser.username}"/>" readonly="readonly" />
							</c:otherwise>
						</c:choose>
						</td>
					</tr>
					<tr>
						<td style="display: none;">Overseas or Private Patient <smvc:checkbox path="overseasOrPrivate" /></td>
						<td class="input"><br/></td>
					</tr>
				</table>
			</div>
		</div>
	</div>

	<div class="fieldSetSectionHolder">
		<div class="fieldSetBox">
			<div class="legendBox">Referring Specialist's Address</div>
			<div class="legendBoxWrapper">
				<table>
					<tr>
						<td class="label">Surname</td>
						<td class="input">
							<input value="<c:out value="${referralPatientDto.currentCareSpell.referralDetails.referringSpecialistUser.surname}"/>" maxlength="50" id="referringSpecialistsurname" />
						</td>
					</tr>
					<tr>
						<td class="label">First Name</td>
						<td class="input">
							<input value="<c:out value="${referralPatientDto.currentCareSpell.referralDetails.referringSpecialistUser.forename}"/>"
								   maxlength="50" id="referringSpecialistforename" />
						</td>
					</tr>
					<tr>
						<td class="label">Telephone</td>
						<td class="input"> <smvc:input path="currentCareSpell.referralDetails.referringSpecialistTelephone" maxlength="20" /> </td>
					</tr>
					<tr>
						<td class="label">Fax Number</td>
						<td class="input"><smvc:input path="currentCareSpell.referralDetails.referringSpecialistFax" maxlength="20" /></td>
					</tr>
					<tr>
						<td class="label">Email Address</td>
						<td class="input"><input value="<c:out value="${referralPatientDto.currentCareSpell.referralDetails.referringSpecialistUser.email}"/>"
												 maxlength="50" id="referringSpecialistemail" /> <img src="../emdt/images/imgEmailIcon.gif" alt="" /></td>
					</tr>
					<tr>
						<td class="label"><span>Address</span></td>
						<td class="input"><span class="inputLabel"> <smvc:textarea path="currentCareSpell.referralDetails.referringSpecialistAddress" cols="20" rows="3" /> </span></td>
					</tr>
					<tr>
						<td class="label">Postcode</td>
						<td class="input"><smvc:input path="currentCareSpell.referralDetails.referringSpecialistPostcode" cssClass="mediumTxtBox" maxlength="20" /></td>
					</tr>
				</table>
			</div>
		</div>
	</div>
	<div class="fieldSetSectionHolder">
		<div class="fieldSetBox">
			<div class="legendBox">GP Details</div>
			<div class="legendBoxWrapper">
				<table>
					<tr>
						<td class="label">GMP Code</td>
						<td class="input"><smvc:input path="referralPatient.gpGmpCode" cssClass="mediumTxtBox"  maxlength="255" /></td>
					</tr>
					<tr>
						<td class="label">Surname</td>
						<td class="input"><smvc:input path="referralPatient.gpSurname" maxlength="255" /></td>
					</tr>
					<tr>
						<td class="label">First Name</td>
						<td class="input"><smvc:input path="referralPatient.gpForename" maxlength="255" /></td>
					</tr>
					<tr>
						<td class="label">Telephone</td>
						<td class="input"><smvc:input path="referralPatient.gpTelephoneNumber" maxlength="255" /></td>
					</tr>
					<tr>
						<td class="label">Fax Number</td>
						<td class="input"><smvc:input path="referralPatient.gpFaxNumber" maxlength="255" /></td>
					</tr>
					<tr>
						<td class="label">Email Address</td>
						<td class="input"><smvc:input path="referralPatient.gpEmailAddress" maxlength="255" /> <img src="../emdt/images/imgEmailIcon.gif" alt="" /></td>
					</tr>
					<tr>
						<td class="label"><span>Surgery Address</span></td>
						<td class="input"><span class="inputLabel"> <smvc:textarea path="referralPatient.gpSurgeryAddress" cols="20" rows="3" /></span></td>
					</tr>
					<tr>
						<td class="label">Postcode</td>
						<td class="input"><smvc:input path="referralPatient.gpPostcode" cssClass="mediumTxtBox" maxlength="255" /></td>
				</table>
			</div>
		</div>
	</div>
</div>

<div id="commentsDiv" class="commentsBox" >
	<div>
		<a name="commentsAnchor"></a>
	</div>
	<div class="commentsHeading">
		<img src="../images/16x16/comments.png"  <%-- onload="selectClinicianforTheSelectedHospital();" --%>/>Comments<br />&nbsp;
	</div>

	<table>
		<c:set var="comment" value='<%=request.getAttribute("commentList")%>' />
		<c:forEach var="report" items='${comment}'>
			<tr>
				<td width="70%" class="commentsUserName"><c:out value="${report.username}"/>&nbsp;<br/>
					<c:out value="${report.hospitalCode}"/>
				</td>
				<td width="30%" class="commentsText"><c:out value="${report.comment}"/></td>
			</tr>
			<tr>
				<td class="commentsDate" colspan="2"><fmt:formatDate
						value="${report.dateOfComment}" pattern="dd MMM yyyy, HH:mm" /></td>
			</tr>
			<tr>
				<td colspan="2"><hr color="lightgray" size="1" /></td>
			</tr>
		</c:forEach>



<!--  start here -->
<%--
<tr><td width="20%" align="left" valign="top">Hospital</td>
	<td width="80%" align="left" valign="top">
		<select name="selectedHospital"  id="selectedHospital" onchange="selectClinicianforTheSelectedHospital()">
			<option value=""> ---select a hospital---- </option>
			<c:forEach var="hospitals" items="${webapp.hospMap}">
				<option value="${hospitals.key}"><c:out value="${hospitals.value}"/></option>
			</c:forEach>
		</select>
		<c:forEach var="hospitals" items="${webapp.usersByHospitalIdMap}">
			<input type="hidden" name="hospital${hospitals.key}" id="hospital${hospitals.key}"
			value="<c:forEach var="userId" items="${hospitals.value}"><c:out value="${webapp.userIdNameMap[userId]}," /></c:forEach>
		</c:forEach>

	</td>
</tr>
<tr>
	<td width=10%>Add User </td>
	<td> <select id="clinician" name="clinician"></select>
		<c:forEach var="user" items="${webapp.userNameNameMap}">
			<input type="hidden" id='${user.key}' value="${user.value}" />
		</c:forEach>
		<a  onclick="addClinician();" title="Notify clinician"><img src="../images/add.png" id="Addcomment" border="0" alt="Add" onmouseover="this.style.cursor = cursorPointer;" onload="selectClinicianforTheSelectedHospital();"  /></a>
	</td>
</tr>

<tr>
<td valign="top">Users <input type="hidden" name="clinicianList" id="clinicianList"></td>
<td>

	<table width="40%" id="clinicianTblId" border="1" bordercolor="#F8F8FF">
	<c:if test="${fn:length(referralsDefinition.clinicians)>0}">

		<c:forEach var="user" items="${referralsDefinition.clinicians}" varStatus="i">

			<tr id='cliniciantable<c:out value="${user.name}">'
			<td><c:out value="${user.name}</td>
								<td align="center">
								<a onclick="deleteRow('cliniciantable<c:out value="${user.name}','clinicianTblId')">
			<img src="../images/delete.png" border="0" alt="Delete"
			onmouseover="this.style.cursor = cursorPointer; " /></a></td>
				<td style="display: none;"><c:out value="${user.name}</td>
			</tr>

		</c:forEach>
	</c:if>
		</table>

		</td>
		</tr>

		--%>
		<!--  end  here -->
	    
	    
	    
	    
	    	
		
	<tr>
		<td class="commentsLabel">Send a comment or question about this
			page:</td>
		<td><textarea id="comments" name="comments" cols="80" rows="3"></textarea>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td class="commentsLabel" align="right">(Max 250 characters)</td>
	</tr>

</table>
</div>

<div class="rightSaveDiv" onclick="saveNMDMPatient('<c:out value="${sessionScope.parentScreen}"/>');" id="save" style="margin-top: 1em">
	<br />Save Patient Details
</div>

