jQuery.numberFormat=function(c,b,d,e){c=!isFinite(+c)?0:+c;b=!isFinite(+b)?0:Math.abs(b);e=typeof e==="undefined"?",":e;d=typeof d==="undefined"?".":d;var a="";a=function(g,h){var f=Math.pow(10,h);return""+Math.round(g*f)/f};a=(b?a(c,b):""+Math.round(c)).split(".");if(a[0].length>3)a[0]=a[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,e);if((a[1]||"").length<b){a[1]=a[1]||"";a[1]+=Array(b-a[1].length+1).join("0")}return a.join(d)};
