function Separator(str){ return str.split(/(\d+)(\d{3})(\d{3})(\d{3})(\d{3})/).join(',').replace(/^,?/,'').replace(',.','.'); }
https://github.com/zyip/Numeral-js/blob/master/numeral.js
function Separator(str){ return str.split(/(\d+)(\d{3})(\d{3})(\d{3})(\d{3})/).join(',').replace(/^,?/,'').replace(',.','.'); }
https://github.com/zyip/Numeral-js/blob/master/numeral.js