A LotusScript library for general purpose field validation
Another thing to keep in mind is the "Hide when" - A field to have hide when formulas to prevent the validation check if the field is hidden.