If you use jQuery and want to have a form dialog postback, all you need to do is after creating your dialog, simply move the dialog back into your form
$("#divSaveAs").dialog({bgiframe:false,
autoOpen:false,
title:"Save As",
modal:true});
$("#divSaveAs").parent().appendTo($("form:first"));