// just contains popuphelpnew for use from the static pages.
var newWin=window;
var HelpWinCreated=false;
function popuphelpnew(event,bookmark,size){
var URL=bookmark;
var xWinPos=event.screenX;
var yWinPos=event.screenY;
var wh=150;
var ww=600;
if(size=="s"){
wh=130;
ww=600;
}
if(size=="m"){
wh=200;
ww=600;
}
if(size=="l"){
wh=300;
ww=600;
}
if(size=="xl"){
wh=600;
ww=600;
}
if(yWinPos>(wh+25))
	yWinPos=yWinPos-wh-25;
else{	
	yWinPos=yWinPos+25;
}
if(xWinPos>(screen.width-ww)){
	xWinPos=screen.width-ww-30;
}
var thirdparam="menubar=0,resizable=1,height="+(wh-31)+",scrollbars=1,top="+yWinPos+",width="+(ww-12)+",left="+xWinPos;
if (!document.all && document.getElementById){
//non IE
if(HelpWinCreated){
	if(newWin.closed){
		newWin=window.open(URL,"Help",thirdparam);
	}
	else{
		newWin=window.open(URL,"Help",thirdparam);
		newWin.resizeTo(ww,wh+25);
		newWin.moveTo(xWinPos,yWinPos);
	}
}
else{
	newWin=window.open(URL,"Help",thirdparam);
}
}
else{
//IE
if(HelpWinCreated){
	if(newWin.closed){
		newWin=window.open(URL,"Help",thirdparam);
		newWin=window.open(URL,"Help",thirdparam);
	}
	else{
		newWin.navigate(URL);	
		try{
			newWin.resizeTo(ww,wh+25);
		}
		catch(e){}
		try{
			newWin.moveTo(xWinPos,yWinPos);
		}
		catch(e){}
	}
}
else{
	newWin=window.open(URL,"Help",thirdparam);
	newWin=window.open(URL,"Help",thirdparam);
}
}

newWin.focus();
HelpWinCreated=true;
return false;
}
