function getTaxRate(tax_id){ var tax_rates= new Array(); tax_rates["1"]=0; if ( (tax_id > 0) && (tax_rates[tax_id] > 0) ) { return tax_rates[tax_id]; } else { return 0; } } function getLocaleInfo(id) { switch (id) { case "decimalSeparator": return '.'; case "groupSeparator": return ','; case "roundDigits": return 2; } return ""; } function getLocaleText(id){ switch (id) { case "requiredField": return 'This is a required field'; } return ""; }