anchor.diff:              jQuery("#accordion").accordion();
           });
   
  +    function createDelayAdvanceForm(state) {
  +        var shiftOption = $('delayAdvanceSelector').value
  +        return Object.extend({
  +            "reason": $('reason').value,
  +            "toDate": shiftOption*$('toDate').value,
  +            "currentDate": $(document.getElementById('currentDate')).value,
  +            "state" : state
  +        })
  +    }
  +
  +    function postDelayAdvance(arrayOfActivities, state) {
  +        SC.asyncRequest('${collectionResource}'+ arrayOfActivities, Object.extend({
  +            method: 'POST',
  +            parameters: createDelayAdvanceForm(state)
  +        }))
  +    }
  +
  +    function executeDelayAdvancePost() {
  +        var arrayOfActivities='~';
  +        <c:forEach items="${schedule.days}" var="day">
  +            <c:if test="${not day['empty']}">
  +                <c:if test="${not empty day.activities}">
  +                    <c:forEach items="${day.activities}" var="sa">
  +                        arrayOfActivities = arrayOfActivities+${sa.id}+';';
  +                    </c:forEach>
  +                </c:if>
  +            </c:if>
  +        </c:forEach>
  +        postDelayAdvance(arrayOfActivities, 'scheduled')
  +    }
       </script>
   
   </head>
  
positive.code:     </div>
  </laf:box>
  <laf:box autopad="true" title="Scheduled activities" id="scheduled-activities-box">
  
      <%--TODO - move css to display.jsp, make accordion fit in the box--%>
      <div id="accordion" class="myaccordion">
        <div class="accordionDiv">
          <h3><a class="accordionA" href="#">Legend </a></h3>
        </div>
        <div><sched:legend/> </div>
        <div class="accordionDiv">
          <h3><a class="accordionA" href="#">Delay or Advance</a></h3>
        </div>
        <div>slsdfskflsdfj </div>
        <div class="accordionDiv">
          <h3><a class="accordionA" href="#">Mark</a></h3>
        </div>
  
negative.code:         .myaccordion .accordionDiv .accordionA{
              padding: 0px;
              border: 0px;
          }
  
          .myaccordion .value .delayAdvanceSelector {
              color:#000000;
              font-family:'Helvetica Neue',Arial,Helvetica,sans-serif;
              font-size:10pt;
              margin-bottom:1em;
          }
  
          .submitDelayOrAdvance {
              margin-top: 2em;
          }
  
          .delayAdvanceHeader {
              line-height: 2em;
          }
  
      </style>
  
  