<script language="javascript" type="text/javascript"> var solo_numeros = /^\d+-?(\d+)?$/; </script>
<form> <input type="text" onkeyup="this.value=this.value.replace(solo_numeros, '')" /> </form>