This is a quick article I wrote up on how to put validation errors in a form right next to the field that caused the error. I think it makes for more useful and intuitive forms....
http://www.sciwerks.com/blog/2006/11/05/live-forms-part-1-putting-the-errors-in-the-right-place/
_Kevin