﻿function registerajaxError(){$(document).ajaxError(function(D,C,A,B){alert("An error has occured while processing your request. ");
printtonewwindow("<h2>The full response to your request is listed below</h2>"+C.responseText);
if(window.console&&window.console.error){console.error(arguments)}})}
function printtonewwindow(E,B,D){if(typeof B=="undefined"){var B="400"}if(typeof D=="undefined"){var D="600"
}var A="toolbar=yes,location=no,directories=yes,menubar=yes,";A+="scrollbars=yes,width="+D+", height="+D+", left=500, top=25";
var C=window.open("","",A);C.document.open();C.document.write("<html><head><title>AllPay</title>");
C.document.write(E);C.document.write("</body></html>");C.document.close();C.focus()
}
