Do you think it's possible to create a business object that, before the page is loaded, determines what form fields exist on the page and writes JavaScript validation code dynamically? A co-worker of mine has already accomplished this kind of validation server-side by using a hash table. What do you think?