anchor.diff:                  <a id="importActivitiesLink" href="<c:url value="/pages/cal/import/activities?returnToPeriodId=${period.id}"/>">Import activities from xml</a>
                </div>
   
  -             <input align="right" type="button" name="action" value="Return to template" onclick="location.href='<c:url value="/pages/cal/template?studySegment=${studySegment.id}&study=${study.id}&amendment=${study.developmentAmendment.id}"/>'" />
  +             <input id="return-to-template" type="button" value="Return to template"/>
           </form:form>
       </laf:division>
   </laf:box>
  
positive.code:     var activityInput = Builder.node("input", { id: activityName, name: activityName, type: 'hidden', value: activity.id })
      cells.push(Builder.node('th', {className: 'activity'}, activity.name), [activityInput]);
  
  
  
      // input cells
      for (var i = 0; i < dayCount; i++) {
          var name = 'grid[' + rowCount + '].eventIds[' + i + ']'
  
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) {
  