anchor.diff:  	{
           var index = id.indexOf(":");
   		var isFuture = "";
  -		
   		if(index != -1)
   		{
   			isFuture = id.substring(index+1);
  
positive.code:          callFlexMethod();
  	     interfaceObj.refreshParticipants();
  	}
  	function onParticipantClick(pId,cpId)
  	{
        window.parent.frames[1].location ="QueryParticipantSearch.do?pageOf=pageOfParticipantCPQueryEdit&operation=edit&<%=Constants.CP_SEARCH_CP_ID%>="+cpId+"&id="+pId;
  	 
  	}
    
      /*
         To register a participant for a CP
  	*/
  	function RegisterParticipants(cpId)
  	{
          
  		if(cpId == "-1")
  		{
  				alert("please select collection protocol.");
  		}    
          else
  		{
  			window.parent.frames[1].location = "QueryParticipant.do?operation=add&pageOf=<%=Constants.PAGE_OF_PARTICIPANT_CP_QUERY%>&clearConsentSession=true&<%=Constants.CP_SEARCH_CP_ID%>="+cpId;
  			
  		} 
  
      }
  
      /*
         This method is invoked on click of a tree node
  
negative.code: 					window.parent.frames[1].location = "QuerySpecimenCollectionGroupSearch.do?pageOf=pageOfSpecimenCollectionGroupAdd&operation=add&id="+id1+"&<%=Constants.CP_SEARCH_PARTICIPANT_ID%>="+pId+"&<%=Constants.CP_SEARCH_CP_ID%>="+cpId+"&<%=Constants.QUERY_RESULTS_COLLECTION_PROTOCOL_EVENT_ID%>="+eventId+"&clickedNodeId="+id;
                   }else
  				 {
  					
  					 window.parent.frames[1].location = "QuerySpecimenCollectionGroupSearch.do?pageOf=pageOfSpecimenCollectionGroupCPQueryEdit&refresh=false&operation=edit&id="+id1+"&<%=Constants.CP_SEARCH_PARTICIPANT_ID%>="+pId+"&<%=Constants.CP_SEARCH_CP_ID%>="+cpId+"&clickedNodeId="+id;
                    }
  			<%}%>
  		}
  		else
  		{
           
  		   window.parent.frames[1].location = "QuerySpecimenSearch.do?pageOf=pageOfNewSpecimenCPQuery&operation=edit&id="+id1+"&refresh=false&<%=Constants.CP_SEARCH_PARTICIPANT_ID%>="+pId+"&<%=Constants.CP_SEARCH_CP_ID%>="+cpId;
  		}
  	
  	};
  