function popupWindow(win){
	winWidth = 400; // sets a default width for browsers who do not understand screen.width below
	winheight = 400; // ditto for height

	if (screen){ // weeds out older browsers who do not understand screen.width/screen.height
		winWidth = screen.width-10;
		winHeight = screen.height-30;
	}
	
	newWindow = window.open(win,'newWin','screenX=0,screenY=0,directories=0,fullscreen=1,location=0,menubar=0,scrollbars=0,status=0,toolbar=0,resizable=0,width='+winWidth+',height='+winHeight+',left=0,top=0');
	
	newWindow.focus();
}