Hi,
Use the FM EU_TAX_NUMBER_CHECK as suggested by Johann to validate the entries. As you mentioned the component also in your post. Go the attribute TAXNUMBER and redefine the GETTER & SETTER methods of the attribute to include the logic for validation.
Hope this will helpful.