


function launchWindow(url, wide, high, name, resize) 
{
	  var screenwidth;
   var screenheight;
   var allow_resize;
   //gets top and left positions based on user's resolution so new window is centered.
   screenwidth = (window.screen.width/2) - (wide/2 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
   screenheight = (window.screen.height/2) - (high/2 + 50); //half the screen height minus half the new window height (plus title and status bars).
  
			if (name == null)
			{
      var rdn = Math.round(Math.random() * 1000000);
      name = "openWindow" + rdn;
   } 
			
   if (resize == 'Y') 
			{
      allow_resize = 'yes';
			}
			else
			{
      allow_resize = 'no';
			}
			window.open(url,name, 'width=' + wide, + 'height=' + high, + 'menubar=0,toolbar=no,resizable=' + allow_resize, + 'left=' + screenwidth, + 'top=' + screenheight, + 'screenX=' + screenwidth, + 'screenY=' + screenheight, + 'scrollbars=yes');
}

function launchMaxWindow(url,name,resize)
{
			var h,w;
			var bwr = navigator.appName;
			if (name == null) 
			{
									var rdn = Math.round(Math.random() * 1000000);
									name = "openWindow" + rdn;
			}
			
			if (resize == 'Y') 
			{
									allow_resize = 'yes';
			}
			else 
			{
									allow_resize = 'no';
			}
			
			if (bwr == "Netscape")
			{
									h=screen.height-145;
									w=screen.width-10;
			}
			else
			{
					h = screen.availHeight-125;
					w = screen.availWidth-10;
			}	
			
   window.open(url,name,'width=' + w + ',height=' + h + ',status,menubar=1,toolbar=yes,resizable=' + allow_resize + ',left=0,top=0,scrollbars=yes');
}