<!--
history.go(1);

var privateprices = new Object();
privateprices["1"] = 0.50;
privateprices["2"] = 0.50;
privateprices["3"] = 0.50;
privateprices["4"] = 0.50;
privateprices["5"] = 0.75;
privateprices["6"] = 0.50;
privateprices["7"] = 0.50;
privateprices["8"] = 0.65;
privateprices["9"] = 0.50;
privateprices["10"] = 0.65;
privateprices["11"] = 0.60;

var pubprices = new Object();
pubprices["1"] = 1.00;
pubprices["2"] = 1.00;
pubprices["3"] = 1.00;
pubprices["4"] = 1.00;
pubprices["5"] = 1.50;
pubprices["6"] = 1.00;
pubprices["7"] = 1.00;
pubprices["8"] = 1.30;
pubprices["9"] = 1.00;
pubprices["10"] = 1.30;
pubprices["11"] = 0.60;


var minplayers = new Object();
minplayers["1"] = 12;
minplayers["2"] = 12;
minplayers["3"] = 12;
minplayers["4"] = 12;
minplayers["5"] = 12;
minplayers["6"] = 12;
minplayers["7"] = 12;
minplayers["8"] = 12;
minplayers["9"] = 12;
minplayers["10"] = 12;
minplayers["11"] = 14;

var maxplayers = new Object();
maxplayers["1"] = 64;
maxplayers["2"] = 64;
maxplayers["3"] = 64;
maxplayers["4"] = 64;
maxplayers["5"] = 64;
maxplayers["6"] = 64;
maxplayers["7"] = 64;
maxplayers["8"] = 64;
maxplayers["9"] = 64;
maxplayers["10"] = 64;
maxplayers["11"] = 100;

var public_only = new Object();
public_only["1"] = 0;
public_only["2"] = 0;
public_only["3"] = 0;
public_only["4"] = 0;
public_only["5"] = 0;
public_only["6"] = 0;
public_only["7"] = 0;
public_only["8"] = 0;
public_only["9"] = 0;
public_only["10"] = 0;
public_only["11"] = 1;


function changeGame()
{
	f = document.orderprices;

	if( f.game[f.game.selectedIndex].value == 0 )
	{
		f.totalprice.value = '';
		f.price.value = '';

		f.slots.options.length = 0;
		f.slots.options[0] = new Option( "---- players", 0 );

		f.pub.options.length = 0;
		f.pub.options[0] = new Option( "---------", 0 );

		return;
	}
	
	
	f.slots.options.length = 0;
	$game_id = f.game[f.game.selectedIndex].value;
	$numoptions = ( maxplayers[$game_id] - minplayers[$game_id] ) / 2 + 1;

	for ($i=0; $i < $numoptions; $i++)
	{
		$value = minplayers[$game_id] + $i * 2;
		$text = $value + " players";
		f.slots.options[$i] = new Option( $text, $value );
	}

	f.pub.options.length = 0;
	f.pub.options[0] = new Option( "Public", 0 );
	if ( !public_only[$game_id] )
	f.pub.options[1] = new Option( "Private", 1 );
	
	f.brand.options.length = 0;
	f.brand.options[0] = new Option( "Branded", 0 );
	f.brand.options[1] = new Option( "Debranded", 2.50 );
	

	changeSlots();
}

function changeSlots()
{
    f = document.orderprices;
    changePrice();
}

function changePrice()
{
	var iPrice = 0;
	f = document.orderprices;
	
	if( f.period[f.period.selectedIndex].value == 1 ){ val3 = new Number(2);}
	else if( f.period[f.period.selectedIndex].value == 3 ){ val3 = new Number(0);}
	else if( f.period[f.period.selectedIndex].value == 5.7 ){ val3 = new Number(0);}
	
	if (f.game.selectedIndex == 0)
	{
		f.price.value = '';
		f.totalprice.value = '';
	}
	else
	{
		iPricet = ( f.slots[f.slots.selectedIndex].value ) * pubprices[f.game[f.game.selectedIndex].value];
		val1 = new Number(iPricet); val2 = new Number(f.brand[f.brand.selectedIndex].value);
		iPrice = val1 + val2 + val3; iPrice = iPrice.toFixed(2);
		iPeriod = f.period[f.period.selectedIndex].value;
		
		if (f.pub[f.pub.selectedIndex].value == 1)
		{
			iPricet = ( f.slots[f.slots.selectedIndex].value ) * privateprices[f.game[f.game.selectedIndex].value];
			val1 = new Number(iPricet); val2 = new Number(f.brand[f.brand.selectedIndex].value);
			iPrice = val1 + val2 + val3; iPrice = iPrice.toFixed(2);
			iPeriod = f.period[f.period.selectedIndex].value;			
		}

		iPrice = Math.round(iPrice*100)/100;
		iTotal = iPeriod * iPrice;
		f.price.value = iPrice.toFixed(2);
		f.totalprice.value = iTotal.toFixed(2);
	}
}

function check()
{	
f = document.orderprices;
if (f.game.selectedIndex == 0){alert("Alles invullen!!");return false;}
else {return true;}
}
//-->
