Insert a form inside a jquery dialog box

Friends,I want a dialog box that can accept values from the user.I have tried creating one and succeeded to an extent but the problem is that whatever i want to display in my dialog box ,it gets displayed into it as well as in my body section.Please tell me how can i display that form inside my dialog box only.
Thanks in advance.
Here is my code-