dlg_save function

Modal dialog to select a file to save to.