Alert(), prompt() etc()...

Alert(), prompt() etc()...

Hi every body!
First, sory for my bad english :s
I'm new to jQuery UI, and I would like to ask you some help.
I have to adapt an ooooold script, very ugly. To make it cute, I use
UI, but I would like to replace all prompt() and alert() by home made
jquery UI dialog function, but every time I try, it doesn't work.
I have to keep as much as possible the code like the original, so I
can't use the classic UI syntax.
If you don't anderstand (very hard to explain with a poor vocabulary),
i can try to extand more.
Thanks a lot!
Thedeejay
--