Hi,

I'm using some code to generate a pop-up upon the clicking of a link. Here's the code I have in my HEAD tags:

Code:
<script language="JavaScript">
<!--
function PopWindow()
{ 
window.open('page.html','popup','width=550,height=400,menubar=no,scrollbars=yes,toolbar=no,
location=no,directories=no,resizable=yes,top=50,left=50'); 
}
//-->
</script>
Here's what I use to invoke an instace of that function:


<a href="JavaScript:PopWindow()">Open Window</a>


I'd like to, if possible, switch things around a bit so the page is not specified in the function, but so I can specify it each time I call the function, something like this:


<a href="JavaScript:PopWindow(page.html)">Open Window</a>


I've tried modifying the code in several different ways, but an error always follows. Any help would be greatly appreciated.