function tableData(elmnt,sw){
//ASK where this is stored on the hard disk
//sw is the switch that choses the data element
var d;
var services = new Array(
[" "," "," "," "],
["	MAY	","	THE BODY & BLOOD OF CHRIST: OBL SOL	","		","	MAY	"],
["	24 SAT	","	6pm   FIRST MASS OF SUNDAY	","		","	24 SAT	"],
["		","	Iris Hooper RIP	","		","		"],
["		","		","		","		"],
["	25 SUN	","	9am   Mass  Stuart Blair RIP   	","	11am   Mass   Mrs Bridget Byatt RIP    	","	25 SUN	"],
["		","	Tea/Coffee in Hall after Mass	","	Children’s Liturgy/Young People’s Liturgy  Tea/Coffee in the Hall 	","		"],
["		","		","		","		"],
["		","		","		","		"],
["	26 MON	","	St Philip Neri   Mem	","	10am  Mass  Mr Peter Duchshera	","	26 MON	"],
["		","		","		","		"],
["		","		","		","		"],
["	27 TUE	","	St Augustine of Canterbury   Mem	","	10am   Mass  Martha Tucker RIP	","	27 TUE	"],
["		","		","		","		"],
["		","		","	 	","		"],
["	28 WED	","		","	10am Mass   Mrs Pat Lea 	","	28 WED	"],
["		","	8 - 9pm Prayer & Mass Preparation 	","		","		"],
["		","	(Convent of Mercy, Wyke Rd)	","		","		"],
["		","		","		","		"],
["		","		","		","		"],
["	29 THU	","		","	10am Mass   Cecilia Kirby RIP	","	29 THU	"],
["		","		","		","		"],
["		","		","	7pm Rosary	","		"],
["		","		","	7.30 – 9pm Prayer Group	","		"],
["		","		","		","		"],
["	30 FRI	","	 THE SACRED HEART OF JESUS: SOL	","	10am Mass  Catherine Brennan  	","	30 FRI	"],
["		","	 	","		","		"],
["		","		","		","		"],
["	31 SAT	","	VISITATION OF OUR LADY: FEAST	","	  	","	31 SAT	"],
["		","		","		","		"],
["		","		","	SACRAMENT OF PENANCE	","		"],
["		","	 	","	11am – 11.30am & by appointment	","		"],
["		","		","	Confessions will not start until 11am due to Mass at Young Offenders Prison	","		"],
["		","		","		","		"],
["		","		","		","		"],
["		","	NINTH WEEK IN ORDINARY TIME	","		","		"],
["	31 SAT	","	6pm  FIRST MASS OF SUNDAY	","		","	31 SAT	"],
["		","	Shaun Standley	","		","		"],
["		","		","		","		"],
["		","		","		","		"],
["	-1	","		","		","		"]

)

d = services[elmnt][sw];
if ( d == " "){d = "&nbsp;"}
return (d);

}

function generateTable(){
var tableString;
var elmnt = 0, i = 0; 
tableString = '';

tableString += '<Table Class=\"boldtable\" Border = \"0\" width = \"700\">';
tableString += '<col width = \"10%\">';
tableString += '<col width = \"40%\">';
tableString += '<col width = \"40%\">';
tableString += '<col width = \"10%\">';

tableString += '<tr>';
tableString += '<th align=\"left\" valign=\"center\" >DATE<\/th>';
tableString += '<th>ST JOSEPH\'S<\/th>';
tableString += '<th>ST AUGUSTINE\'S<\/th>';
tableString += '<th align=\"left\" valign=\"center\" >DATE<\/th>';
tableString += '<\/tr>';

tableString += '<tr>';
tableString += '<\/tr>';

do
{
	tableString += '<tr>';
	tableString += '<td align=\"left\" valign=\"top\" >' + tableData(i,0) + '<\/td>' + '<td valign=\"top\"> ' + tableData(i,1) + '<\/td>' + '<td valign=\"top\">' + tableData(i,2) + '<\/td>'+'<td align=\"center\" valign=\"top\">'
	+ tableData(i,3) + '<\/td>';
	tableString += '<\/tr>';
	i++;
	elmnt = tableData(i,0);
}while (elmnt != -1)

tableString += '<\/Table>';


document.write(tableString);


}


