anchor.diff:      var epochId = epochH4.id.split('-')[1]
       var epochName = $('epoch-' + epochId + '-name')
   
  -    var addStudySegmentControl = createAddControl("Add segment", 'epoch', epochId)
  +    var addStudySegmentControl = createAddControl("Add segment", 'epoch', epochId, 'epoch')
       SC.asyncLink(addStudySegmentControl, {}, "epochs-indicator")
   
  -    var renameControl = createRenameControl('epoch', epochId, null)
  +    var renameControl = createRenameControl('epoch', epochId, null, 'epoch')
       SC.inPlaceEdit(epochName, renameControl.href, {
           externalControl: renameControl,
           clickToEditText: "Click to rename"
       })
   
  -    var deleteControl = createDeleteControl('epoch', epochId)
  +    var deleteControl = createDeleteControl('epoch', epochId, 'epoch')
       Event.observe(deleteControl, "click", deleteHandler(function() {
               return "Are you sure you want to delete the epoch '" + epochName.innerHTML +
                   "'?  This will permanently remove it, all its study segments, its periods, and its events. " +
  
positive.code: }
  
  
  function createRenameControl(objectType, objectId, name) {
      if(name == null) {
          name ="Set name"
      }
      return createControlAnchor("rename", name, "Change the name of this " + objectType, '<c:url value="/pages/cal/template/rename"/>', objectType, objectId)
  }
  
  function createDeleteControl(objectType, objectId) {
      return createControlAnchor("delete", "Delete", "Delete this " + objectType, '<c:url value="/pages/cal/template/delete"/>', objectType, objectId)
  }
  
  function createAddControl(text, objectType, objectId) {
      return createControlAnchor("add", text, "Add to this " + objectType, '<c:url value="/pages/cal/template/addTo"/>', objectType, objectId)
  }
  
  function createMoveControl(offset, text, objectType, objectId) {
      return createControlAnchor("move" + offset, text, "Reorder the " + objectType + "s", '<c:url value="/pages/cal/template/move?offset="/>' + offset, objectType, objectId)
  }
  
  function createControlAnchor(controlName, text, title, baseHref, objectType, objectId) {
  
negative.code:         }, deleteControl.href
      ));
  
      var moveUpControl   = createMoveControl(-1, '&#9668;', 'epoch', epochId, 'epoch')
      SC.asyncLink(moveUpControl,   {}, "epochs-indicator")
      var moveDownControl = createMoveControl( 1, '&#9658;', 'epoch', epochId, 'epoch')
      SC.asyncLink(moveDownControl, {}, "epochs-indicator")
  
      controlBox.appendChild(moveUpControl)
  