Dialog windows open conditionally

Dialog windows' HTML is specified in the dialog's object.