Cannot close the web window

I am trying to close the web window from an agent on the web, but I keep getting this error “Syntax error” here is my code ;

If doc.RRB(0) = “PAL” Then

	Print |<SCRIPT Language="Javascript">|

	Print |alert('| &  doc.Question(0) + "\n\n" & "You can now " + Cstr(LouPnu) + " all the information');" 

	Print |<SCRIPT type="text/javascript">window.close()</SCRIPT>| 

	Print |</SCRIPT>|				

Else

End If

thanks

Paul

Subject: Cannot close the web window.

You must not nest script tags.

Also, the type attribute is required, whereas the language attribute is not. And this won’t work in all browsers anyway.