Ext.ns('Ext.ux.layout');Ext.ux.layout.CenterLayout=Ext.extend(Ext.layout.FitLayout,{setItemSize:function(item,size){this.container.addClass('ux-layout-center');item.addClass('ux-layout-center-item');if(item&&size.height>0){if(item.width){size.width=item.width;}
item.setSize(size);}}});Ext.Container.LAYOUTS['ux.center']=Ext.ux.layout.CenterLayout;Ext.util.Format.euMoney=function(v)
{v=(Math.round((v-0)*100))/100;v=(v==Math.floor(v))?v+".00":((v*10==Math.floor(v*10))?v+"0":v);var color=(v<0)?"neg":"normal";return('€ '+v+'').replace(/\./,',');};Ext.util.Format.euMoneySigned=function(v)
{v=(Math.round((v-0)*100))/100;v=(v==Math.floor(v))?v+".00":((v*10==Math.floor(v*10))?v+"0":v);var color=(v<0)?"normal":"pos";return('€ '+v+'').replace(/\./,',');};Ext.override(Ext.form.NumberField,{setValue:function(v){v=typeof v=='number'?v:parseFloat(String(v).replace(this.decimalSeparator,"."));v=parseFloat(v).toFixed(this.decimalPrecision);v=isNaN(v)?'':String(v).replace(".",this.decimalSeparator);Ext.form.NumberField.superclass.setValue.call(this,v);}});