Ext.ux.ErrorHandler.on('error', function(ex) {
    // zeitweise kommt aus ein fehler von chrome://skype_ff_toolbar_win/content/injection_graph_func.js:1
    // der hier ignoriert wird. (falsche / nicht mehr verfügbare toolbar?)
    // gefunden bei 2F Stargate
    if (ex.url && ex.url.substr(0, 9) == 'chrome:/'+'/') {
        return;
    }
    if (Vps.Debug.displayErrors) {
        throw ex;
    }
    Ext.Ajax.request({
        url: '/vps/error/error/json-mail',
        ignoreErrors: true,
        params: {
            url: ex.url,
            lineNumber: ex.lineNumber,
            stack: Ext.encode(ex.stack),
            message: ex.message,
            location: location.href,
            referrer: document.referrer
        }
    });
});

if (!Vps.Debug.displayErrors) {
    Ext.ux.ErrorHandler.init();
}

/**
 * message
 * title
 * mail bool
 * url
 * errorText nur für tests glaub ich, WTF?
 * checkRetry bool
 * mail bool
 * retry function
 * abort function
 */
Vps.handleError = function(error) {

    if (typeof error == 'string') error = { message: error };
    if (arguments[1]) error.title = arguments[1];
    if (arguments[2]) error.mail = arguments[2];
    if (!error.url) error.url = '';


    if ((error.checkRetry || Vps.Debug.displayErrors) && error.retry) {
        if (Vps.Debug.displayErrors) {
            title = error.title;
            msg = error.message;
        } else if (error.errorText) {
            title = error.errorText;
            msg = error.errorText;
        } else {
            title = (trlVps('Error'));
            msg = trlVps("A Server failure occured.");
            if (error.mail || (typeof error.mail == 'undefined')) {
                Ext.Ajax.request({
                    url: '/vps/error/error/json-mail',
                    params: {
                        url: error.url,
                        message: error.message,
                        location: location.href,
                        referrer: document.referrer
                    },
                    ignoreErrors: true
                });
            }
        }

            var win = new Ext.Window({
                    autoCreate : true,
                    title:title,
                    resizable:true,
                    constrain:true,
                    constrainHeader:true,
                    minimizable : false,
                    maximizable : false,
                    stateful: false,
                    modal: true,
                    shim:true,
                    buttonAlign:"center",
                    width:600,
                    minHeight: 300,
                    plain:true,
                    footer:true,
                    closable:false,
                    html: msg,
                    buttons: [{
                        text     : trlVps('Retry'),
                        handler  : function(){
                            error.retry.call(error.scope || window);
                            win.close();
                        }
                    },{
                        text     : trlVps('Abort'),
                        handler  : function(){
                            error.abort.call(error.scope || window);
                            win.close();
                        }
                }]

                });
                win.show();
    } else if (Vps.Debug.displayErrors) {
        Ext.Msg.show({
            title: error.title,
            msg: error.message,
            buttons: Ext.Msg.OK,
            modal: true,
            width: 800
        });
    } else {
        Ext.Msg.alert(trlVps('Error'), trlVps("A Server failure occured."));
        if (error.mail || (typeof error.mail == 'undefined')) {
            Ext.Ajax.request({
                url: '/vps/error/error/json-mail',
                params: {
                    url: error.url,
                    message: error.message,
                    location: location.href,
                    referrer: document.referrer
                }
            });
        }
    }
};

@@ -2095,20 +2095,16 @@
         
-    
 var win 
@@ -2138,20 +2138,16 @@
         
-    
 autoCrea
@@ -2169,28 +2169,24 @@
             
- 
-   
 title:title,
@@ -2182,28 +2182,24 @@
 itle:title,%0A
-    
             
@@ -2226,36 +2226,32 @@
                 
-  
-  
 constrain:true,%0A
@@ -2242,36 +2242,32 @@
 constrain:true,%0A
-    
                 
@@ -2304,20 +2304,16 @@
         
-   
- 
 minimiza
@@ -2317,36 +2317,32 @@
 izable : false,%0A
-    
                 
@@ -2354,36 +2354,32 @@
 izable : false,%0A
-    
                 
@@ -2403,36 +2403,32 @@
                 
-    
 modal: true,%0A   
@@ -2440,20 +2440,16 @@
         
-    
 shim:tru
@@ -2463,28 +2463,24 @@
             
- 
-   
 buttonAlign:
@@ -2501,28 +2501,24 @@
             
-    
 width:600,%0A 
@@ -2532,20 +2532,16 @@
         
-  
-  
 minHeigh
@@ -2564,20 +2564,16 @@
         
-    
 plain:tr
@@ -2592,20 +2592,16 @@
         
-   
- 
 footer:t
@@ -2597,36 +2597,32 @@
    footer:true,%0A
-    
                 
@@ -2653,20 +2653,16 @@
         
-   
- 
 html: ms
@@ -2664,20 +2664,16 @@
 l: msg,%0A
-    
         
@@ -2692,20 +2692,16 @@
 ons: %5B%7B%0A
-    
         
@@ -2752,36 +2752,32 @@
                 
-    
 handler  : funct
@@ -2775,36 +2775,32 @@
   : function()%7B%0A
-    
                 
@@ -2864,36 +2864,32 @@
                 
- 
-   
 win.close();%0A   
@@ -2901,32 +2901,26 @@
             
-    %7D%0A  
+%7D%0A
             
@@ -2927,18 +2927,12 @@
     
-  
 %7D,%7B%0A
-    
     
@@ -2987,36 +2987,32 @@
                 
-  
-  
 handler  : funct
@@ -3010,36 +3010,32 @@
   : function()%7B%0A
-    
                 
@@ -3099,36 +3099,32 @@
                 
-    
 win.close();%0A   
@@ -3136,34 +3136,26 @@
             
-    %7D%0A    
+%7D%0A
             
@@ -3157,25 +3157,16 @@
      %7D%5D%0A
-%0A        
         
@@ -3165,32 +3165,24 @@
         %7D);%0A
-        
         win.

fix indentation