anchor.diff:  			         	_sort.call(this, index, direction);
   
   				        return true;
  -			    	}
  +			    		}
   					    
  -				    //double click events
  -				    var row = new Active.Templates.Row;
  -					row.setEvent("ondblclick", function(){this.action("myAction")}); 
  +					    //double click events
  +					    var row = new Active.Templates.Row;
  +						row.setEvent("ondblclick", function(){this.action("myAction")}); 
   			
  -					obj.setTemplate("row", row);
  -		   			obj.setAction("myAction", 
  -					function(src){window.location.href = 'SearchObject.do?pageOf=<%=pageOf%>&operation=search&systemIdentifier='+myData[this.getSelectionProperty("index")][1]}); 
  +						obj.setTemplate("row", row);
  +		   				obj.setAction("myAction", 
  +						function(src){window.location.href = 'SearchObject.do?pageOf=<%=pageOf%>&operation=search&systemIdentifier='+myData[this.getSelectionProperty("index")][1]}); 
   		
  -					//	write grid html to the page.
  -					document.write(obj);
  -					</script>
  -					</div>
  +						//	write grid html to the page.
  +						document.write(obj);
  +						</script>
  +						</div>
   					</td>
   				</tr>
  +
   				<%}%>
  -				<!--Participant Lookup end-->
  -		</table>
  -	<%
  +				<!--Participant Lookup end-->				
  +			</table>
  +		</td></tr>
  +	</table>			
  +<%
   	if(pageView.equals("edit"))
   	{
   	%>
  
positive.code: 	<%
  	}
  	%>
  </html:form>
negative.code: 								
  								<!-- PUT YOUR COMMENT HERE -->
  								<logic:notEqual name="<%=Constants.PAGEOF%>" value="<%=Constants.QUERY%>">
  								<td nowrap class="formFieldNoBorders">
  								<html:button styleClass="actionButton" 
  										property="submitPage" 
  										value="<%=Constants.PARTICIPANT_FORWARD_TO_LIST[0][0]%>" 
  										onclick="<%=normalSubmit%>"> 
  											</html:button>
  								</td>
  								</logic:notEqual>	
  								
  								<logic:notEqual name="<%=Constants.PAGEOF%>" value="<%=Constants.QUERY%>">
  								<td nowrap class="formFieldNoBorders">									
  									<html:button styleClass="actionButton"  
  											property="submitPage" 
  											value="<%=Constants.PARTICIPANT_FORWARD_TO_LIST[1][0]%>" 
  											disabled="<%=isAddNew%>"
  					  						onclick="<%=forwardToSubmit%>">
  									</html:button>
  								</td>
  								</logic:notEqual>
  								<td>
  									<html:submit styleClass="actionButton" disabled="true">
  							   		<bean:message key="buttons.getClinicalData"/>
  									</html:submit>
  								</td>	
  							</tr>
  						</table>
  							<!-- action buttons end -->
  			  		</td>
  			 	 </tr>
  				 
  				<!--	extra </logic:notEqual>-->
  				
  				 <!-- end --> 
  				  <!---Following is the code for Data Grid. Participant Lookup Data is displayed-->
  				<%if(request.getAttribute(Constants.SPREADSHEET_DATA_LIST)!=null && dataList.size()>0){%>	
  
  				<tr>
  				     <td class="formTitle" height="20" colspan="2">
  				     	<bean:message key="participant.lookup"/>
  				     </td>
  				     <td class="formButtonField">
  						<html:button styleClass="actionButton"  property="useSelectedParticipant" onclick="UseSelectedParticipant();">
  						<bean:message key="buttons.useSelectedParticipant"/> 
  						</html:button>
  					 </td>
  				    <td class="formTitle" align="Right">
  						<html:button styleClass="actionButton" property="addParticipant" onclick="AddParticipant();">
  								<bean:message key="buttons.addParticipant"/> 
  						</html:button>
  					</td>
  				  </tr>				
  				 <tr height="50%">
  					<td colspan=4>
  						<div STYLE="overflow: auto; width:100%; height:30%; padding:0px; margin: 0px; border: 1px solid">
  						<script>
  						//	create ActiveWidgets Grid javascript object.
  						var obj = new Active.Controls.Grid;
  						
  						//	set number of rows/columns.
  						obj.setRowProperty("count", <%=dataList.size()%>);
  						obj.setColumnProperty("count", <%=(columnList.size()-IDCount) + 1%>);
  					
  						//	provide cells and headers text
  						obj.setDataProperty("text", function(i, j){return myData[i][j]});
  						obj.setColumnProperty("text", function(i){return columns[i]});
  						
  						//	set headers width/height.
  						obj.setRowHeaderWidth("28px");
  						obj.setColumnHeaderHeight("20px");
  						//original sort method  
  						var _sort = obj.sort; 
  						//overide sort function to meet our requirenemnt
  					    obj.sort = function(index, direction, alternateIndex){ 
  				   
  					    //if check box column is clicked
  					    //then sort on the flag those are in 8th column
  			        	if(index==0)
  			        	{
  			        		index=myData[0].length-1;
  