As for the first error, you'll need to restrict the values that the input text can take, in your case only numerals. Just selecting "numerals" in the font embedding area does not restrict alphabetic values from being entered. So something like this should clear that up,

PHP Code:
input.restrict "0-9"
As for the second, try removing the code that's placed directly on the button. It's good practice to keep all the code off of objects and on it's own layer.

HTH.