anchor.diff:              <h3><a class="accordionA" href="#">Legend </a></h3>
           </div>
           <div><sched:legend/> </div>
  -
  +     <c:if test="${not schedulePreview}">
             <%--************ Delay Or Advance Portion**********--%>
           <div class="accordionDiv">
               <h3><a class="accordionA" href="#">Delay or Advance</a></h3>
  
positive.code:         <div class="card">
              <markTag:population/>
          </div>
      </div>
  
      <%--<sched:legend/>--%>
      <form id="batch-form" style="font-weight:normal;">
  
negative.code:             var paramsInXML = '<next-scheduled-study-segment study-segment-id="'+studySegmentId+ '" start-date="'+date+ '" mode="'+ immediateOrPerProtocol.toLowerCase() +'" start-day="5"/>'
              return paramsInXML;
          }
          <c:if test="${schedulePreview}">
              Event.observe(window, 'load', function() {
                  SC.SP.generateIntialSchedulePreview('${previewResource}')
                  Event.observe('generateSchedulePreview', 'click', function(){
                      SC.SP.generateSchedulePreview('${previewResource}')
                  })
                  Event.observe('addToSelectedStudySegments', 'click', SC.SP.selectStudySegmentsForPreview)
                  Event.observe('removeSelectedStudySegments', 'click', SC.SP.removeFromSelectedStudySegments)
                  })
          </c:if>
      </script>
  
  </head>
  