In the form itself, you can specify the maximum number of
characters that can benetered in the field. Select the field in
Design view and set Max Chars to 9. (n code view, set the maxlength
attribute to 9.)
To verify that the user entered all 9 characters, create a
javascript function that runs on the onChange event. The javascript
should check for a field length of 9, and alert the user if less
than that. I believe you can check the length of the field contents
using document.form1.field1.value.length(), where form1 is the name
of your form and field1 is the name of your text field.