Great question Jim! ;)
On the page class there is a method called "RegisterStartupScript". It accepts a keyname and the script as arguments. You don't need a keyname if you don't want. With that method you can write out JavaScript to the page from your codebehind. You need to write out everything including the open and close <script> tags. The script will get dropped onto the page and if you write out
JS outside of a function call, it'll run as soon as the browser gets the page. Use the standard javascript calls to open and window ("window.open...").
Me.RegisterStartupScript(Nothing, "<script...>...</script>")
Keep in mind however that you may be subject to problems with pop-up blockers.
Peter
------------------------------------------------------
Work smarter, not harder.