Close Browser Window button in AS2!?

Hi there!
I am working with a load of old training modules created in AS2 and a few in AS3…I can’t get the exit button to work when running in a browser…it’s freaking me out!! I have trawled the forums and have tried many variations of:

on (release) {
getURL (“javascript:window.opener=self;window.close()” );
}

I need to run these on Safari and IE but I am running out of ideas…any suggestions? THis command works fine when running the SWF on it’s own.

Many thanks
TRON