Doesn't know the difference between dialogs using different tables. I could use it, but I'd have to loop through all open dialogs and counting the ones with the right table.