anchor.diff:  
   <div id="main"><br />
   
  -<tags:tabForm tab="${tab}" flow="${flow}" title="Investigator Groups"
  -	formName="investigatorGroups">
  -
  -	<jsp:attribute name="singleFields">
  +<tags:panelBox title="Investigator Groups">
   		<div>
   			<input type="hidden" name="_finish" value="true"> 
   			<input type="hidden" name="type1" value=""> 
  
positive.code: 			}
          }
          
           AutocompleterManager.addAutocompleter(sponsorSiteAutocompleterProps);
           
           
         var instanceRowInserterProps = {
         add_row_division_id: "investigatorsTable", 	        /* this id belongs to element where the row would be appended to */
         skeleton_row_division_id: "dummy-row",
         initialIndex: ${fn:length(command.healthcareSite.investigatorGroups[selected_site].siteInvestigatorGroupAffiliations)},   /* this is the initial count of the rows when the page is loaded  */
         softDelete: ${softDelete == 'true'},
  	   path: "healthcareSite.investigatorGroups[${selected_site}].siteInvestigatorGroupAffiliations",                            /* this is the path of the collection that holds the rows  */
         postProcessRowInsertion: function(object){
          clonedRowInserter=Object.clone(principalInvestigatorAutocompleterProps);
  		clonedRowInserter.basename=clonedRowInserter.basename+object.localIndex;
  		AutocompleterManager.registerAutoCompleter(clonedRowInserter);
      },
      onLoadRowInitialize: function(object, currentRowIndex){
  		clonedRowInserter=Object.clone(principalInvestigatorAutocompleterProps);
  		clonedRowInserter.basename=clonedRowInserter.basename+currentRowIndex;
  		AutocompleterManager.registerAutoCompleter(clonedRowInserter);
      }
  };
  
  var instanceGroupRowInserterProps = {
         add_row_division_id: "groupsTable", 	        /* this id belongs to element where the row would be appended to */
         skeleton_row_division_id: "dummy-group",
         initialIndex: ${fn:length(command.healthcareSite.investigatorGroups)},   /* this is the initial count of the rows when the page is loaded  */
         softDelete: ${softDelete == 'true'},
  	   path: "healthcareSite.investigatorGroups",                            /* this is the path of the collection that holds the rows  */
  };
  RowManager.addRowInseter(instanceGroupRowInserterProps);
  RowManager.addRowInseter(instanceRowInserterProps);  
           
           function handleShowGroups(){
           	var organizationId = document.getElementById("healthcareSite-hidden").value;
           	<tags:tabMethod method="getInvestigatorGroups"  divElement="'groupsList'" 
  						javaScriptParam="'organizationId='+organizationId" params="'showGroups='+showGroups" formName="'tabMethodForm'"/>
           };
           function handleShowSiteAffiliations(){
           	var selected_site = document.getElementById("selected_site").value;
           	<tags:tabMethod method="getSiteAffiliations"  divElement="'investigators'" 
  						javaScriptParam="'selected_site='+selected_site" params="'showGroups='+showGroups" formName="'tabMethodForm'"/>
           };
           function handleAddGroup(){
           	document.getElementById("_addGroup").value="true";
  			document.getElementById("command").submit();
           };
           function chooseSites() {
  		    document.getElementById("_action").value="siteChange";
  		    document.getElementById("_selectedSite").value=document.getElementById('site').value;
  		    document.getElementById("command").submit();
  		};
  </script>
  </head>
  <body>
  <div class="tabpane">
  
negative.code:             afterUpdateElement: function(inputElement, selectedElement, selectedChoice) {
      								hiddenField=sponsorSiteAutocompleterProps.basename+"-hidden"
  	    							$(hiddenField).value=selectedChoice.id;
  	    							updateGroups(selectedChoice.id,"",false);
  			 }
          }
         
      var principalInvestigatorAutocompleterProps = {
              basename: "investigator",
              populator: function(autocompleter, text) {
                  OrganizationAjaxFacade.matchOrganizationInvestigatorsGivenOrganizationId(text,document.getElementById("healthcareSite-hidden").value, function(values) {
                      autocompleter.setChoices(values)
                  })
              },
  