anchor.diff:  				}
   			}
   		}
  -
  +		
   		function onAddToCart()
   		{
   			var isChecked = updateHiddenFields();
   			var chkBox = document.getElementById('checkAll');
   			var isCheckAllAcrossAllChecked = chkBox.checked;
  -
  +			
   		    if(isChecked == "true")
   		    {
  -			     var pageNum = "<%=pageNum%>";
  -				 var action;
  -                 var isQueryModule = "<%=pageOf.equals(AQConstants.PAGEOF_QUERY_MODULE)%>";
  -                 <%if (pageOf.equals(AQConstants.PAGEOF_QUERY_MODULE)) {%>
  -
  -				  action = "AddDeleteCart.do?operation=add&pageNum="+pageNum+"&isCheckAllAcrossAllChecked="+isCheckAllAcrossAllChecked;
  -				   document.forms[0].target = "gridFrame";
  +			    var pageNum = "<%=pageNum%>";
  +				var action;
  +                var isQueryModule = "<%=pageOf.equals(Constants.PAGE_OF_QUERY_MODULE)%>";
  +                <%if (pageOf.equals(Constants.PAGE_OF_QUERY_MODULE))
  +                {%>
  +				
  +				 action = "AddDeleteCart.do?operation=add&pageNum="+pageNum+"&isCheckAllAcrossAllChecked="+isCheckAllAcrossAllChecked;
  +				  document.forms[0].target = "gridFrame";
   				<%} else {%>
  +				
  +				
   			     action = "ShoppingCart.do?operation=add&pageNum="+pageNum+"&isCheckAllAcrossAllChecked="+isCheckAllAcrossAllChecked ;
   				 document.forms[0].target = "myframe1";
   				<%}%>
  +
   				document.forms[0].operation.value="add";
   				document.forms[0].action = action;
   				document.forms[0].submit();
  
positive.code: 		}
  		function onQueryResultsConfigure()
  		{
  			 action="DefineQueryResultsView.do?pageOf=pageOfQueryModule";
  			 document.forms[0].action = action;
  			 document.forms[0].target = "<%=AQConstants.GRID_DATA_VIEW_FRAME%>";
  			 document.forms[0].submit();
  		}
  		function onRedefineSimpleQuery()
  		{
  
negative.code: <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
  <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
  <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
  <%@ taglib uri="/WEB-INF/PagenationTag.tld" prefix="custom" %>
  <%@ page import="java.util.List"%>
  <%@ page import="java.util.Hashtable"%>
  <%@ page import="edu.wustl.catissuecore.actionForm.AdvanceSearchForm"%>
  <%@ page import="edu.wustl.catissuecore.util.global.Constants"%>
  <%@ page import="edu.wustl.catissuecore.util.global.AppUtility"%>
  <%@ page import="edu.wustl.catissuecore.util.global.Variables"%>
  <%@ page language="java" isELIgnored="false"%>
  <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  <script src="jss/script.js"></script>
  <script type="text/javascript" src="jss/ajax.js"></script> 
  <style>
  .active-column-0 {width:30px}
  tr#hiddenCombo
  {
   display:none;
  }
  </style>
  <head>
  <%
  	int pageNum = Integer.parseInt((String)request.getAttribute(Constants.PAGE_NUMBER));
  	
  	int totalResults = ((Integer)session.getAttribute(Constants.TOTAL_RESULTS)).intValue();
  	int numResultsPerPage = Integer.parseInt((String)session.getAttribute(Constants.RESULTS_PER_PAGE));
  	String pageName = "SpreadsheetView.do";	
  	String checkAllPages = (String)session.getAttribute("checkAllPages");
  	AdvanceSearchForm form = (AdvanceSearchForm)session.getAttribute("advanceSearchForm");
  	List columnList = (List) session.getAttribute(Constants.SPREADSHEET_COLUMN_LIST);
  	if(columnList==null)
  		columnList = (List) request.getAttribute(Constants.SPREADSHEET_COLUMN_LIST);
  
  	columnList.add(0," ");
  	List dataList = (List) request.getAttribute(Constants.PAGINATION_DATA_LIST);
  	
  	String pageOf = (String)request.getAttribute(Constants.PAGE_OF);
  	String title = pageOf + ".searchResultTitle";
  	boolean isSpecimenData = false;	
  	int IDCount = 0;
  %>
  		
  
  	<script language="javascript">
  		var colZeroDir='ascending';
  
  		function getData()
  		{	//ajax call to get update data from server
  			var request = newXMLHTTPReq();			
  			var handlerFunction = getReadyStateHandler(request,displayValidationMessage,true);	
  			request.onreadystatechange = handlerFunction;			
  			var actionURL = "updateSessionData=updateSessionData";		
  			var url = "ValidateQuery.do";
  			request.open("POST",url,true);	
  			request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");	
  			request.send(actionURL);		
  		}
  
  		function displayValidationMessage(message)
  		{
  			//var message contains space " " if the message is not to be shown.   
  			if (message != null && message == " ") 		// do not show popup
  			{
  				onAddToCart();
  