tacktrace));
  error.fileName = err.fileName || err.sourceUrl;
  error.name = 'window.onerror';

  reportToServer(error);
}

window.addEventListener('error', window.globalExceptionHandler);
window.template_time_logging.push({template: 'global_exception_handler', name: 'finish_template', time: Date.now()});
window.template_time_logging.push({template: 'global_image_onload', name: 'begin_template', time: Date.now()});
var onImageLoad = function(event) {
  if (!window.pwtTempStorage) {
    window.pwtTempStorag