Código HTML:
<input type="text" name="pago" size="10" onkeyup="var reg = /[^0-9\.]/g; if(reg.test(this.value))this.value = this.value.replace(reg,'');" style="font-family:verdana;font-size:12px;border-style:solid;border-width:1px;border-color:#4278B8;border: 1px #4278B8 solid;background-color:#ffffff;color:#000000;margin-left:1px;margin-right:1px"/>