anchor.diff:  	}
   
   	var PERIOD_DURATION = 7;
  -	var PERIOD_REPITITION = 3;        
  -
   
   function trim(inputString) {
       if (typeof inputString != "string") { return inputString; }
  
positive.code:     });
      cells.push(Builder.node('td', {}, [detailsInput]))
  
  
  
      //corresponding to the conditional behavior
      cells.push(Builder.node('td', {className:'emptyCell'}));
  
      //conditionCheckBox
      var name = 'grid[' + rowCount + '].conditionalCheckbox'
      var namePlusOne = name+1
      var input = Builder.node('input', {
          type:'checkbox',
          id:namePlusOne,
          name:name,
          value:'true'
  
      });
      registerCellInputHandlers(input)
      cells.push(Builder.node('td', {}, [input]))
  
      //conditionalDetails
      var conditionDetailsName = 'grid[' + rowCount + '].conditionalDetails'
      var conditionDetailsInput = Builder.node('input', {
          id: conditionDetailsName,
  
negative.code:     });
      Event.observe('add-activity-button', 'click', addActivityRow)
      Event.observe('add-activity-button', 'click', resetActivitiesAutocompleter)
      Event.observe('return-to-template', 'click', function() {
          location.href='<c:url value="/pages/cal/template?studySegment=${studySegment.id}&study=${study.id}&amendment=${study.developmentAmendment.id}"/>'
      })
  }
  
  function makeCellDraggableAndDroppable(input) {
  