Validating input via callback function?

Sorry - above was the wrong link to the author of the post.
Here comes the right link: Callbacks - how to get current control value? - #2 by ksxx