<title>Centered pop-up window</title>

<SCRIPT LANGUAGE="JavaScript" type="text/Javascript">
function popUpCenteredWindow() {
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (122 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (27 + 50); //half the screen height minus half the new window height (plus title and status bars).
	var win2 ="","Window2","status,height=55,width=245,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no");

<A HREF="javascript:void(0);" onClick="popUpCenteredWindow();">open a new window centered on the screen regardless of user's resolution.

Alright, my question is. I'm new at the pop up windows, and I was wondering just what I needed to do to this thing so that it will open the right page. So do I need to make a new page and just have this code in it or something?

Can someone please explain what all I need to do...