// 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 = "19th November 11";
var valResult1 = "Loss vs. Lads Club 3-1";

var valDate2 = "12th November 11";
var valResult2 = "Win vs. Postal ALC 14-0";

var valDate3 = "5th November 11";
var valResult3 = "Loss vs. Woodhall 3-2";
	
	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 = "26th November vs Great Western";
var ko = "2pm Away";

	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);	
	 
}




