<!--
function callLoad(index)
{
    if (gamewindow && !gamewindow.closed)
    {
        gamewindow.close();
    }

    var fmGameLoader = document.fmGameLoader;
//    var index = selectList.selectedIndex;
 //   if (typeof select!='undefined' && select!=null && select == 'Y')
 //       index--;
 //   fmGameLoader.pmSoftwareId.value=arSelectedPmSoftwareIds[index];
 //   fmGameLoader.denomAmount.value=arSelectedDenomAmounts[index];

// Get selected Game index and set game params in hidden form	
var selectedGameInd = index;

if (selectedGameInd != -1) {
    document.fmGameLoader.windowwidth.value= arGameWindowWidth[selectedGameInd];
    document.fmGameLoader.windowheight.value= arGameWindowHeight[selectedGameInd];
    document.fmGameLoader.start.value = arTrmtStart[selectedGameInd];
    document.fmGameLoader.end.value = arTrmtEnd[selectedGameInd];
    document.fmGameLoader.tournamentId.value = arTrmtID[selectedGameInd];
    document.fmGameLoader.gameId.value=arGameIds[selectedGameInd];
    document.fmGameLoader.progressivesInd.value= arProgressivesInd[selectedGameInd];
}
	
    //Split the field and get the values of window dimensions
    var ww=fmGameLoader.windowwidth.value;
    var wh=fmGameLoader.windowheight.value;
    var paramwindowdim='width='+ww+','+'height='+wh;
	w = screen.availWidth;
   	h = screen.availHeight;
	topPos = (h-wh)/2;
	leftPos = (w-ww)/2;
   	var paramwindowother=',resizable,left='+leftPos+',top='+topPos;
   	if(navigator.userAgent.indexOf("Firefox")!=-1){		//for FF only since IE doesn't handle autoscroll gracefully   		
   			paramwindowother=',scrollbars,resizable,left='+leftPos+',top='+topPos;
   	}
   	
    var paramwindow=paramwindowdim+paramwindowother;
    newWindow('','gameWindow',paramwindow);
    //window.open('','gameWindow');
    fmGameLoader.submit();
    //if (typeof select!='undefined' && select!=null && select == 'Y')
    //    document.gameTitle.denoms.options[0].selected=true;
}

function changeGame(gameIndex)
{
    arSelectedDenom=arGameDenoms[gameIndex];
    arSelectedPmSoftwareIds=arPmSoftwareIds[gameIndex];
    arSelectedDenomAmounts=arDenomAmounts[gameIndex];
    gameSelected=gameIndex;
    nCurrentGame = gameIndex;
    //alert(gameIndex);
    len = document.gameTitle.denoms.options.length;
    //for(i=0; i<len; i++)
      //document.gameTitle.denoms.options[i] = null;
    document.gameTitle.denoms.options.length = 0; 
    len = arSelectedDenom.length;
    //alert("# of denoms: " + len);
    if (typeof select!='undefined' && select!=null && select=='Y')
    {
        document.gameTitle.denoms.options[0] = new Option("- select -");
        for(i=0;i<len;i++)
        {
            document.gameTitle.denoms.options[i+1] = new Option(arSelectedDenom[i]);
        }
    }
    else
    {
	for(i=0;i<len;i++)
        {
            document.gameTitle.denoms.options[i] = new Option(arSelectedDenom[i]);
        }
    }
    //alert("/images/games/" + arGameIcons[gameIndex]);
    document.gameTitle.denoms.options[0].selected=true;


    if (typeof document.fmGameLoader.progressivesInd!='undefined') 
    {
      document.fmGameLoader.progressivesInd.value=arProgressivesInd[gameIndex];
    }
//    if (typeof document.fmGameLoader.pmSoftwareId!='undefined')   
//   {
//    	document.fmGameLoader.pmSoftwareId.value = arPmSoftwareIds[gameIndex];
//	document.fmGameLoader.denomAmount.value = arDenomAmounts[gameIndex];
//   }

}

//-->
