Dynamic URL after modal/dialog confirmation

Dynamic URL after modal/dialog confirmation

I am very new to JQ so please be gentle! I have a table with edit and delete buttons on each row, I have managed to get modal dialogs working with the following code, the links that invoke the dialog each have a unique ID like so:

<a href="#" id="1234" class="dialog_link">Link text 1</a>
<a href="#" id="5678" class="dialog_link">Link text 2</a>

When the dialog is closed I need to call a PHP script to actually do the delete bit and I am stuck on that!
  1.     $(function() {
            $(".dialog_link").dialog("destroy");
            $("#dialog-confirm").dialog({
            autoOpen: false,
                resizable: false,
                height:150,
                modal: true,
                buttons: {
                    'Delete Administrator': function() {
                        $(this).dialog('close');
                                //I NEED TO REDIRECT TO A NEW URL WITH THE ID FROM THE LINK?    
                       });
                    },
                    Cancel: function() {
                        $(this).dialog('close');
                    }
                }
            });
                        $('.dialog_link').click(function(){
                        $('#dialog-confirm').dialog('open');
                        return false;    
                    });
        });