Hi people

I got 2 questions regarding the usage of frames:
1) How can I calculate the exact top-left coordinate of an iframe which is located in the screen? The top-left coordinate needs to be in relation to the entire screen.
2) Consider the following: Page A opens a modal window B using window.showModalDialog(). Page B contains an IFrame C which is used to interact with the server.
When IFrame C reloads, I would like page B to close and page A to reload automaticaly.
I tried the following in C's body tag:
<body onload="parent.opener.location.reload(true); parent.close();">
page B gets closed with no problem but I get a JavaScript error on the first line saying: 'parent.opener.location' is null or not an object.

I would appreciate any help in any of the questions.