//newwin function opens a new window. Function takes three variables: full file name including path, width & height.
//sample call: <a href="javascript:newwin('harvclubb.jpg',250,350)">Text or image</a>

function newwin(filename,wd,ht)
{
var TopPosition=20;
var LeftPosition=0;
var defwd=400;   //sets a default window width if no width is passed
var defht=300;    //sets a default window height if no height is passed
var padwd=20;   //sets extra padding for the width
var padht=25;    //sets extra padding for the height
var newwinpict=null;

	if(wd==null)wd=defwd;else wd+=padwd;
	if(ht==null)ht=defht;else ht+=padht;
 	if(newwinpict && !newwinpict.closed)newwinpict.close();
 	LeftPosition = (screen.width) ? (screen.width-wd)/2 : 0; 
	TopPosition = 20;
	newwinpict = window.open(filename,"newwin",'toolbar=no,location=no,directories=no,menuebar=no,width='+wd+',height='+ht+',top='+TopPosition+', left='+LeftPosition+',resizable=yes,scrollbars=yes');
	newwinpict.focus();
}

