//********************************************************************************************************** // EO.Web Script Library. Copyright (C) 2006-2017 Essential Objects, Inc. All rights reserved. // Visit Us on the Web: http://www.essentialobjects.com // Version: 17.0.40.0 //********************************************************************************************************** EO1740.f.atg=function(a){ if(!a)a=eo_culture;if(!a)a=eo_culture_i;return a;};EO1740.f.ath=function(){var a=".";var b=EO1740.f.atg();if(b){var c=b.numberFormat.CurrencyDecimalSeparator;if(c&&(c.length==1))a=c;}return a;};EO1740.f.ati=function(a){if(a){var b=EO1740.f.ath();a=a.replace(b,".");}return parseFloat(a);};EO1740.f.atj=function(a){a=a.toString();var b=EO1740.f.ath();a=a.replace(".",b);return a;};EO1740.g.aed="format brace mismatch";EO1740.g.aee="invalid format string";EO1740.f.atk=function(a,b){return EO1740.f.atm(false,a,b);};EO1740.f.atl=function(a,b){return EO1740.f.atm(true,a,b);};EO1740.f.atm=function(a,b,c){var d='';for(var e=0;;){var f=b.indexOf('{',e);var g=b.indexOf('}',e);if((f<0)&&(g<0)){d+=b.slice(e);break;}if((g>0)&&((g0)){return this.toLocaleString();}else{return this.toString();}}var c=["n %","n%","%n"];var d=["-n %","-n%","-%n"];var e=["(n)","-n","- n","n-","n -"];var f=["$n","n$","$ n","n $"];var g=["($n)","-$n","$-n","$n-","(n$)","-n$","n-$","n$-","-n $","-$ n","n $-","$ n-","$ -n","n- $","($ n)","(n $)"];function expandNumber(h,i,j,k,l){var m=j[0];var n=1;var o=h.toString();var p="";var q="";var r=o.split('.');if(r.length>1){o=r[0];p=r[1];var s=p.split(/e/i);if(s.length>1){p=s[0];q="e"+s[1];}}if(i>0){var t=p.length-i;if(t>0){p=p.slice(0,i);}else if(t<0){for(var u=0;u=0){if(m===0||m>v){if(w.length>0)return o.slice(0,v+1)+k+w+p;else return o.slice(0,v+1)+p;}if(w.length>0)w=o.slice(v-m+1,v+1)+k+w;else w=o.slice(v-m+1,v+1);v-=m;if(n1)i=parseInt(a.slice(1));var y;switch(a.charAt(0)){case"d":case"D":y='n';if(i!==-1){var z=""+h;var aa=i-z.length;if(aa>0){for(var u=0;u=0){this.aks(a.substr(b,c-b));this.akq+="\\";this.akq+=this.akp;b=c+1;c=this.akr(a,b);}var d=a.length;if(b=0){c=a.charAt(e);if(c=='\r')c='r';else if(c=='\n')c='n';this.akp=c;return e;}}return-1;};EO1740.f.att=function(a){for(var b=0;b=0x80){var d=(c&0xff00)>>8;var e=c&0xff;this.akq+="\\u";this.akq+=EO1740.f.apq((d>>4)&0xf);this.akq+=EO1740.f.apq(d&0xf);this.akq+=EO1740.f.apq((e>>4)&0xf);this.akq+=EO1740.f.apq(e&0xf);}else this.akq+=a.charAt(b);}};EO1740.f.atu=function(a){var b=new EO1740.f.atr(a);var c=b.akq;if(c){var d="";var e=c.toLowerCase().indexOf(d);if(e>=0)c=c.substr(0,e+2)+'" + "'+c.substr(e+2);}return'"'+c+'"';};EO1740.f.atr.prototype.akr=EO1740.f.ats;EO1740.f.atr.prototype.aks=EO1740.f.att;EO1740.f.k(function(){EO.Web.encodeJSString=EO1740.f.atu;});EO1740.g.d.j("fmt");