<!--

function bodyOnload() {

}

function bodyOnUnload() {

}


function addDefautAJAXErrorBehavior() {
    try{
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(defaultAJAXEndRequest);
    }
    catch(err)
    {/*nothing to do*/}
}


function defaultAJAXEndRequest(sender, args) {
  // Check to see if there's an error on this request.
  if (args.get_error() != undefined)
  {
    // If there is, show the custom error.
    alert(args.get_error().message.replace("Sys.WebForms.PageRequestManagerServerErrorException: ", ""));
 
    args.set_errorHandled(true);
  }
}

-->
