<!--
//=================================================================================================
function confirmReject(action, file_type, file_name) {
  var msg_text  = "\n";
      msg_text += "                 ***  W A R N I N G !  *** \n\n";
      msg_text += "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n";
      msg_text += "YOU ARE ABOUT TO REJECT AND DELETE THIS FILE. \n";
      msg_text += "            Are you sure you want to continue? \n\n";
      msg_text += "                   (OK = Yes  /  Cancel = No)\n";
      msg_text += "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n";
  if ( confirm(msg_text) && (passed_dirty_check("REJECTING")) ) {
    var frm = document.createElement("form");            // Create a form
        frm.setAttribute("name", "virtual_form");
        document.body.appendChild(frm);                  // Append to the document
    var txt_action = document.createElement("input");    // Create a hidden field
        txt_action.setAttribute("type", "hidden");
        txt_action.setAttribute("name", "action");
        txt_action.setAttribute("value", action);
    var txt_file_type = document.createElement("input"); // Create a hidden field
        txt_file_type.setAttribute("type", "hidden");
        txt_file_type.setAttribute("name", "file_type");
        txt_file_type.setAttribute("value", file_type);
     var txt_file_name = document.createElement("input"); // Create a hidden field
        txt_file_name.setAttribute("type", "hidden");
        txt_file_name.setAttribute("name", "file_name");
        txt_file_name.setAttribute("value", file_name);
    frm.appendChild(txt_action);                         // Append to the form
    frm.appendChild(txt_file_type);                      // Append to the form
    frm.appendChild(txt_file_name);                      // Append to the form
    frm.action = 'http://' + location.hostname + location.pathname + '#files';
    frm.method = "POST"
    frm.submit();                                        // Submit the form
  } else {
    return (false);
  } // end if
} //END FUNCTION
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
function confirmAccept(action, file_type, file_name) {
  var msg_text  = "\n";
      msg_text += "                  ***  N O T I C E  ***\n\n";
      msg_text += " YOU ARE ABOUT TO MARK THIS FILE AS ACCEPTED. \n";
      msg_text += "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n";
      msg_text += "            Are you sure you want to continue? \n\n";
      msg_text += "                   (OK = Yes  /  Cancel = No)\n";
      msg_text += "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n";
  if ( confirm(msg_text) && (passed_dirty_check("ACCEPTING")) ) {
    var frm = document.createElement("form");            // Create a form
        frm.setAttribute("name", "virtual_form");
        document.body.appendChild(frm);                  // Append to the document
    var txt_action = document.createElement("input");    // Create a hidden field
        txt_action.setAttribute("type", "hidden");
        txt_action.setAttribute("name", "action");
        txt_action.setAttribute("value", action);
    var txt_file_type = document.createElement("input"); // Create a hidden field
        txt_file_type.setAttribute("type", "hidden");
        txt_file_type.setAttribute("name", "file_type");
        txt_file_type.setAttribute("value", file_type);
    var txt_file_name = document.createElement("input"); // Create a hidden field
        txt_file_name.setAttribute("type", "hidden");
        txt_file_name.setAttribute("name", "file_name");
        txt_file_name.setAttribute("value", file_name);
    frm.appendChild(txt_action);                         // Append to the form
    frm.appendChild(txt_file_type);                      // Append to the form
    frm.appendChild(txt_file_name);                      // Append to the form
    frm.action = 'http://' + location.hostname + location.pathname + '#files';
    frm.method = "POST"
    frm.submit();                                        // Submit the form
  } else {
    return (false);
  } // end if
} //END FUNCTION

//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
function passed_dirty_check(the_action) {
  if (document.forms['update_form'].NeedsDirtyCheck.value == 'yes') {
    if (form_is_modified(document.forms['update_form'])) {       
      var msg_text  = "\n";
          msg_text += "                        ***  N O T I C E  ***\n\n";
          msg_text += "IF YOU PROCEED WITH " + the_action  + " THIS FILE, THE CHANGES\n";
          msg_text += "  YOU HAVE MADE TO THE FORM DATA WILL NOT BE SAVED.\n";
          msg_text += "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n";
          msg_text += "              Are you sure you want to continue? \n\n";
          msg_text += "                     (OK = Yes  /  Cancel = No)\n";
          msg_text += "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n";
      if ( confirm(msg_text) ) {
        document.forms['update_form'].NeedsDirtyCheck.value = 'no'; //turn off the Dirty check so the form can go
        return (true);
      } else {
        return (false);
      } //end if
    } else {
      return (true);
    } //end if
  } else {
    return (true);
  } // end if
} //END FUNCTION
-->
