// JavaScript Document
// Randomly chooses recent winners from arrays and places them onto the html page



function randomNumberGen()
{
	var idArray = new Array("winner1","winner2","winner3","winner4","winner5");
	var name = new Array();
	var competition = new Array();
	
	name[0] = "Ben";
	name[1] = "Russell";
	name[2] = "Joe";
	name[3] = "Jim";
	name[4] = "Fred";
	name[5] = "Belinda";
	name[6] = "Emma";
	name[7] = "Billy";
	name[8] = "Steve";
	name[9] = "Ted";
	
	competition[0] = "Every Sunrise";
	competition[1] = "Soccertime Kids";
	competition[2] = "Every Sunrise";
	competition[3] = "Soccertime Kids";
	competition[4] = "Every Sunrise";
	competition[5] = "Soccertime Kids";
	competition[6] = "Every Sunrise";
	competition[7] = "Soccertime Kids";
	competition[8] = "Every Sunrise";
	competition[9] = "Soccertime Kids";
	
	//for (var looper = 0; looper<=4; looper++)
	//{
		randomSelector[0]=Math.floor(Math.random()*(name.length));
		randomSelector[1]=Math.floor(Math.random()*(name.length));
		randomSelector[2]=Math.floor(Math.random()*(name.length));
		randomSelector[3]=Math.floor(Math.random()*(name.length));
		randomSelector[4]=Math.floor(Math.random()*(name.length));
		var elementString = "<li>" + name[0] +", "+competition[0] + "</li>";
		document.getElementById("list").innerHTML=(elementString);	
		//alert(looper);
	//}
}
