function dollar_keyup() {
Number.prototype.format = function(n, x, s, c) {
var re = '\\d(?=(\\d{' + (x || 3) + '})+' + (n > 0 ? '\\D' : '$') + ')',
num = this.toFixed(Math.max(0, ~~n));
return (c ? num.replace('.', c) : num).replace(new RegExp(re, 'g'), '$&' + (s || ','));
};
var valore;
valore= parseInt(jQuery('#budget_max').val());
valore = valore.format(2, 3, '.', ',');
return valore;
}