Hmm...I didn't realize a modal dialog window didn't have an opener property.
So if I told it window.name = "test"; on the page I want to refresh, would I be able to refresh it somehow. I've tried doing that and then calling window.test.reload(); but it can't find the page.
A reference to an element is known as a 'pointer' in C++, and it is a numbered location in memory where the html element is located. So, a reference is a number. What you need to do is get that number--you can think of it as a secret code.
A string like "test" is not a reference/number--it's a string. It's the same old story. You have to repeat three times before you go to bed every night: "a string is not a reference, a reference is a number, so if I have a string, it's not a reference."
What you need to do is pass the main window's secret code to the dialog window. You can do that using the second parameter of showModalDialog():
var window_ref = window;
showModalDialog("my_dialog_page.htm", <font color='Red'>window_ref</font>, "dialogHeight:200px;dialogWidth:200px;dialogLeft:100px;dialogRight:100px;");
Then, you can retrieve that secret code with js in the dialog window, and use the secret code to change the main window. The secret code you passed will be contained in the .dialogArguments property of the dialog window:
So, you can do something like this to change the main page: