toddy,
what happens if i type the message "E" - unless i've missed something your script won't pick it up
EDIT: nevermind, misread reg expression
A much better alternative would be to use JScript's in-built toUpperCase() function.
Message = Message.toUpperCase();
Message = Message.replace(/E/g,"3");
Message = Message.replace(/I/g,"ii");