Magic real time error/warning rendering using javascript snippet on a Table row??

Thanks for the solution Zach. I tried this solution on a custom field of Date type. When I enter the date from Datepicker this is not working. It works if I punch in the date manually. Is there a different approach when datepicker is involved?