ajax error handler

http://www.jquery4u.com/ajax/jquery-ajax-error-handling-function/