I have a CustomValidator that is validating a telephone number for several different telephone numbering schemes. The client-side javascript looks like this:
The best way to change the error message of a validator control with image is:
sender.innerHTML = "YOUR HTML WITH ANYTHING COME HERE"