displaying validation errors as an image tooltip

hi all,

in each input text controls beside having image icon and each input text controls having client-side validations ex:lenght should be six characters,after entering the data in input text filed, if i place cursor may be by mouse or by tab keyboard button on image icon it should show the the validation errors of the respective textfield, please suggest me how can do this…

regards,
anil kumar e

regards,
anil kumar e