Added closeOnPageUnload property to fnShowDialog()

Added closeOnPageUnload property to fnShowDialog() which determines whether the dialog should be closed when the page is unloaded