anchor.diff:  		var url = "SearchObject.do?pageOf=<%=pageOf%>&operation=search&id="+searchId;
   		window.location.href = url;
   	}
  -*/
  -// function modified to display distribution array.
  -// problem in query data.
  +	*/
  +
  +	// function modified to display distribution array.
  +	// problem in query data.
   	function rowClick(id)
   	{
   		var colid = <%=identifierFieldIndex.intValue()%>;
  -/*		var x=document.getElementsByName("pageOf");
  +		/*
  +		var x=document.getElementsByName("pageOf");
   		//alert(x);
   		if(x[0].value == "pageOfArrayDistribution")
   		{
   			colid=0;
   		}
   		//alert(colid);
  -*/
  +		*/
   		var cl = mygrid.cells(id,colid);
   		var searchId = cl.getValue();
   		var url = "SearchObject.do?pageOf=<%=pageOf%>&operation=search&id="+searchId;
   		window.location.href = url;
  -	} 			
  +	}
    			
   	var funcName = "rowClick";
   	if(useDefaultRowClickHandler == 1)
  
positive.code: <!-- dataList and columnList are to be set in the main JSP file -->
  	<link rel="STYLESHEET" type="text/css" href="dhtml_comp/css/dhtmlXGrid.css"/>
  	<script  src="dhtml_comp/js/dhtmlXCommon.js"></script>
  	<script  src="dhtml_comp/js/dhtmlXGrid.js"></script>		
  	<script  src="dhtml_comp/js/dhtmlXGridCell.js"></script>	
  	<script  src="dhtml_comp/js/dhtmlXGrid_mcol.js"></script>	
  	
  
  <script>
  var myData = [<%int i;%><%for (i=0;i<(dataList.size()-1);i++){%>
  <%
  	List row = (List)dataList.get(i);
    	int j;
  %>
  <%="\""%><%for (j=0;j < (row.size()-1);j++){%><%=Utility.toNewGridFormat(row.get(j))%>,<%}%><%=Utility.toNewGridFormat(row.get(j))%><%="\""%>,<%}%>
  <%
  	List row = (List)dataList.get(i);
    	int j;
  %>
  <%="\""%><%for (j=0;j < (row.size()-1);j++){%><%=Utility.toNewGridFormat(row.get(j))%>,<%}%><%=Utility.toNewGridFormat(row.get(j))%><%="\""%>
  ];
  
  
  var columns = <%="\""%><%int col;%><%for(col=0;col<(columnList.size()-1);col++){%><%=columnList.get(col)%>,<%}%><%=columnList.get(col)%><%="\""%>;
  
  var colWidth = <%="\""%><%for(col=0;col<(columnList.size()-1);col++){%><%=100%>,<%}%><%=100%><%="\""%>;
  
  var colTypes = <%="\""%><%=Variables.prepareColTypes(dataList)%><%="\""%>;
  
  </script>
  
  <table width="100%">
  	<tr>
  		<td>
  			<script>	
  			//for derive only
  			if(useFunction == "derivedSpecimenGrid")	// useFunction == "eventParametersGrid" ||
  			{
  				document.write("<div id='gridbox' width='100%' height='150px' style='background-color:white;overflow:hidden'></div>");
  			}
  			else
  			{
  				document.write("<div id='gridbox' width='100%' height='350px' style='background-color:white;overflow:hidden'></div>");
  			}
  			</script>
  		</td>
  	</tr>
  </table>
  
  
  <script>
  /*	function rowClick(id)
  	{
  		var colid = <%=identifierFieldIndex.intValue()%>;
  		var cl = mygrid.cells(id,colid);
  
negative.code: 	mygrid.setEditable("FALSE");
  	mygrid.enableAutoHeigth(false);
  
  	//document.write("<hr>"+colWidth+"<hr>");
  	if(useFunction == "eventParametersGrid" || useFunction == "derivedSpecimenGrid")
  	{
  		colWidth = "130,130,130,130,0";
  	}
  	//document.write("<hr>"+colWidth+"<hr>");
  
  	mygrid.setInitWidths(colWidth);
  
  