anchor.diff: -<%@ 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"%>
  +<%@ 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.query.actionForm.QueryAdvanceSearchForm"%>
  -<%@ page import="edu.wustl.query.util.global.AQConstants"%>
  -<%@ page import="edu.wustl.query.util.global.Utility"%>
  -<%@ page import="edu.wustl.query.util.global.Variables"%>
  +<%@ 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/advQuery/script.js"></script>
  -<script type="text/javascript" src="jss/advQuery/ajax.js"></script>
  +<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;
  +.active-column-0 {width:30px}
  +tr#hiddenCombo
  +{
  + display:none;
   }
   </style>
   <head>
   <%
  -	Object obj =  request.getAttribute("isSpecPresent");
  +	int pageNum = Integer.parseInt((String)request.getAttribute(Constants.PAGE_NUMBER));
   	
  -	int specIdColumnIndex = 0;
  -	Boolean isSpecPresent = Boolean.FALSE;
  -	Boolean specimenFlag = Boolean.FALSE;
  -	Object fromCatissue = request.getAttribute("fromCatissue");
  -	Boolean isFromCatissue = Boolean.FALSE;
  -	if(fromCatissue != null && Boolean.valueOf(fromCatissue.toString()))
  -	{
  -		isFromCatissue = Boolean.valueOf(fromCatissue.toString());
  -	}
  -	if(obj != null && Boolean.valueOf(obj.toString()))
  -	{
  -		isSpecPresent = Boolean.valueOf(obj.toString());
  -		specimenFlag = Boolean.valueOf(obj.toString());
  -		specIdColumnIndex = Integer.valueOf((request.getAttribute("specIdColumnIndex").toString()));
  -	}
  -	else if(session.getAttribute("entityName") != null && session.getAttribute("entityName").equals("edu.wustl.catissuecore.domain.Specimen"))
  -	{
  -		specimenFlag = Boolean.TRUE;
  -	}
  +	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);
   	
  -	int pageNum = Integer.parseInt((String) request
  -			.getAttribute(AQConstants.PAGE_NUMBER));
  -
  -	int totalResults = ((Integer) session
  -			.getAttribute(AQConstants.TOTAL_RESULTS)).intValue();
  -	
  -	int numResultsPerPage = Integer.parseInt((String) session
  -			.getAttribute(AQConstants.RESULTS_PER_PAGE));
  -	String pageName = "SpreadsheetView.do";
  -	String checkAllPages = (String) session
  -			.getAttribute("checkAllPages");
  -	QueryAdvanceSearchForm form = (QueryAdvanceSearchForm) session
  -			.getAttribute("advanceSearchForm");
  -	List columnList = (List) session
  -			.getAttribute(AQConstants.SPREADSHEET_COLUMN_LIST);
  -	if (columnList == null)
  -		columnList = (List) request
  -				.getAttribute(AQConstants.SPREADSHEET_COLUMN_LIST);
  -
  -	columnList.add(0, " ");
  -	List dataList = (List) request
  -			.getAttribute(AQConstants.PAGINATION_DATA_LIST);
  -
  -	String pageOf = (String) request.getAttribute(AQConstants.PAGEOF);
  -	
  +	String pageOf = (String)request.getAttribute(Constants.PAGE_OF);
   	String title = pageOf + ".searchResultTitle";
  -	boolean isSpecimenData = false;
  +	boolean isSpecimenData = false;	
   	int IDCount = 0;
   %>
  -
  -
  -<script language="javascript">
  -
  -var isSpecPresent = "<%=specimenFlag%>"+"&specIdColumnIndex=<%=specIdColumnIndex%>";
  -
  +		
  +
  +	<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 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);
  +			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.
  +			//var message contains space " " if the message is not to be shown.   
   			if (message != null && message == " ") 		// do not show popup
   			{
   				onAddToCart();
  
positive.code: 				var action = "SpreadsheetExport.do?pageNum="+pageNum+"&isCheckAllAcrossAllChecked="+isCheckAllAcrossAllChecked ;
  				document.forms[0].operation.value="export";
  				document.forms[0].action = action;
  				document.forms[0].target = "_blank";
  				document.forms[0].submit();
  			}
  			else
  
negative.code: 				}
  			}
  		}
  		
  		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(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();
  