dotedCount = Value.split(".").length - 1;
if(dotedCount >1){
var Value = $('#Amount').val().replace(/[.\s]/g,'')
}
v = 'asdfsadf asdf sadf . asf asdf sad.f. .sdaf asdf sa.df .sadf .sdaf '
output = v.split('.');
output = output.shift() + '.' + output.join('');
// "asdfsadf asdf sadf . asf asdf sadf sdaf asdf sadf sadf sdaf "