anchor.diff:          }
   
   
  -        function gatherDataFromMarkForm() {
  -            var newModeSelector = $$("#new-mode-selector")[0].value
  +        function executeMarkPost() {
  +           var newModeSelector = $$("#new-mode-selector")[0].value
               var state=""; //default for current state is empty
               var reason="";
  -            var toDate=""
  -            if (newModeSelector == "") {                                     
  +            var toDate=0;
  +            if (newModeSelector == "") {
                   reason = $$('#new-reason-input-group input')[0].value
                   toDate = $$("#move_date_by_new-date-input-group input")[0].value
               } if (newModeSelector == 1) {
  
positive.code:                                 <ul>
                                      <c:forEach items="${day.activities}" var="sa">
                                          <c:set var="study" value="${sa.scheduledStudySegment.scheduledCalendar.assignment.studySite.study}"/>
                                          <li>
                                              <input type="checkbox" value="${sa.gridId}" name="events" class="event <c:if test="${sa.conditionalState}">conditional-event</c:if>
                                              <c:if test="${(sa.conditionalState || sa.scheduledState) && day.date < sa.scheduledStudySegment.todayDate}">past-due-event</c:if>"/>
                                              <img src="<c:url value="/images/${sa.currentState.mode.name}.png"/>" alt="Status: ${sa.currentState.mode.name}"/>
  
negative.code:             return new Date(year, month.toString(), day);
          }
  
          function shiftDateByNumberOfDays(dateToShiftInMilliseconds, numberOfDaysToShift) {
              var shiftedDate = new Date();
              var timeShifted =  dateToShiftInMilliseconds + (parseInt(numberOfDaysToShift, 10)*24*60*60*1000)
              shiftedDate.setTime(timeShifted)
              return shiftedDate.toString();
          }
  