[eluser]wowdezign[/eluser]
You could give the user four separate fields and then validate each one as numeric. Then when they submit the form, you could construct the number before inserting into the database.
When repopulating the form, you'll need to undo the process.
This method is my favorite. Others may have additional suggestions.