// JavaScript To Populate Results and next match and top scorers

/*TOP GOAL SCORERS*/
var name1  = "Gavin Booth";
var goals1 = "8";
var name2  = "Derek Reid";
var goals2 = "6";
var name3  = "Chris Campbell";
var goals3 = "4";
var name4  = "Gavin Pirie";
var goals4 = "3";
/*POPULATE LATEST RESULTS BOX */function latestResults(type) {	var valDate1 = "21st April 10";	var valResult1 = "Draw vs. Glendale 1-1";	var valDate2 = "17th April 10";	var valResult2 = "Loss vs. Woodside 4-0";	var valDate3 = "14th April 10";		var valResult3 = "Loss vs. Woodside 2-0";		if (type == "date1") {	  return (valDate1);	}	if (type == "date2") {	  return (valDate2);	}	if (type == "date3") {	  return (valDate3);	}	if (type == "result1") {	  return (valResult1);	}	if (type == "result2") {	  return (valResult2);	}	if (type == "result3") {	  return (valResult3);	}}

/*POPULATE NEXT MATCH BOX*/
function nextMatch(match) {
	
	var fixture = "24th April vs Glendale Youth";
	var ko = "2pm Sheddocksly";

	if (match == "fixture") {
	  return (fixture);
	}

	if (match == "ko") {
	  return (ko)
	}
 
}

/*TOP SCORERS NAME*/
function topScorersName(name) {
	
	return (name);	
	 
}

/*TOP SCORERS GOALS*/
function topScorersGoals(goals) {

	return (goals);	
	 
}
