anchor.diff:  
   function registerDraggablesAndDroppables() {
       $$('.new-marker').each(
  -        function(item) {
  -            new Draggable(item, { revert: true });
  -        }
  -    );
  +            function(item) {
  +                new Draggable(item, { revert: true });
  +            }
  +            );
   
       $$('.counter').each(
  -        function(item) {
  -            Droppables.add(item, {
  -                accept: ['marker', 'new-marker'],
  -                hoverclass: 'hover',
  -                onDrop: moveMarker })
  -        }
  -    );
  +            function(item) {
  +                Droppables.add(item, {
  +                    accept: ['marker', 'new-marker'],
  +                    hoverclass: 'hover',
  +                    onDrop: moveMarker })
  +            }
  +            );
   
       $$('.marker').each(
  -        function(item) {
  -            new Draggable(item, { revert: true });
  -            item.activity = item.up('tr').select('input[id*=activity]')[0].value;
  -        }
  -    );
  +            function(item) {
  +                new Draggable(item, { revert: true });
  +                item.activity = item.up('tr').select('input[id*=activity]')[0].value;
  +            }
  +            );
   
       Droppables.add($('delete-drop'), { accept:'marker', hoverclass: 'hover', onDrop: deleteMarker })
   }
  
positive.code:     if (!conditionElement.hasClassName('no-condition')) {
          data.conditionalDetails = conditionElement.value;
      }
      var dayCount= getDayCount();
      for (var c = 0; c < dayCount.length; c++) {
          var val = $('grid[' + row + '].plannedActivities[' + c + ']')
          if (val != null ) {
              var varValue = val.getAttribute('value')
              if (varValue && varValue != -1) {
                  data['plannedActivities[' + c + ']'] = varValue;
              }
           }
      }
  }
  
  
negative.code:     return data
  }
  
  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;
          }
      } else if (${period.duration.unit == 'month'}) {
          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;
          }
      } else if (${period.duration.unit == 'quarter'}) {
          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}
      }
  
      return dayCount;
  