i have this code


Code:
<script language="JavaScript" type="text/JavaScript">
function RefreshMainWindow() {
 window.opener.location.reload();
 window.close()
}
</script>

//called by 

<META HTTP-EQUIV="refresh" CONTENT="5; RefreshMainWindow();">

am i not allowed to call a method in a refresh block? how can i do something like this..

when the script runs, every 5 seconds, the parent refreshs, but the child windows (that this script is on) doesn't clse like it's supposed to, it refreshes too..

--770