how to pop a dialog box on button click
<p>Hello Friends
I want to upload a image but according to requirement when click on button a pop window display and inner part of pop window display browse field using code something like</p>

<pre><code>&lt;form action="index.php" method="post" onsubmit=""&gt;
    &lt;div&gt;&lt;label&gt;Name:&lt;/label&gt; &lt;input type="text" name="form[name]" /&gt;&lt;/div&gt;
    &lt;div&gt;&lt;label&gt;File:&lt;/label&gt; &lt;input type="file" name="form[file]" /&gt;&lt;/div&gt;
    &lt;div&gt;&lt;input type="submit" value="SUBMIT" /&gt;&lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>actually i want to show this browse field in pop-up window.
Please reply me regard this 
Thanks </p>
