anchor.diff:                  afterUpdateElement:updateActivity,
                   revertOnEsc:true
               });
  +                }
           }
   
           function updateActivity(input, li) {
  
positive.code: 
          function disableDivs() {
              var L1 = $('L1');
              $(L1).style.display = "inline"
              var arrayOfSiblings = $('L1').siblings();
              for (var i = 0; i < arrayOfSiblings.length; i++){
                  $(arrayOfSiblings[i]).style.display = "none";
              }
  
              var R2 = $('R2');
  
negative.code: 
  
          function createAutocompleter() {
              if (${not empty releasedAndAssignedTemplate}){
              activitiesAutocompleter = new Ajax.RevertableAutocompleter('studies-autocompleter-input','studies-autocompleter-div','<c:url value="/pages/cal/search/releasedTemplates"/>',
              {
                  method: 'get',
  