<input type="text" name="prezzo"
onkeyup="this.value=this.value.replace(/\.\,/g,'')"
onblur="this.value=this.value.replace(/\.\,/g,'')">

ciao