anchor.diff:                  afterUpdateElement:updateActivity,
                   revertOnEsc:true
               });
  +                }
           }
   
           function updateActivity(input, li) {
  
positive.code: 
  
          function createAutocompleter() {
              activitiesAutocompleter = new Ajax.RevertableAutocompleter('studies-autocompleter-input','studies-autocompleter-div','<c:url value="/pages/cal/search/releasedTemplates"/>',
              {
                  method: 'get',
  
negative.code:                         $(arrayOfSiblings[i]).style.display = "none";
                      }
                  }
                  if ($('nextTenStudies') != null) {
                      $('nextTenStudies').hide()
                  }
              }
          }
  
  