function OpenNewWin(url){

 var attribs = "height=490,width=740,locationbar=yes,menubar=yes,scrollbars=yes,status=yes,resizable=yes,toolbars=yes";

 if(typeof(new_win) == "undefined"){
  new_win = window.open(url,"",attribs);
 }else{
 	if(new_win.closed){
		new_win = window.open(url,"",attribs);
	}else{
	  new_win.location.href = url;
	}
 }
 new_win.focus();
}


// Open the window at the right of the screen more or less
// Check the screen size and sutract the help window width to
// get the left position

var screenWid = 600;
// The following line errors in IE3.01
//if (parseInt(navigator.appVersion) >= 4 ) { screenWid = screen.width };

var WinWidth = 380;
WinLeft = screenWid - WinWidth - 30;

// Force number into string 
var strHelpLeft = "";
strHelpLeft = WinLeft; 

// Build up the window parameters
var strHelpOptions = "location=no";

strHelpOptions += ",toolbar=no";

strHelpOptions += ",menubar=no";

strHelpOptions += ",status=no";

strHelpOptions += ",scrollbars=yes";

strHelpOptions += ",resizable=yes";

strHelpOptions += ",width="+WinWidth;

strHelpOptions += ",height=200";

// IE positioning params
strHelpOptions += ",top=50";
strHelpOptions += ",left="+strHelpLeft;

// Netscape positioning params
strHelpOptions += ",screenY=40";
strHelpOptions += ",screenX="+strHelpLeft;


function HelpOpen(strUrl)

{
	var popUrl = strUrl;
	window.open(popUrl, "PopupWin", strHelpOptions);
}

