прямо оттуда вроде нельзя
Sergey M. 01.02.2006 16:31
because when you open a modal dialog there is no parent child relationship.
Opening a modal dialog stops processing on the main page, so your javascript processign will continue from the point where you called the open modal dialog. If you want to set a value to the parent window you would have to return from the modal dailog by setting the window.returnValue in the modal dialog, before you close.