I think you need jQuery dialog to show a confirmation dialog with some buttons.
First, you define a div for the dialog.
Then, the buttons which you want to show. With the function within it, the action if the button is clicked.
Last, create a dialog.
You can place the code as a replacement of line : $(form).ajaxSubmit();
So, you create a dialog before you submit the form.
Hope this help.
var dialog_="<div title='Confirmation'><span class='ui-icon ui-icon-alert' style='float:left; margin:0 7px 20px 0;'></span>";
buttons_confirm['Yes']=function() {
$(form).ajaxSubmit();
$(this).dialog('close');
};
buttons_confirm['Cancel']=function() {
$(this).dialog('close');
};
$(dialog_).dialog({
bgiframe: true,
resizable: false,
modal: true,
buttons: buttons_confirm
});