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 createAddEpochControl() {
      var studyId = ${param.study}
      var addEpochControl = createAddControl("Add epoch", 'study', studyId)
      SC.asyncLink(addEpochControl, {}, "epochs-indicator")
      $('addEpoch').appendChild(addEpochControl)
  }
  
negative.code:     var controlBox = Builder.node("div", {className: 'studySegment-controls controls'});
      studySegmentItem.appendChild(controlBox)
  
      var renameControl = createRenameControl('studySegment', studySegmentId, null, 'study segment')
      SC.inPlaceEdit(studySegmentA, renameControl.href, {
          externalControl: renameControl,
          externalControlOnly: true,
  