anchor.diff:  				{	document.LabActivitiesSearchResultForm.recordId.value = document.LabActivitiesSearchResultForm.recordId.value + "," + document.LabActivitiesSearchResultForm.recordIds[i].value;
   					ischecked = true;
   				}
  -			}   
  -			document.LabActivitiesSearchResultForm.action="loadToCTMS.do";  
  -	  		document.LabActivitiesSearchResultForm.operation.value="execute";
  +			}
  +			if (target=="saveToCSV")
  +  			{
  +  		 		document.LabActivitiesSearchResultForm.action="saveToCSV.do";  
  +	  			document.LabActivitiesSearchResultForm.operation.value="execute";
  +			
  +  			}   
  +			else if(target=="loadActivitiesToCTMS"){
  +				document.LabActivitiesSearchResultForm.action="loadToCTMS.do";  
  +	  			document.LabActivitiesSearchResultForm.operation.value="execute";
  +	  			}
  +	  		else{
  +	  			document.LabActivitiesSearchResultForm.action="loadTocaAERS.do";  
  +	  			document.LabActivitiesSearchResultForm.operation.value="execute";
  +	  		}	
   		}
   		if(ischecked) {
   		   document.LabActivitiesSearchResultForm.target="_self";
  
positive.code: 		  String caAERSurl=(String)session.getAttribute("BaseURLcaAERS");
  		  String C3Durl ="";//(String)session.getAttribute("BaseURLC3D");
  		  String gridId= (String)session.getAttribute("studySubjectGridId");
  		  
  		 %>
  		<a href="<%=caAERSurl%>/pages/ae/list?studySubjectGridId=<%=gridId%>" target="_blank">View this patient in caAERS</a>
  		<!-- &nbsp;&nbsp;&nbsp;||&nbsp;&nbsp;&nbsp;<a href="<%=C3Durl%>/studySubject?studySubjectGridId=<%=gridId%>">View these labs in C3D</a> -->
  		</td>	
  		</tr>
  		<tr>
  
negative.code: 															&nbsp;
  														</td>
  														<logic:equal name="searchResultObject" property="labLoadedToCDMS" value="true">
  															<td class="dataCellText" width="9%" bgcolor="blue">
  																<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="blue">
  																<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>
  