/*An Extension to the OpenLog frameworkTo use the JavaScript error logging, add this script library to your web form.Also make sure that the Form has the "prototype-1.4.0.js" script library added (it provides the AJAX capabilities)Finally make sure that the current database has the agent "agLogJSError" added to it*/function doError(msg,url,ln) {	var strURL = "/agLogJSError?openagent&rand=" + Math.floor(Math.random()*1001);	var strData = "message=" + escape(msg);	strData += "&url=" + escape(url);	strData += "&ln=" + escape(ln);	new Ajax.Request(strURL, 		{ 	method: 'post',			postBody: strData,			onComplete: handleErrorResponse		}	);	return true;}function handleErrorResponse(originalRequest){	window.status="An error has been detected on this page and logged with the support team. Please continue to use the application as normal.";}try {    window.onerror = doError;}catch(er) {}
