/*
trapErrors = true;
MSIE = (navigator.userAgent.indexOf('MSIE') > -1) ? ( true ) : ( false );
if (!MSIE) { originalErrorHandler = window.onerror; }
originalDefaultStatus = window.defaultStatus;
numErrorEvents = 0;

function handleErrors(msg, errUrl, line) {
  if (logErrors || showErrorAsStatusMessage) {
    if (numErrorEvents < logNumErrors) {
      errImage = new Array(logNumErrors);
      d = new Date();
      sn = (scriptName) ? ('&scr=' + escape(scriptName)) : ('');
      lc = (logComment) ? ('&comm=' + escape(logComment)) : ('');
      if (MSIE) {
        errUrl = this.location;    
        msg = 'Unspecified JS Error';  
        line = 'MSIE';          
      } else {
        line = 'line ' + line;
      }      
      numErrorEvents++;
    }
  }  
  return trapErrors;
}

function restoreWindowToPreviousState() {
  if (!MSIE) { window.onerror = originalErrorHandler; }
  window.defaultStatus = originalDefaultStatus;
}

window.onUnload = restoreWindowToPreviousState;
window.onerror = handleErrors;
*/