hi pradeep,
initially the contains the some syntax errors like some braces are missing.

I corrected and tried to run it, where in I have two text fields and one list box, but it's only validating for first field and not checking or validating 2nd text box and 3rd list box..

and more over this not what I want,

what I want is it should check immediately whenever the user leaves the text box.