use jquery ui modal box placing the message box in an html hidden div instead.
It is very easy to break the javascript making translation of the messages (you could have an apos ')