var newwin;

function launchwin(winurl,winname,winfeatures)
{
	//This launches a new window and then
	//focuses it if window.focus() is supported.
	newwin = window.open(winurl,winname,winfeatures);
	
	if(javascript_version > 1.0)
	{
		//delay a bit here because IE4 encounters errors
		//when trying to focus a recently opened window
 		setTimeout('newwin.focus();',250);
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  var newwin;
  newwin=window.open(theURL,winName,features);
  newwin.focus();
}

function MM_openBrWindowPaint(theURL,winName,features) { //v2.0
  var newwin;
  features=features +", left=" + ((window.screen.width/2) - (550/2) ) + ", top=" + ((window.screen.height/2)- (750/2))
  newwin=window.open(theURL,winName,features);
  newwin.focus();
}
