anchor.diff:  			
   			var deleteItem = document.getElementById('<%=Constants.DELETE%>');
   			var deleteLink = "AdvanceSearch.do?delete=true&itemId="+itemId;
  -			//deleteItem.innerHTML = "&nbsp;<a HREF='" + deleteLink + "'>Delete</a>";
  +			deleteItem.innerHTML = "&nbsp;<a HREF='" + deleteLink + "'>Delete</a>";
   			
   		}
  -		else if(CProtocolCount == sum)
  +		else if(cprotocolCount == sum)
   		{
   		
   			/*var link = "<%=util.getLink("CollectionProtocol")%>"+ selectedNode; 
  
positive.code: 		item.innerHTML = "Edit";
  		
  		var deleteItem = document.getElementById('<%=Constants.DELETE%>');
  		deleteItem.innerHTML = "&nbsp;<a HREF='#'>Delete</a>";
  		
  		
  		
  	}
  	function enableAll()
  	{
  	
  		var item = document.getElementById('<%=Constants.CP%>');
  		item.className="linkChange";
  		item.innerHTML = "&nbsp;<img src='images/CollectionProtocol.GIF' alt='CollectionProtocol' />  &nbsp;<a HREF='<%=util.getLink("CollectionProtocol")%>' target='searchPageFrame'><%=Constants.COLLECTION_PROTOCOL%></a>";
  		
  		item = document.getElementById('<%=Constants.P%>');
  		item.className="linkChange";
  		item.innerHTML = "&nbsp;<img src='images/Participant.GIF' alt='Participant' /> &nbsp;<a HREF='<%=util.getLink("Participant")%>' target='searchPageFrame'><%=Constants.PARTICIPANT%></a>";
  		
  		item = document.getElementById('<%=Constants.S%>');
  		item.className="linkChange"
  		item.innerHTML ="&nbsp;<img src='images/Specimen.GIF' alt='Specimen' /> &nbsp; <a HREF='<%=util.getLink("Specimen")%>' target='searchPageFrame'><%=Constants.SPECIMEN%></a>";
  		
  		item = document.getElementById('<%=Constants.SCG%>');
  		item.className="linkChange";
  		item.innerHTML = "&nbsp;<img src='images/SpecimenCollectionGroup.GIF' alt='Specimen Collection Group' /> &nbsp;<a HREF='<%=util.getLink("SpecimenCollectionGroup")%>' target='searchPageFrame'><%=Constants.SPECIMEN_COLLECTION_GROUP%></a>";
  		
  		item = document.getElementById('<%=Constants.D%>');
  		item.className="linkChange";
  		item.innerHTML = "&nbsp;<img src='images/Distribution.GIF' alt='Distribution' /> &nbsp; <a HREF='#'><%=Constants.DISTRIBUTION%></a>";
  		
  		item = document.getElementById('<%=Constants.DP%>');
  		item.className="linkChange";
  		item.innerHTML = "&nbsp;<img src='images/DistributionProtocol.GIF' alt='DistributionProtocol' /> &nbsp; <a HREF='#'><%=Constants.DISTRIBUTION_PROTOCOL%></a>";
  	}
  	
  	/*function checkStatus(item, counter,selectedNode,i)
  	{
  		if(document.getElementById(item) != null)
  		{
  			if(document.getElementById(item).checked==true)
  			{
  				counter = counter + 1;
  				selectedNode=i;
  			}
  		}
  		return counter; 
  	}*/
  	
  //	function EnableItem(nodeCount){
  	function CheckNum(checkName,itemId,nodeCount,documentForm)
  	{
  		
  		disableAll();
  		var ParticipantCount = 0;
  		var CProtocolCount = 0;
  		var DProtocolCount = 0;
  		var SCGroupCount = 0;
  		var DistributionCount = 0;
  		var SpecimenCount = 0;
  		//var j=0;
  		//var selectedNode = new Array(nodeCount);
  		var selectedNode=0;
  		//alert("inside checknum");					
  		/*alert("node count"+nodeCount);
  		alert("itemCount"+itemCount);
  		alert("check box name"+checkName);
  		alert("item name"+itemName);*/
  		
  								
  		for(var i = 1; i <= nodeCount; i++)
  		{
  			var ParticipantItem = '<%=Constants.PARTICIPANT%>'+"_"+i;
  			//count1 = checkStatus(item1, count1,selectedNode,i);
  			if(document.getElementById(ParticipantItem) != null)
  			{
  				if(document.getElementById(ParticipantItem).checked==true)
  				{
  					ParticipantCount = ParticipantCount + 1;
  					selectedNode=i;
  					
  					
  				}
  			}
  			
  			var CProtocolItem = '<%=Constants.COLLECTION_PROTOCOL%>'+"_"+i;
  			//alert("item2 in loop"+item2);
  			//count2 = checkStatus(item2, count2,selectedNode,i);
  			if(document.getElementById(CProtocolItem) != null)
  			{
  				if(document.getElementById(CProtocolItem).checked==true)
  				{
  					CProtocolCount = CProtocolCount + 1;
  					selectedNode=i;
  					
  				}
  			}
  			
  			var DProtocolItem = '<%=Constants.DISTRIBUTION_PROTOCOL%>'+"_"+i;
  			//DProtocolCount = checkStatus(item3, count3,selectedNode);
  			if(document.getElementById(DProtocolItem) != null)
  			{
  				if(document.getElementById(DProtocolItem).checked==true)
  				{
  					DProtocolCount = DProtocolCount + 1;
  					selectedNode=i;
  					//document.forms[0].itemId = i;
  				}
  			}
  			
  			var SCGroupItem = '<%=Constants.SPECIMEN_COLLECTION_GROUP%>'+"_"+i;
  			//count4 = checkStatus(item4, count4,selectedNode,i);
  			if(document.getElementById(SCGroupItem) != null)
  			{
  				if(document.getElementById(SCGroupItem).checked==true)
  				{
  					SCGroupCount = SCGroupCount + 1;
  					selectedNode=i;
  					//document.forms[0].itemId = i;
  				}
  			}
  			
  			var DistributionItem = '<%=Constants.DISTRIBUTION%>'+"_"+i;
  			//count5 = checkStatus(item5, count5,selectedNode,i);
  			if(document.getElementById(DistributionItem) != null)
  			{
  				if(document.getElementById(DistributionItem).checked==true)
  				{
  					DistributionCount = DistributionCount + 1;
  					selectedNode=i;
  					//document.forms[0].itemId = i;
  				}
  			}
  			var SpecimenItem = '<%=Constants.SPECIMEN%>'+"_"+i;
  			//count6 = checkStatus(item6, count6,selectedNode,i);
  			if(document.getElementById(SpecimenItem) != null)
  			{
  				if(document.getElementById(SpecimenItem).checked==true)
  				{
  					SpecimenCount = SpecimenCount + 1;
  					selectedNode=i;
  					//document.forms[0].itemId = i;
  				}
  			}
  		}
  		
  		var sum = ParticipantCount + CProtocolCount + DProtocolCount + SCGroupCount + DistributionCount + SpecimenCount;
  		
  		//alert("count1 "+count1+" count2 "+count2 );
  				
  		if(ParticipantCount == sum) 
  		{
  			/*var PItem = document.getElementById('<%=Constants.P%>');
  			PItem.className="linkChange";
  			var link = "<%=util.getLink("Participant")%>"+ selectedNode;
  			PItem.innerHTML ="&nbsp;<img src='images/Participant.GIF' alt='Participant' />  &nbsp;<a HREF='"+link+"' target='searchPageFrame'><%=Constants.PARTICIPANT%></a>";*/
  			
  			//alert("participant rule");
  			var cpItem = document.getElementById('<%=Constants.CP%>');
  			cpItem.className="linkChange";
  			var link = "<%=util.getLink("CollectionProtocol")%>"+ selectedNode;
  
negative.code: 	
  		<div class="tree">
  			<script type="text/javascript">
  				createTree(tree);
  			</script>
  		</div>
  	</table>	
  