<%@page import="com.ardeo.emdt.EMDTApplication"%>
<script src="../js/notifyDataLoss.js" type="text/javascript"></script>
<script type="text/javascript">
	//The following checks for date input boxes and binds then to the javascript popup calendar
	var buttonFields = document.getElementsByTagName("img");
	for(var i = 0; i < buttonFields.length; i++) {
		var triggerId = buttonFields[i].id;
		var triggerIndex = triggerId.indexOf("_DateTrigger");
		if(triggerIndex != -1) {
			var inputId = triggerId.substring(0, triggerIndex);
			Calendar.setup({
				inputField : inputId ,         // ID of the input field
				ifFormat    : "%d/%m/%Y",    // the date format
				button      : triggerId,       // ID of the button
				singleClick : true,
				onUpdate : dateChanged,
				firstDay : 1,
				electric : false
			});
		}
	}
	
	document.body.onclick = dataEntered;
	//--> 
</script>
<div id="pacsParameterID" class="pacsContentPopup" style="display: none;">

<table align="center" border="0" width="100%" id="pacsParameterTable"
	bgcolor="white">
	<tr>
		<td align="center" width="99%" valign="center">
			<table class="dialogBox" cellpadding="4" border="0" width="100%">
				<tr class="tableHeader">
					<th colspan="3" class="tableColHeader">Find Image Study in PACS</th>
				</tr>
				<tr>
					<td align="left">Study Date</td>
					<td align="right">
						<select id="dateSearchType">
							<option value="is" selected="selected">is</option>
							<option value="approx">approx.</option>
							<option value="before">before</option>
							<option value="after">after</option>
							<option value="between">between</option>
						</select>
					</td>
					<td><input id="StudyDate1"  placeholder="dd/mm/yyyy" /> <img
						title='Click to choose date' style='cursor: pointer;'
						src='../images/16x16/date.png' id='StudyDate1_DateTrigger' /> <br />
					</td>
				</tr>
				<tr>
					<td></td>
					<td align="right">and</td>
					<td><span id="imageSpanFirst" style="display: none;">
							<input id="StudyDate2" />&nbsp;<img title='Click to choose date' style='cursor: pointer' src='../images/16x16/date.png'	id='StudyDate2_DateTrigger' /></span>
						<span id="imageSpanSecond">
							<input id="StudyDate22" disabled="disabled" />&nbsp;<img title='Click to choose date' style='cursor: pointer' src='../images/16x16/date.png' id='StudyDate2' onclick="alert('End date is enabled only for \'is between\'');" />
						</span>
					</td>
				</tr>
				<tr>
					<td  align="left">Patient hospital number</td>
					<td></td>
					<td  align="left">
					<input name="hospitalNumber" id="patientHospitalNumber"
						value="<%=(((EMDTApplication)session.getAttribute("emdt")).getPatient().getHospitalNumber()==null)? "" :((EMDTApplication)session.getAttribute("emdt")).getPatient().getHospitalNumber()%>" /></td>
				</tr>
				<tr>
					<td align="left">Date of Birth</td>
					<td align="right"></td>
					<td align="left"><input id="patientDob"  placeholder="dd/mm/yyyy" /> <img
						title='Click to choose date' style='cursor: pointer;'
						src='../images/16x16/date.png' id='patientDob_DateTrigger' /> <br />
					</td>
				</tr>
				<tr>
					<td  align="left">Accession number</td>
					<td></td>
					<td  align="left"><input name="accessionNumber" id="accessionNumberID"	value="<c:out value="${imgStatus.accessionNum}"/>" /></td>
				</tr>
				<tr>
					<td align="left">Modality</td>
					<td colspan="2">
					<select id="modalitySelect">
						<option value="" selected="selected">Select</option>
						<option value="CT">CT - Computed Tomography</option>
						<option value="MR">MR - Magnetic Resonance</option>
						<option value="US">US - Ultrasound</option>
						<option value="NM">NM - Nuclear Medicine</option>
						<option value="PT">PT - Positron Emission Tomography</option>
						<option value="CR">CR - Computed Radiography</option>
						<option value="SC">SC - Secondary Capture</option>
						<option value="XA">XA - XRay Angiography</option>
						<option value="RF">RF - XRay Radiofluoroscopy</option>
						<option value="DX">DX - Digital X-Ray</option>
						<option value="MG">MG - Mammography</option>
						<option value="ECG">ECG - Electrocardiogram</option>
						<option value="ES">ES - Endoscopy</option>
						<option value="OT">OT - Other</option>
					</select></td>
				</tr>
				<tr>
					<td colspan="3"></td>
				</tr>
				<tr>
					<td colspan="3" align="right">
					<table width="55%" height="100%" style="border:1px solid #B4B4B4; ">
						<tr>
							<td align="center"><a href="#"	onclick="callPacsRequestFormPopup('imgStatusTracking');">Search <img src="../referrals/images/viewIcon.png"	title="Find Study" /></a>
							</td>
						</tr>
					</table>
					</td>
				</tr>
			</table>
		</td>
		<td align="right" valign="top">
			<a id="printPopupClose" class="popupContactClose" onclick="disablePopup('pacsParameterID','pacsParameterTable');" title="Close"><img src="../images/16x16/cross.png" /></a>
		</td>

	</tr>
</table>
<div align="center" id="processImageID" style="display: none;"><br>
<br>
<br>
<br>
<img src="images/ajax-loader.gif" /></div>
</div>


