To keep a 0 at first position you need to use a textfield, not a numeric field... unless there is a way to bypass the numeric field formatting
within a textfield to make sure you only have numbers, you can use the method isNaN()... is Not a Number
in the exit event of the textfield you would have something like this :
Hope this help!