var MS_Fn=null;function ErrSave(b){b.fonction=MS_Fn;b.fnbefore=MS_FnB;b.browserInfo="";if(Ext!=undefined&&Ext.isGecko!=undefined){if(Ext.isBorderBox==true){b.browserInfo+="IE in non-strict mode "}if(Ext.isStrict==true){b.browserInfo+=" strict (standards-compliant) mode"}if(Ext.isGecko==true){b.browser="FF 1.x Mozilla"}if(Ext.isGecko2==true){b.browser="FF 2.x Mozilla"}if(Ext.isGecko3==true){b.browser="FF 3.x Mozilla"}if(Ext.isIE==true){b.browser="IE minor 6"}if(Ext.isIE6==true){b.browser="IE 6"}if(Ext.isIE7==true){b.browser="IE 7"}if(Ext.isOpera==true){b.browser="Opera"}if(Ext.isSafari==true){b.browser="Safari"}if(Ext.isSafari2==true){b.browser="Safari 2.x"}if(Ext.isSafari3==true){b.browser="Safari 3.x"}if(Ext.isLinux==true){b.os="Linux"}if(Ext.isMac==true){b.os="Mac"}if(Ext.isWindows==true){b.os="Windows"}}var d=JSON.stringify(b);var a=JSON.parse(d);var c=new ajaxURL();c.setParameter("callback","ErrSaveCB");c.setParameter("parameters","e="+d);c.getURL(PODZ.installpath+"1MinuteShop/Navigation/Modules/ErrManagement/ajax_saveError.php")}function ErrSaveCB(a){MS_FnStack=new Array();if(trim(a)!=""){if(MS_Debugging==true){alert("Log saved : \n"+a)}}}function ErrSnap(f){if(MS_Fn!=null){MS_FnB={name:MS_Fn.name,occured:MS_Fn.occured}}var e=new Date();var a=e.getHours();var c=e.getMinutes();var d=e.getSeconds();if(a<10){a="0"+a}if(c<10){c="0"+c}if(d<10){d="0"+d}var b=a+":"+c+":"+d;MS_Fn={name:f,occured:b};if(MS_Debugging==true){MS_FnStack.push(MS_Fn.occured+" "+MS_Fn.name)}}function ErrSaveStack(){if(MS_Debugging==true){ErrSave({action:"saved by user (Alt+)"})}}function ErrCleanStack(){MS_FnStack=new Array()}function ErrDebugSwitch(){MS_Debugging=!MS_Debugging;alert("Debug mode is "+MS_Debugging)};