Type.registerNamespace('TerpSys.Logging');TerpSys.Logging.ModalPopupTraceListener = function(lineSeparator, targetPopup, targetElement, targetMessage)
{
if (typeof targetPopup == 'string')
{
this._popup = $find(targetPopup);}
else
{
this._popup = targetPopup;}
if (typeof targetElement == 'string')
{
this._element = $get(targetElement);}
else
{
this._element = targetElement;}
if (typeof targetMessage == 'string') {
this._message = $get(targetMessage);}
else {
this._message = targetMessage;}
TerpSys.Logging.ModalPopupTraceListener.initializeBase(this, [lineSeparator]);}
TerpSys.Logging.ModalPopupTraceListener.prototype =
{
dispose: function() {
this._element = null;this._popup = null;TerpSys.Logging.ModalPopupTraceListener.callBaseMethod(this, 'dispose');},
publishException: function(errorCode, exception, environmentInfo) {
var exceptionMessage = '';this._element.innerHTML = TerpSys.Logging.ModalPopupTraceListener.callBaseMethod(this, 'formatException', [errorCode, exception]);if (this._message != null) {
exceptionMessage = TerpSys.Logging.ModalPopupTraceListener.callBaseMethod(this, 'formatExceptionMessage', [exception]);this._message.innerHTML = exceptionMessage;}
if (exceptionMessage.indexOf("HTML Parsing Error") != -1)
this._popup.show();}
}
TerpSys.Logging.ModalPopupTraceListener.registerClass('TerpSys.Logging.ModalPopupTraceListener', TerpSys.Logging.BaseTraceListener);if (typeof(Sys) != 'undefined')
{
Sys.Application.notifyScriptLoaded();}

