Basically, what I want to do is check to see if a cookie has been set. If the cookie has not been set I want it to do a javascript function [launch()] which would open up a pop-up window one time. So far I've put this code:

if (!$cookie_splash_shop) {
	$cookie_name = "cookie_splash_shop";
	$cookie_value = 1;
	$cookie_expire = time()+86400;
	$cookie_domain = "";
in the phpinclude template. But where do I put:

<script language="JavaScript" type="text/javascript">