// Display Tessitura error output. 
function showTessError(error_string) {
  document.getElementById('tess_error_output').innerHTML = error_string + '<p><a href="#" onclick="closeErrorNotification();" class="close_err_link"><span>[x] Close</span></a></p>';
  $('#tess_error_output').slideDown(window.animation_speed);
}

// Close the Tessitura error output area.
function closeErrorNotification() {
  $('#tess_error_output').slideUp(window.animation_speed);
}

// Disable all form submit buttons upon submission of (any) one form.
$(document).ready(function ()
{
  // Disable all submit buttons when one has been submitted.
  $("form").submit(function(){
    $('input[type=submit]', this).attr('disabled', 'disabled');
  });

  $("#error_bar").hide(); // Hide the static error bar (bottom of page) if JS enabled.
  $("#tess_err_message").hide(); // Hide the static error bar (bottom of page) if JS enabled.
  $(".close_err_link").show();
});

