Hope this helps:
http://www.johnbridge.com/vbulletin/archive/index.php/t-12369.html
This is a Simple Dialog Demo.