
// POP UP WINDOW, centered on the screen
function NewWindow(mypage, myname, w, h, scroll) {
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
   winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
   win = window.open(mypage, myname, winprops)
      if (parseInt(navigator.appVersion) >= 4) 
	    { 
		   win.window.focus(); 
		}
}// end POP UP WINDOW


/*

to make this code work on a page: 
put this around the text or image that is the link:

the numbers in the parentheses are the width and height (respectively) of the new window
the "yes" turns scroll bars on

<a href="page.html" onclick="NewWindow(this.href,'uniquename','410','410','yes');return false;">text here</a>

*/
