See here >> http://answers.yahoo.com/question/index?qid=20061118073952AA4p3oT
This is a Simple Dialog Demo.