// Marsh Pat 08/03/04
function resizeWindow(theURL,winName,setWidth,setHeight)
	{
		var features;
		var winl = (screen.width - setWidth) / 2;
		var wint = (screen.height - setHeight) / 2;
		
     	if(screen.width<setWidth)
     		{
				var setWidth = screen.width;
				var setHeight = screen.height -35;
				features = 'width='+setWidth+',height='+setHeight+',top=0,left=0,scrollbars=yes';
         		window.open(theURL,winName,features);
     		}
		else
			{
				wint = wint - 35;
				features = 'width='+setWidth+',height='+setHeight+',top='+wint+',left='+winl+',scrollbars=yes';
         		window.open(theURL,winName,features);
			}
	}