﻿
function OnServerError(response, request)
{
  $.unblockUI();
  DisplayError('There was an error processing the request.  Please try again.');
}

function DisplayError(text, title)
{
    if (title == null) title = "Error";
    $('#dlgError')
        .empty()
        .text(text)
        .dialog('option', 'title', 'Error')
        .dialog('option', 'buttons', { "OK": function() { $(this).dialog("close"); } })
        .dialog('option', 'modal', true)
        .dialog('open')
        .focus();
    
    
}


