<!--
history.go(1);

function round(number,X)
{
	X = (!X ? 2 : X);
	return Math.round(number*Math.pow(10,X))/Math.pow(10,X);
}

var startprices = new Object();
startprices["3"] = 25.00;
startprices["4"] = 25.00;
startprices["5"] = 25.00;
startprices["6"] = 25.00;
startprices["7"] = 30.00;
startprices["8"] = 30.00;
startprices["9"] = 30.00;


function changeGame()
{
	f = document.aanbiedingprices;

	if( f.game[f.game.selectedIndex].value == 0 )
	{
		f.totalprice.value = '';
		f.price.value = '';
		
		return;
	}
	
	$game_id = f.game[f.game.selectedIndex].value;
	changePrice();
}

function changePrice()
{
	var iPrice = 0;

	f = document.aanbiedingprices;
	if (f.game.selectedIndex == 0)
	{
		f.price.value = '';
		f.totalprice.value = '';
	}
	else
	{
		iPrice = startprices[f.game[f.game.selectedIndex].value];		
		iPeriod = f.period[f.period.selectedIndex].value;

		iPrice = round(iPrice);
		iTotal = iPeriod * iPrice;
		f.price.value = iPrice;
		f.totalprice.value = round(iTotal);
	}
}
//-->