anchor.diff:            metareview.style.display = "none";
           }
       }
  -
       //zhewei: varying rubric by round still not add 'BookmarkRatingQuestionnaire' yet.
       function handleCheckReviewVary(checkvalue) {
           var state = checkvalue.checked;
  
positive.code:         else{
              html += '<td align="center"><input name="assignment_form[assignment_questionnaire][][used_in_round]" style="width:30px" type="hidden" value="' + round_no + '"> </td>';
          }
          questionnaire_table.last().after(html);
          jQuery('#questionnaire_id').val(questionnaire.id).attr('id', '');
      }
  
      function removeQuestionnaireTableRow(questionnaire_type) {
        var row_id = 'questionnaire_table_' + questionnaire_type;
        jQuery('#' + row_id).remove();
      }
  
    </script>
  
    <script type="text/javascript">
      function metareview_due_date() {
  
        var metareview = document.getElementById("metareview_due_date_label");
  
          var dropdownIndex = document.getElementById('metareview_quest').selectedIndex;
          var dropdownValue = document.getElementById('metareview_quest')[dropdownIndex].value;
          if (dropdownValue != "0") {
  
negative.code:                   <%= questionnaire_options(@assignment_form.assignment, 'ReviewQuestionnaire',nil).to_json.html_safe %>
            );
            <% end %>
            var metareview_allowed_checkbox = jQuery('#metareviewAllowed');
            if (metareview_allowed_checkbox.is(':checked')) {
              addQuestionnaireTableRow(
  