function LGT_openBrWindow(theURL,winName,theWidth,theHeight,fullscreen,constrained,XPos,YPos,scrolling) { //v2.0
	if (fullscreen=='true'){
		percentW=Math.floor((screen.availWidth/theWidth)*100);
		percentH=Math.floor((screen.availHeight/theHeight)*100);
	
		if (constrained=='true'){
			if (percentW>percentH){
				percentW=percentH;
			}else{
				percentH=percentW;
			}	
		}
		theWidth=Math.floor((theWidth*percentW)/100);
		theHeight=Math.floor((theHeight*percentH)/100);
	}	

	if (XPos=='centre' || fullscreen=='true'){			//centre browser window
		XPos=Math.floor((screen.availWidth-theWidth)/2);	
	}
	if (YPos=='centre'){			//centre browser window
		YPos=Math.floor((screen.availHeight-theHeight)/2);
	}	
	//alert("screen="+screen.availWidth+"x"+screen.availHeight+"  Window="+theWidth+"x"+theHeight+"px"+"   XPOS="+XPos+"  YPOS="+YPos);
	
	window.open(theURL,winName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+0+',resizable=0,width='+theWidth+',height='+theHeight+',left='+XPos+',top='+YPos);
}

