yeah but the sleep command doesn't work. I have the following bit of script.
print "<script> window.open('www.site.com', 'exit_win') </script>";
// Some sort of sleep command which lets the window above open and then it waits 5 seconds. Sleep command stops the window opening.
print "<script> window.open('www.site2.com', 'exit_win') </script>