// encoded 06/07/2006 16:03:38 by nexencoder
var nex_debug;var debug_mode=false;function nex_debugger(){this.errors=[];this.timer=null;this.globals=[];this.debugger_url='/global/debugger/';this.report_code='255101102118150170171156167116108103104';this.win_prop='width=580,height=420,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes';this.moz=(document.getElementById&&parseInt(navigator.appVersion)>=5&&navigator.appCodeName=='Mozilla');this.win=null;this.add_error= function(v2, v3, v4){var v1=this.errors.length;this.errors[v1]={type:'javascript',file:v3,line:v4,msg:v2,hier:this.get_caller()};if(this.timer)window.clearTimeout(this.timer);this.timer=window.setTimeout('nex_debug.show()',500);};this.sql_error= function(v2, v3){var v1=this.errors.length;this.errors[v1]={type:'nexsql',file:'',line:-2,msg:v2,query:v3,hier:new Array()};if(this.timer)window.clearTimeout(this.timer);this.timer=window.setTimeout('nex_debug.show()',500);};this.get_caller= function(){if(this.moz)return'';var v1=[];var v2=nex_error.arguments;var v3;var v4=10;while(v4--&&v2&&v2.caller){v2=v2.caller;v3=v2.toString();if(v3&&v3.indexOf('function ')==0)v1[v1.length]=v3.substring(v3.indexOf(' ')+1,v3.indexOf(')')+1);}if(!v1.length)return'on top level';else return v1;};this.show= function(){if(!this.errors.length)return;if(window.debug_mode){var v1=(this.errors.length>1)?'where':'was';var v2=(this.errors.length>1)?'errors':'error';if(confirm('There '+v1+' '+this.errors.length+' JavaScript '+v2+' on this page.\n [OK] = show errors\n [Cancel] = discard message')){this.open(true);if(!this.win&&this.moz){if(window.onclick)this.onclick_temp=window.onclick;window.onclick=new Function('nex_debug.open()');}}}else this.report();};this.open= function(v1){if(this.win&&!this.win.closed&&this.win.nex_debug_head)this.win.nex_debug_head.show_errors();else this.win=window.open(this.debugger_url+'?mode=errors','nexDebugWin',this.win_prop);if(this.win)this.win.focus();if(!v1)window.onclick=this.onclick_temp?this.onclick_temp:null;};this.report= function(){if(!this.errors.length)return;var v1='';var v2='&';var v3='%7C';var v4='%AC';var v5=this.report_code;var v6=parseInt(v5.substring(0,1));var v7=parseInt(v5.substring(1,v6+1));var v8=v5.substring(v6+1,v5.length);if(window.neximage_vars&&neximage_vars.comm_path)v1=neximage_vars.comm_path+'_step=501';else{for(var v9=0;v9<v8.length;v9=v9+3)v1+=String.fromCharCode(parseFloat(v8.substring(v9,v9+3))-v7);}v1+=(v1.indexOf('?')>0?'&':'?')+'_useragent='+escape(navigator.userAgent)+v2+'_referer='+escape(document.referrer)+v2+'_domain='+location.host+v2+'_url='+escape(location)+v2;if(this.globals.length)for(var v9=0;v9<this.globals.length;v9++)if(window[this.globals[v9]])v1+='_'+this.globals[v9]+'='+window[this.globals[v9]]+v2;v1+='_errors=';for(var v10=0;v10<this.errors.length;v10++){if(this.errors[v10].type=='nexsql')v1+=escape(this.errors[v10].query)+v4;else v1+=escape(this.errors[v10].file)+v4;v1+=this.errors[v10].line+v4;v1+=escape(this.errors[v10].msg)+v4;if(typeof(this.errors[v10].hier)=='string')v1+=escape(this.errors[v10].hier);else if(this.errors[v10].hier.length)v1+=escape(this.errors[v10].hier.join(';'));if(v10<this.errors.length-1)v1+=v3;}var v11=new Image();v11.src=v1;this.clear();};this.clear= function(){this.errors=[];};}function nex_error(v1, v2, v3){if(!v2)v2=window.location;if(!v3)v3='unknown';if(!window.nex_debug)nex_debug=new nex_debugger();if(v3==-2)nex_debug.sql_error(v1,v2);else nex_debug.add_error(v1,v2,v3);return true;}window.onerror=nex_error;
