Jquery modal dialog shows only at first click
===

The following code works fine for only the first click event. However for any subsequent click nothing happens.

    <input type="submit" name="add" value="Add it" onClick="javascript:Add(); return false;">
    
    function Add()
    {
       $(function(){
        var dialogOpts = {
            width: 880,
            height: 270,
            minWidth: 880,
            minHeight: 270,
            maxWidth: 890,
            maxHeight: 300
        };
        $("#add").dialog(dialogOpts);
        });
     }

If I remove return false from: 

    <input type="submit" name="add" value="Add it" onClick="javascript:Add(); return false;">

I get it working for Firefox but in IE8 the window shows for one or two seconds and then it disappears (cache cleaned and all). 

I've seem many examples in this web about this problem, but I am afraid I'm too new to jquery to apply them :(

Thanks a lot

