Function doesn't work at second call
<p>i have this function</p>

<pre><code>function notify()
    {
    alert('oo');
        $("#SuccessNotification").dialog({
        bgiframe: true,
        modal: true,
        title: 'success',
        buttons: {
            Ok: function() {
                $(this).dialog('close');                

            } 
        }
            });
    }
</code></pre>

<p>the alert works each time this function is called but the dialog is getting poped out only first time</p>
