function openFreeGame(tGame, widthVal, heightVal, resizeVal){
	var xx = null;
	var popName = "FreeGames";
	if (tGame == 'BI') {
		widthVal  = 800;
		heightVal = 600;
	}else{
		widthVal  = 760;
		heightVal = 570;
	}
	// convert heightVal to integer to allow for addition of 50px for TopPosition
	heightVal = parseInt(heightVal);
	LeftPosition = (screen.width) ? (screen.width-widthVal)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-(heightVal+50))/2 : 0;
	if (LeftPosition < 0) {	LeftPosition = 0;}
	if (TopPosition < 0) {	TopPosition = 0;}
	windowprops = "left="+LeftPosition+",top="+TopPosition+",width="+widthVal+",height="+heightVal+",location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes,fullscreen=no";
	xx = window.open("", popName, windowprops);
	document.FreeGamesForm.target=popName;
	// set value of game field if field exists
	if (document.FreeGamesForm.game) document.FreeGamesForm.game.value=tGame;
	document.FreeGamesForm.submit();
	xx.focus();
}