Try this :
http://www.webdevelopersnotes.com/tips/hotmail/hotmail-sign-in-problem.php
This is a Simple Dialog Demo.