anchor.diff:  <br>
   <br>
   <br>
  -<br>
  -<br>
  -<br>
  +
  +
  +<div >
   <logic:present name="<%=DisplayConstants.SEARCH_RESULT%>">
  -	<!-- laf box 2nd half -->
  -	<!-- Search Results -->
  -	<body onload="javaScript:setUp();">
  -
  -
  -		<!-- laf box 1st half -->
  -		<div class="box">
  -			<div class="pane" align="center">
  -				<!-- header -->
  -				<div class="header">
  -					<div class="background-L">
  -						<div class="background-R">
  -							<h2>
  -								Lab Activities - Search Results
  -							</h2>
  -						</div>
  -					</div>
  -				</div>
  -				<!-- inner border -->
  -				<div class="border-T">
  -					<div class="border-L">
  -						<div class="border-R">
  -							<div class="border-B">
  -								<div class="border-TL">
  -									<div class="border-TR">
  -										<div class="border-BL">
  -											<div class="border-BR">
  -												<div class="interior">
  -													<!-- interior -->
  -													<div class="content">
  -														<!-- laf box 1st half -->
  -
  -														<table summary="" cellpadding="0" cellspacing="0"
  -															border="0" class="contentPage" width="95%" height="100%">
  -															<html:form styleId="LabActivitiesSearchResultForm"
  -																action="<%="/LabActivitiesDB"%>" target="_self">
  -																<html:hidden property="operation" value="read" />
  -																<bean:define name="<%=DisplayConstants.LOGIN_OBJECT%>"
  -																	id="loginObject" type="LoginForm" />
  -																<html:hidden property="gridProxy"
  -																	value="<%=loginObject.getGridProxy()%>" />
  -																<html:hidden property="mrn" value="" />
  -																<html:hidden property="nciIdentifier" value="" />
  -																<html:hidden property="recordId" value="" />
  -																<tr>
  -																	<td colspan="3">
  -																		<html:errors />
  -																	</td>
  -																</tr>
  -																<tr>
  -																	<td class="infoMessage" colspan="3">
  -																		<html:messages id="message" message="true">
  -																			<bean:write name="message" />
  -																		</html:messages>
  -																	</td>
  -																</tr>
  -																<tr>
  -																	<td colspan="3" align="center">
  -																		<%
  -																			//Get the attributes from session.
  -																			String caAERSurl = (String) session.getAttribute("BaseURLcaAERS");
  -																			String C3Durl = "";//(String)session.getAttribute("BaseURLC3D");
  -																			String gridId = (String) session.getAttribute("studySubjectGridId");
  -																			String hotLinkType = (String) session.getAttribute("hotLinkType");
  -																		%>
  -																		<a
  -																			href="<%=caAERSurl%>/pages/ae/list?studySubjectGridId=<%=gridId%>"
  -																			target="<%=hotLinkType%>">View this patient in
  -																			caAERS</a>
  -																		<!-- &nbsp;&nbsp;&nbsp;||&nbsp;&nbsp;&nbsp;<a href="<%=C3Durl%>/studySubject?studySubjectGridId=<%=gridId%>" target="c3d">View these labs in C3D</a> -->
  -																	</td>
  -																</tr>
  -																<tr>
  -																	<td valign="top">
  -																		<table cellpadding="0" cellspacing="0" border="0"
  -																			width="100%" class="contentBegins">
  -																			<tr>
  -																				<td>
  -																					<table summary="" cellpadding="0" cellspacing="0"
  -																						border="0" width="100%">
  -
  -																						<bean:define
  -																							name="<%=DisplayConstants.SEARCH_RESULT%>"
  -																							property="searchResultObjects"
  -																							id="searchResultObjects" />
  -																						<bean:define id="oddRow" value="true" />
  -																						<tr>
  -																							<td>
  -																								<table summary="Enter summary of data here"
  -																									cellpadding="3" cellspacing="0" border="0"
  -																									id="myScrollTable" class="dataTable"
  -																									width="100%">
  -																									<thead class="scrollbar">
  -																										<tr>
  -																											<th class="dataTableHeader" scope="col"
  -																												align="center" width="5%">
  -																												<a href="javascript:SelectAll();"> <img
  -																														id="CheckGif" src="images/CheckBox.gif"
  -																														border="0" alt="Select All"> </a>
  -																											</th>
  -																											<th class="dataTableHeader" scope="col"
  -																												align="center" width="9%">
  -																												Patient Id
  -																											</th>
  -																											<th class="dataTableHeader" scope="col"
  -																												align="center" width="9%">
  -																												Site
  -																											</th>
  -																											<th class="dataTableHeader" scope="col"
  -																												align="center" width="9%">
  -																												Date / Time
  -																											</th>
  -																											<th class="dataTableHeader" scope="col"
  -																												align="center" width="9%">
  -																												Lab Test
  -																											</th>
  -																											<th class="dataTableHeader" scope="col"
  -																												align="center" width="9%">
  -																												Text Result
  -																											</th>
  -																											<th class="dataTableHeader" scope="col"
  -																												align="center" width="9%">
  -																												Numeric Result
  -																											</th>
  -																											<th class="dataTableHeader" scope="col"
  -																												align="center" width="9%">
  -																												Unit Of Measure
  -																											</th>
  -																											<th class="dataTableHeader" scope="col"
  -																												align="center" width="9%">
  -																												Lower Limit
  -																											</th>
  -																											<th class="dataTableHeader" scope="col"
  -																												align="center" width="9%">
  -																												Upper Limit
  -																											</th>
  -																											<th class="dataTableHeader" scope="col"
  -																												align="center" width="9%">
  -																												Sent to CDMS
  -																											</th>
  -																											<th class="dataTableHeader" scope="col"
  -																												align="center" width="9%">
  -																												Sent to caAERS
  -																											</th>
  -																											<!--
  -													<th class="dataTableHeader" scope="col" align="center" width="13%">
  -														Adverse Events
  -													</th>
  -													-->
  -																										</tr>
  -																									</thead>
  -																									<tbody>
  -																										<logic:iterate name="searchResultObjects"
  -																											id="searchResultObject"
  -																											type="LabActivityResult">
  -																											<%
  -																														if (oddRow.equals("true")) {
  -																														oddRow = "false";
  -																											%>
  -																											<tr class="dataRowLight">
  -																												<td class="dataCellNumerical" width="9%">
  -																													<html:multibox style="formFieldSized"
  -																														property="recordIds"
  -																														value="<%=searchResultObject.getRecordId()%>"></html:multibox>
  -																												</td>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="patientId" />
  -																													&nbsp;
  -																												</td>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="siteId" />
  -																													&nbsp;
  -																												</td>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="date" />
  -																													&nbsp;
  -																												</td>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="labTestId" />
  -																													&nbsp;
  -																												</td>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="textResult" />
  -																													&nbsp;
  -																												</td>
  -
  -																												<logic:equal name="searchResultObject"
  -																													property="isAdverseEvent"
  -																													value="<%=DisplayConstants.YES%>">
  -																													<td class="dataCellText" width="9%"
  -																														bgcolor="#ffiooo">
  -																														<bean:write name="searchResultObject"
  -																															property="numericResult" />
  -																														&nbsp;
  -																													</td>
  -																												</logic:equal>
  -																												<logic:notEqual name="searchResultObject"
  -																													property="isAdverseEvent"
  -																													value="<%=DisplayConstants.YES%>">
  -																													<td class="dataCellText" width="9%">
  -																														<bean:write name="searchResultObject"
  -																															property="numericResult" />
  -																														&nbsp;
  -																													</td>
  -																												</logic:notEqual>
  -
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="unitOfMeasure" />
  -																													&nbsp;
  -																												</td>
  -
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="lowRange" />
  -																													&nbsp;
  -																												</td>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="highRange" />
  -																													&nbsp;
  -																												</td>
  -																												<logic:equal name="searchResultObject"
  -																													property="labLoadedToCDMS" value="true">
  -																													<td class="dataCellText" width="9%"
  -																														bgcolor="silver">
  -																														<bean:write name="searchResultObject"
  -																															property="labLoadedToCDMSDate" />
  -																														&nbsp;
  -																													</td>
  -																												</logic:equal>
  -																												<logic:notEqual name="searchResultObject"
  -																													property="labLoadedToCDMS" value="true">
  -																													<td class="dataCellText" width="9%">
  -																														<bean:write name="searchResultObject"
  -																															property="labLoadedToCDMS" />
  -																														&nbsp;
  -																													</td>
  -																												</logic:notEqual>
  -																												<logic:equal name="searchResultObject"
  -																													property="adverseEventReported"
  -																													value="true">
  -																													<td class="dataCellText" width="9%"
  -																														bgcolor="silver">
  -																														<bean:write name="searchResultObject"
  -																															property="adverseEventReportedDate" />
  -																														&nbsp;
  -																													</td>
  -																												</logic:equal>
  -																												<logic:notEqual name="searchResultObject"
  -																													property="adverseEventReported"
  -																													value="true">
  -																													<td class="dataCellText" width="9%">
  -																														<bean:write name="searchResultObject"
  -																															property="adverseEventReported" />
  -																														&nbsp;
  -																													</td>
  -																												</logic:notEqual>
  -																												<!--
  -														<logic:equal name="searchResultObject" property="adverseEventReported" value="<%="0"%>">
  -															<td class="dataCellText" width="15%">
  -																<html:button style="actionButton" property="adverseEventReported" onclick="<%="submitAdverseEvent('"
  -							+ searchResultObject.getRecordId() + "');"%>">Submit</html:button>
  -															</td>
  -														</logic:equal>
  -														<logic:notEqual name="searchResultObject" property="adverseEventReported" value="<%="0"%>">
  -															<td class="dataCellText" width="15%">
  -																<a class="sublink" href="javascript:setAndRedirect('<bean:write
  -																	name="searchResultObject" property="patientId" />','<bean:write
  -																	name="searchResultObject" property="studyId" />')">
  -																	Reported on
  -																	<bean:write name="searchResultObject" property="adverseEventReportedDate" />
  -																</a>
  -																&nbsp;
  -															</td>
  -														</logic:notEqual>
  -														-->
  -																											</tr>
  -																											<%
  -																														} else {
  -																														oddRow = "true";
  -																											%>
  -																											<tr class="dataRowDark">
  -																												<td class="dataCellNumerical" width="5%">
  -																													<html:multibox style="formFieldSized"
  -																														property="recordIds"
  -																														value="<%=searchResultObject.getRecordId()%>"></html:multibox>
  -																												</td>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="patientId" />
  -																													&nbsp;
  -																												</td>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="siteId" />
  -																													&nbsp;
  -																												</td>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="date" />
  -																													&nbsp;
  -																												</td>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="labTestId" />
  -																													&nbsp;
  -																												</td>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="textResult" />
  -																													&nbsp;
  -																												</td>
  -																												<logic:equal name="searchResultObject"
  -																													property="isAdverseEvent"
  -																													value="<%=DisplayConstants.YES%>">
  -																													<td class="dataCellText" width="9%"
  -																														bgcolor="#ffiooo">
  -																														<bean:write name="searchResultObject"
  -																															property="numericResult" />
  -																														&nbsp;
  -																													</td>
  -																												</logic:equal>
  -																												<logic:notEqual name="searchResultObject"
  -																													property="isAdverseEvent"
  -																													value="<%=DisplayConstants.YES%>">
  -																													<td class="dataCellText" width="9%">
  -																														<bean:write name="searchResultObject"
  -																															property="numericResult" />
  -																														&nbsp;
  -																													</td>
  -																												</logic:notEqual>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="unitOfMeasure" />
  -																													&nbsp;
  -																												</td>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="lowRange" />
  -																													&nbsp;
  -																												</td>
  -																												<td class="dataCellText" width="9%">
  -																													<bean:write name="searchResultObject"
  -																														property="highRange" />
  -																													&nbsp;
  -																												</td>
  -																												<logic:equal name="searchResultObject"
  -																													property="labLoadedToCDMS" value="true">
  -																													<td class="dataCellText" width="9%"
  -																														bgcolor="silver">
  -																														<bean:write name="searchResultObject"
  -																															property="labLoadedToCDMSDate" />
  -																														&nbsp;
  -																													</td>
  -																												</logic:equal>
  -																												<logic:notEqual name="searchResultObject"
  -																													property="labLoadedToCDMS" value="true">
  -																													<td class="dataCellText" width="9%">
  -																														<bean:write name="searchResultObject"
  -																															property="labLoadedToCDMS" />
  -																														&nbsp;
  -																													</td>
  -																												</logic:notEqual>
  -																												<logic:equal name="searchResultObject"
  -																													property="adverseEventReported"
  -																													value="true">
  -																													<td class="dataCellText" width="9%"
  -																														bgcolor="silver">
  -																														<bean:write name="searchResultObject"
  -																															property="adverseEventReportedDate" />
  -																														&nbsp;
  -																													</td>
  -																												</logic:equal>
  -																												<logic:notEqual name="searchResultObject"
  -																													property="adverseEventReported"
  -																													value="true">
  -																													<td class="dataCellText" width="9%">
  -																														<bean:write name="searchResultObject"
  -																															property="adverseEventReported" />
  -																														&nbsp;
  -																													</td>
  -																												</logic:notEqual>
  -																												<!--
  -														<logic:equal name="searchResultObject" property="adverseEventReported" value="<%="0"%>">
  -															<td class="dataCellText" width="15%">
  -																<html:button style="actionButton" property="adverseEventReported" onclick="<%="submitAdverseEvent('"
  -							+ searchResultObject.getRecordId() + "');"%>">Submit</html:button>
  -															</td>
  -														</logic:equal>
  -														<logic:notEqual name="searchResultObject" property="adverseEventReported" value="<%="0"%>">
  -															<td class="dataCellText" width="15%">
  -																<a class="sublink" href="javascript:setAndRedirect('<bean:write
  -																	name="searchResultObject" property="patientId" />','<bean:write
  -																	name="searchResultObject" property="studyId" />')">
  -																	Reported on
  -																	<bean:write name="searchResultObject" property="adverseEventReportedDate" />
  -																</a>
  -																&nbsp;
  -															</td>
  -														</logic:notEqual>
  -														-->
  -																											</tr>
  -																											<%
  -																											}
  -																											%>
  -																										</logic:iterate>
  -																									</tbody>
  -																								</table>
  -																							</td>
  -																						</tr>
  -																						<tr>
  -																							<td align="right" class="actionSection">
  -																								<!-- action buttons begins -->
  -																								<table cellpadding="4" cellspacing="0"
  -																									border="0">
  -																									<tr>
  -																										<td>
  -																											<html:cancel style="actionButton"
  -																												property="org.apache.struts.taglib.html.CANCEL"
  -																												value="Cancel">Back</html:cancel>
  -																										</td>
  -																										<td>
  -																											<html:button style="actionButton"
  -																												property="loadActivitiesTocaAERS"
  -																												onclick="setAndSubmit('loadActivitiesTocaAERS');">Load Labs to caAERS</html:button>
  -																										</td>
  -																										<td>
  -																											<html:button style="actionButton"
  -																												property="loadActivitiesToCTMS"
  -																												onclick="setAndSubmit('loadActivitiesToCTMS');">Load Labs to CDMS</html:button>
  -																										</td>
  -																										<td>
  -																											<html:button style="actionButton"
  -																												property="saveToCSV"
  -																												onclick="setAndSubmit('saveToCSV');">Save Labs to CSV</html:button>
  -																										</td>
  -																									</tr>
  -																								</table>
  -																								<!-- action buttons end -->
  -																							</td>
  -																						</tr>
  -
  -																					</table>
  -																				</td>
  -																			</tr>
  -																		</table>
  -																	</td>
  -																</tr>
  -															</html:form>
  -														</table>
  -
  -														<!-- laf box 2nd half -->
  -													</div>
  -													<!-- content -->
  -												</div>
  -												<!-- interior -->
  -											</div>
  -										</div>
  -									</div>
  -								</div>
  -							</div>
  -						</div>
  -					</div>
  -				</div>
  -				<!-- end inner border -->
  -			</div>
  -		</div>
  -		<!-- laf box 2nd half -->
  -   </body>		
  +<jsp:include page="/pages/content/searchResult/LabActivitiesSearchResult.jsp"/> 
   </logic:present>
  -<!--  Search result end -->
  -
  +</div>
  +<!-- laf box 2nd half -->
  +<head>
   <script type="text/javascript">
  -var t = new ScrollableTable(document.getElementById('myScrollTable'), 150);
   
   	function handleCustomDates(element){
   	
  
positive.code:     }
      
    }
    </script>
  </head>
  
negative.code: 	prefix="nested"%>
  <%@ page import="gov.nih.nci.caxchange.ctom.viewer.forms.*"%>
  <%@ page import="gov.nih.nci.caxchange.ctom.viewer.constants.*"%>
  <!-- laf box 1st half -->
  <div class="box">
  	<div class="pane" align=center>
  