yeah, but just to note window.getDialog() is _not_ a browser-provided function. I define it in this file.