I'm using:
$('.ui-widget-overlay , .ui-dialog', window.parent.document).remove();
to close the dialog and overlay, but Input Text and checkboxes seem to be disabled after the dialog and overlay go away... Funny thing is that comboboxes are not disabled.