function onlyInteger(a){
$(a).bind("change keyup input click", function() {
if (this.value.match(/[^\d\.\,]/g)) {
this.value = this.value.replace(/[^\d\.\,]/g, '');
}
});
}
function onlyInteger(a){
$(a).bind("change keyup input click", function(e) {
var reg = /(\d+[\.\,]?\d*)/;
if(this.value.match(reg))
this.value = this.value.match(reg)[1];
else
this.value = '';
});
}