﻿function testashley()
{

	document.write("Hello");
	
}

function writeopentag(Tag, Class)
{
var x = "<";
	
	x = x + Tag + " ";
	if (typeof Class != "undefined") 
	{
		x = x + Class + " ";
	}
	x = x + ">";
		
	document.write(x);
	
}

function writeclosetag(Tag)
{
var x = "</";
	
	x = x + Tag + ">";
	document.write(x);
	
}

var team
function setTeam(t) {
team = t;

document.write('<p class="newsitem">To read the match report click on the opposition team name.');
document.write('Unfortunately, not all matches will have a match report and this will result in a broken link.');
document.write('If this happens, come back and try again later.<br /><br />');
document.write('For seasons statistics, select from the following:<br />');
document.write('<a href="2010ave-' + team + '.htm">Batting, Bowling and fielding averages</a><br />');
document.write('<a href="2010stats-' + team + '.htm">Seasons stats</a>');
document.write('</p>');


document.write('<table style="width: 60%" class="fixturetab">');
document.write('<thead><td style="width: 115px">Date</td>');
document.write('<td style="width: 928px">Opposition</td>');
document.write('<td class="style1" style="width: 345px">Home/Away</td>');
document.write('</thead>');

}

function endTeam() {
document.write('</table>');
}

function OL(dt,op,v) {


var myString = dt;
document.write("<tr><td>");
document.write(myString.substr(0,2) + "/" + myString.substr(2,2)+ "/" + myString.substr(4,2))
document.write("</td><td>");
document.write('<a target="_blank" href="./' + dt + '-' + team + '.htm">');

document.write(op);
document.write("</a></td><td>"); 
document.write(v)
document.write("</td></tr>");

}
