anchor.diff:      return data
   }
   
  -function getDayCount(){
  +function getDayCount() {
       var dayCount;
       //for week, month, fortnight, and quarter, the range is return a specific array of days,
       //f.e. for week it would be 1, 8, 15. But since on a grid the count starts from 0, we need to decrement actual day by one.
       if (${period.duration.unit == 'week'}) {
  -        dayCount = ${period.dayRanges[0].weeks}
  -        for (var i=0; i<dayCount.length; i++) {
  -            dayCount[i] = dayCount[i]-1;
  +        dayCount =
  +    ${period.dayRanges[0].weeks}
  +        for (var i = 0; i < dayCount.length; i++) {
  +            dayCount[i] = dayCount[i] - 1;
           }
       } else if (${period.duration.unit == 'month'}) {
  -        dayCount = ${period.dayRanges[0].months}
  -        for (var i=0; i<dayCount.length; i++) {
  -            dayCount[i] = dayCount[i]-1;
  +        dayCount =
  +    ${period.dayRanges[0].months}
  +        for (var i = 0; i < dayCount.length; i++) {
  +            dayCount[i] = dayCount[i] - 1;
           }
       } else if (${period.duration.unit == 'fortnight'}) {
  -        dayCount = ${period.dayRanges[0].fortnights}
  -        for (var i=0; i<dayCount.length; i++) {
  -            dayCount[i] = dayCount[i]-1;
  +        dayCount =
  +    ${period.dayRanges[0].fortnights}
  +        for (var i = 0; i < dayCount.length; i++) {
  +            dayCount[i] = dayCount[i] - 1;
           }
       } else if (${period.duration.unit == 'quarter'}) {
  -        dayCount = ${period.dayRanges[0].quarters}
  -        for (var i=0; i<dayCount.length; i++) {
  -            dayCount[i] = dayCount[i]-1;
  +        dayCount =
  +    ${period.dayRanges[0].quarters}
  +        for (var i = 0; i < dayCount.length; i++) {
  +            dayCount[i] = dayCount[i] - 1;
           }
       } else if (${period.duration.unit =='day'}) {
  -        dayCount = ${period.dayRanges[0].days}
  +        dayCount =
  +    ${period.dayRanges[0].days}
       }
   
       return dayCount;
  
positive.code: 
  function updateActivity(input, li) {
      $('add-activity').name = li.innerHTML;
      $('add-activity').value= li.id;
      updateAddActivityButton()
  //    $('add-activity-button').focus()
  }
  
negative.code: function clearHoverTip() {
      $('palette-tip').innerHTML = '&nbsp;'
  }
  
  function registerHoverTip(element, message) {
      element.observe('mouseover', function() {
          $('palette-tip').innerHTML = message
      })
      element.observe('mouseout', clearHoverTip)
  }
  
  