hello all

trying to do something simply but keep failing to get it right, spawning a window with :

function NewWindow1() {
act = window.open("act_pre.htm", "act");

this works fine, then trying to close it from the original window with :

function closewindow()

this does'nt work, i know the script is being called cos if i just put close() the origin window closes fine. Can anyone see where i am going wrong, naming the spawned window or calling its name when trying to close it.

any help appreciated, thanks!