anchor.diff:      return [row, col];
   }
   
  -function parseDetailName(name) {
  -    return name.substring(name.indexOf("[") + 1, name.indexOf("]"));
  -
  -}
  -
  -function getInfoFromConditionalDetails(formdata, conditionalDetails, index) {
  -    formdata = formdata + 'conditionalUpdated' + "=" + escape(true) + "&";
  -    formdata = formdata + 'addition' + "=" + escape(false) + "&";
  -    return formdata
  -}
  -
   function getInfoFromConditionalCheckbox(formdata, conditionalCheckbox, index) {
       var checkboxName = 'grid[' + index + '].conditionalCheckbox1';
       var isChecked = $(checkboxName).checked;
  
positive.code: 
                      <td class="emptyCell" ></td>
                      <td class="emptyCellNoWidth"></td>
                      <th>Condition Details</th>
                  </tr>
  
                      <tr id="no-activities-message" >
  
negative.code:         $(details).disabled = false;
      }
  
      return formdata
  }
  
  function getInfoFromEventCheckbox(formdata, checkbox, row, col) {
      var data = { }
      addInfoFromEventCheckbox(data, checkbox, row, col)
      return formdata + '&' + Object.toQueryString(data) + '&';
  }
  
  function addInfoFromEventCheckbox(data, checkbox, row, col) {
      var details = 'grid[' + row + '].details';
      data.details = $(details).value;
      data.columnNumber = col;
  }
  
  function getInfoFromEventDetails(formdata, details, index) {
      var data = { }
      addInfoFromEventDetails(data, details)
      return formdata + '&' + Object.toQueryString(data) + '&';
  }
  
  function addInfoFromEventDetails(data, details) {
      data.details = $(details).value;
      data.columnNumber = -1;
  }
  
  function getInfoFromEventTextbox(formdata, isAdding, row, col) {
      var data = { }
      addInfoFromEventTextbox(data, isAdding, row, col)
      return formdata + '&' + Object.toQueryString(data) + '&';
  }
  
  function addInfoFromEventTextbox(data, isAdding, row, col) {
      var details = 'grid[' + row + '].details';
      data.details = $(details).value;
      data.columnNumber = col;
  }
  
  function createAddControl(text, objectType, objectId) {
      return '<c:url value="/pages/cal/managePeriod/addTo"/>'
  }
  
  function createRemoveControl(text, objectType, objectId) {
      return '<c:url value="/pages/cal/managePeriod/remove"/>'
  }
  
  function updateDetails(text, objectType, objectId) {
      return '<c:url value="/pages/cal/managePeriod/update"/>'
  }
  
  function executeActivityMove(row, fromCol, toCol) {
      var href = '<c:url value="/pages/cal/managePeriod/move"/>';
      // Set up data variable
      var data = { }
      data.id = '${period.id}'
      addInfoFromEventTextbox(data, false, row, toCol)
  
      data.activity = $('grid[' + row + '].activity').value;
      var eventIds = 'grid[' + row + '].eventIds';
  
      var fromElementId = eventIds + '[' + fromCol + ']';
      if ($(fromElementId).getAttribute('value') != null) {
          data['eventIds[' + fromCol + ']'] = $(fromElementId).getAttribute('value');
      }
      data.rowNumber = row;
  
      var details1 = 'grid[' + row + '].conditionalDetails';
      data.conditionalDetails = $(details1).value;
  
      data.moveFrom = fromCol;
      data.moveTo = toCol;
  
      var lastRequest = new Ajax.Request(href, {
          postBody: Object.toQueryString(data)
      });
  
      return true;
  }
  
  function ajaxform(checkbox, textbox, isAdd, details, conditionalDetails) {
  