that aint javascript - its actionscript
javascript for a popup window is as follows:
<script language=“JavaScript”>
function popUpFlash() {
open(“Mag1.swf”, “FlashWindow”, “left=25, top = 100, width=750,height=400,title=Flash”)
}
</script>
and then u just call the function popIpFlash() as an on click event…
note u wanna change “Mag1.swf” to the url of your page
left is how many pixels the window opens from the left
top is how many pixels the window opens from the top
width and height are self explanatory…
“FlashWindow” is the name of the window (in case you wanna change content later)
title should be what is displayed as its title… if memory serves…
as far as i know, if you want it centered youll have to do sumit like ive done before below:
<script language=“JavaScript”>
function popUpFlash() {
if (screen.availWidth == 800){
open(“Mag1.swf”, “FlashWindow”, “left=25, top = 100, width=750,height=400,title=Flash”)
}
if (screen.availWidth == 1024){
open(“Mag1.swf”, “FlashWindow”, “left=137, top = 184, width=750,height=400,title=Flash”)
}
if (screen.availWidth < 750){
alert("Your Screen size is limiting your experience!
This site was intended to be viewed at a higher screen resolution.
The page will load regardless, but for the full effect, please view on a larger monitor,
Thank you,
Cold Phoenix")
open(“Mag1.swf”, “FlashWindow”, “resizable, scrollable, left=0, width=750,height=400,title=Flash”)
}
if (screen.availWidth == 1152){
open(“Mag1.swf”, “FlashWindow”, “left=201, top = 232, width=750,height=400,title=Flash”)
}
if (screen.availWidth == 1280){
open(“Mag1.swf”, “FlashWindow”, “left=265, top = 236, width=750,height=400,title=Flash”)
}
if (screen.availWidth == 1360){
open(“Mag1.swf”, “FlashWindow”, “left=305, top = 184, width=750,height=400,title=Flash”)
}
if (screen.availWidth > 1360){
alert("This site was intended for viewing on smaller monitors and as such you may not experience the full effect.
The site will still be displayed regardless and apologies for any inconveniance,
Thank you,
Cold Phoenix")
open(“Mag1.swf”, “FlashWindow”, “width=750,height=400,title=Flash”)
}
}
</script>
enjoy 
Prophet.