anchor.diff:    		}
     		else
     		{   
  -	  		var radioLen = document.LabActivitiesSearchResultForm.recordIds.length;
  +	  		var radioLen = document.getElementsByName("recordIds").length;
   	
   	  		if(radioLen == undefined)
   	  		{
  -	 			if (document.LabActivitiesSearchResultForm.recordIds.checked) 
  -				{	document.LabActivitiesSearchResultForm.recordId.value = document.LabActivitiesSearchResultForm.recordIds.value;
  +	 			if (document.getElementsByName("recordIds").checked) 			
  +				{	document.LabActivitiesSearchResultForm.recordId.value = document.getElementsByName("recordIds").value;
   					ischecked = true;
   				}
   	  		}
   			for (var i = 0; i <radioLen; i++)
   			{   
  -				if (document.LabActivitiesSearchResultForm.recordIds[i].checked) 
  -				{	document.LabActivitiesSearchResultForm.recordId.value = document.LabActivitiesSearchResultForm.recordId.value + "," + document.LabActivitiesSearchResultForm.recordIds[i].value;
  +				if (document.getElementsByName("recordIds")[i].checked) 
  +				{	document.LabActivitiesSearchResultForm.recordId.value = document.LabActivitiesSearchResultForm.recordId.value + "," + document.getElementsByName("recordIds")[i].value;
   					ischecked = true;
   				}
   			}
  
positive.code: 											<thead class="scrollbar">	
  												<tr>
  												   <th class="dataTableHeader" scope="col" align="center" width="5%">
  													<a href="javascript:SelectAll();">
  													<img id="CheckGif" src="images/CheckBox.gif" border="0" alt="Select All" >
  													</a>
  													</th>
  													<th class="dataTableHeader" scope="col" align="center" width="9%">
  														Patient Id
  
negative.code:     { 
        for(m=0; m<numRows2; m++)
        {
          formObj= eval(document.getElementsByName("recordIds")[m]);
          if(formObj && formObj.checked==true)
          {
            formObj.checked=false;
  