anchor.diff:      });
   
       $(document).on('click', '#delete_question', function() {
  -        var question_url =                $(this).data('question_url');
  +        var question_no                 = $(this).parents('.question').find('.question-number').text().replace(' )','').trim();
  +        var question_url                = $(this).data('question_url');
           var replace_form_surveyform_url = $(this).data('replace_form_surveyform_url');
  -        $.ajax({
  -            type: "DELETE",
  -            url: question_url,
  -            success: function(msg){
  -                if (typeof msg !== undefined && msg.length>0) {
  -                    alert(msg);
  +
  +        var result = confirm("Are you sure you want to delete question #" + question_no + "?  It will be immediately deleted from the system.")
  +
  +        if (result) {
  +            $.ajax({
  +                type: "DELETE",
  +                url: question_url,
  +                success: function(msg){
  +                    if (typeof msg !== undefined && msg.length>0) {
  +                        alert(msg);
  +                    }
  +                    else {
  +                        $.get(replace_form_surveyform_url,
  +                            {},
  +                            function(response) {
  +                                replace_surveyform_contents(response);
  +                            }
  +                        );
  +                    }
  +                },
  +                error: function(){
  +                    alert("This question cannot be deleted.");
                   }
  -                else {
  -                    $.get(replace_form_surveyform_url,
  -                        {},
  -                        function(response) {
  -                            replace_surveyform_contents(response);
  -                        }
  -                    );
  -                }
  -            },
  -            error: function(){
  -                alert("This question cannot be deleted.");
  -            }
  -        });
  +            });
  +        }
  +
       });
   
   //     $(document).on('click', '#edit_logic', function() {
  
positive.code:     });
  
      $(document).on('click', '#delete_section', function() {
          var survey_section_url =  $(this).data('survey_section_url');
          var survey_section_id =   $(this).data('survey_section_id');
          var survey_section_title =   $(this).data('survey_section_title');
          var result = confirm("Are you sure you want to delete section " + survey_section_title + "?")
  
          if (result) {
  
              $.ajax({
                  type: "DELETE",
                  url: survey_section_url,
                  success: function(msg){
                      if (typeof msg !== undefined  && msg.length>0) {
                          alert(msg);
                      }
                      else {
                          $("#survey_section_"+survey_section_id).remove();
                          update_question_numbers();
                          update_dependency_questions();
                      }
                  }
              });
  
          }
      });
  
      $(document).on('click', '#cut_section', function() {
          var cut_section_surveyform_url = $(this).data('cut_section_surveyform_url');
          var section_already_cut =        $(this).data('section_already_cut');
          //provides a way to check that this function is complete in tests.  It disappears on complete when
          //the contents of div#box are replaced.
          $('div#survey').addClass('jquery_cut_section_started');
          $.get(cut_section_surveyform_url,
              {},
              function(response) {
                  replace_surveyform_contents(response);
              }
          );
      });
  
      $(document).on('click', '#paste_section', function() {
  
negative.code:     });
  
      $(document).on('click', '#cut_question', function() {
          var question_no                 = $(this).parents('.question').find('.question-number').text().replace(' )','').trim();
          var cut_question_surveyform_url = $(this).data('cut_question_surveyform_url');
          var question_already_cut        = $(this).data('question_already_cut');
  
          var result = confirm("Are you sure you want to cut question #" + question_no + "?  It will be removed from the survey but you can click any 'Paste Question' button where you would like the question moved to.")
  
          if (result) {
              //provides a way to check that this function is complete in tests.  It disappears on complete when
              //the contents of div#box are replaced.
              $('div#survey').addClass('jquery_cut_question_started');
              $.get(cut_question_surveyform_url,
                  {},
                  function(response) {
                      replace_surveyform_contents(response);
                  }
              );
          }
  
      });
  
      $(document).on('click', '#paste_question', function() {
  