<input type="text"
onkeyup="this.value=this.value.replace(/[^\d\.\-]/gi,'')"
onblur="this.value=this.value.replace(/[^\d\.\-]/gi,'')" >

ciao