jquery modal confirm box button functionality, help please?
<p>I have a jquery modal confirm-box, I added a register and login button ( i just copied the one from the manual )..now the problem is,</p>

<p>1) once I click the register button, I want to show another Pop-up box, and this pop-up,
shall contain this ajax powered module</p>

<pre><code>          &lt;div id="registerpopup"&gt;
            &lt;?php
            if($_GET['t']=='l')
                {
                    $the_class-&gt;Lostpword('pword_embed');
                }
            elseif($_GET['t']=='b')
                {
                    $the_class-&gt;Lostpword('unamepword_embed');
                }
            elseif($_GET['t']=='n')
                {
                    //$the_class-&gt;Lostpword('pword_embed');
                    $the_class-&gt;Registration('unamepword_embed_next');
                }
            elseif($_GET['t']=='r')
                {
                    //$the_class-&gt;Lostpword('pword_embed');
                    $the_class-&gt;Registration('register_embed');
                }
            else
                {
                    $the_class-&gt;Lostpword('accn_help');
                }
                ?&gt;
          &lt;/div&gt;
</code></pre>

<p>2 ) then once that ajax powered module pop up appeared, the confirm-box closes.<br>
3 ) when the user registered successfully, how to close this new pop-up and refresh the page automatically, because every registered users in my app should be automatically logged-in.</p>

<p>here's my confirm-box code</p>

<pre><code> if(userid == ""){
        $( "#dialog:ui-dialog" ).dialog( "destroy" );

        $( "#dialog-confirm" ).dialog({
            resizable: false,
            height: 230,
        width: 350,
            modal: true,
            buttons: {
                "Register": function(){
                $(this).dialog("close");
                },
                "Log in": function() {
                    $(this).dialog("close");
                }
            }
        });
    return false;
 }
</code></pre>
