
//helpURL: the url of the help file

function LaunchHelpBrowser(helpURL)	{
	var HelpWin;
	args=getArgs(350,375,1,0);
	HelpWin=window.open(helpURL,"HelpWin",args)
	if(window.HelpWin && !window.HelpWin.closed){
		window.HelpWin.focus();
	}
}

//Size and position code was copied from Research for consistency sake from office/forms/commonscript.js
//width:	window width to display
//height:	window height to display
//center:	screen width center
//menu:	Not used

function getArgs(width,height,center,menu){
xposition=0; yposition=0;

if ((parseInt(navigator.appVersion) >= 4 ) && (center)){

if (menu==0){
xposition = (screen.width - width) - 10;
yposition = (screen.height - height) - 58;
}
else if(menu==1){
xposition = (screen.width - width) / 2;
yposition = ((screen.height - height) / 2) - 67;
}
}

// Changed old settings of:
//
//   width  = width  + 25;
//   height = height + 25;
//
// to just 
//
//   height = height + 48;
//
// as testing with Netscape 4.08 at the below three resolutions:
//
//    640 x 480
//    800 x 600
//   1024 x 768
// 
// resulted in the window displaying in the lower right corner just like IE.
//
if (navigator.appName == 'Netscape') {
  height = height + 48;
}

args="width="+width+",height="+height
+",toolbar="+menu+",menubar="+menu
+",screenx="+ xposition+",screeny="+yposition
+",left="+xposition+",top="+yposition
+",resizable=1,scrollbars=1,";

return args;
}
