// Script - birthday.js - Brendan Shanahan
// usage: <script language="JavaScript" type="text/javascript" src="birthday.js"></script>
//
// Display player birthdays on www.pendlehillcolts.com.au
//
// showBirthday(bdayList,n)
//

function birthday(surname,firstname,bdate,team) {
    this.surname = surname;
    this.firstname = firstname;
    this.bdate = bdate;
    this.team = team;
}

var n = 0;
var bdayList = new Array();

function showBirthday(object,length) {
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1;
var yy = today.getFullYear();
var bd = '';
if (dd<10){dd="0"+dd;}
if (mm<10){mm="0"+mm;}

var found = 'no';
var output = '';
var age = 0;

//output += 'today = ' + dd + '/' + mm + '/' + yy + '<p>';

output += '<table align=center><th>- Happy Birthday -</th><tr><td>';

    for (var i=0; i<length; i++) {
	bd = dd + '/' + mm;
//	bd = '25/12'; //insert test value
	pd = object[i].bdate.substring(0,(object[i].bdate.length-5));
	if (bd == pd) {
	   age = yy - object[i].bdate.substring((object[i].bdate.length-4),object[i].bdate.length);
	   output +=  object[i].firstname + '&nbsp;' + object[i].surname + ' -&nbsp;' + object[i].team + '&nbsp;(' + age + 'yrs)<br>';
	   found = 'yes';
	   }
       }
    output += '</td></tr></table>';
// Don't display a birthday
//    found = 'no'
    if (found == 'yes') {
       document.write(output);
       }
}

// Significant Dates
bdayList[n++] = new birthday('Bradman','Sir Donald','27/08/1908','R.I.P.');
bdayList[n++] = new birthday('Pendle Hill Colts Cricket Club','','09/04/1975','');

//
bdayList[n++] = new birthday('Antoniolli','Ben ','15/08/1988','A Reserve');
bdayList[n++] = new birthday('Birtles','Mitchell ','22/09/1988','A Reserve');
bdayList[n++] = new birthday('Conceicao','Brandon','15/02/1982','A Reserve');
bdayList[n++] = new birthday('Ellis','Cameron','19/06/1988','A Reserve');
bdayList[n++] = new birthday('Fawcett','Michael','09/12/1981','A Reserve');
bdayList[n++] = new birthday('Fletcher','Rodney','21/12/1969','A Reserve');
bdayList[n++] = new birthday('Harry','David','23/04/1988','A Reserve');
bdayList[n++] = new birthday('Holdsworth','Jack','15/01/1993','A Reserve');
bdayList[n++] = new birthday('Keary','Mark','21/03/1974','A Reserve');
bdayList[n++] = new birthday('Moon','Garry','17/04/1961','A Reserve');
bdayList[n++] = new birthday('Sansom','Tony','21/06/1980','A Reserve');
bdayList[n++] = new birthday('Van Trier','Matthew','17/06/1981','A Reserve');
bdayList[n++] = new birthday('Watson','Daniel','26/07/1981','A Reserve');
bdayList[n++] = new birthday('Carlaw','Jake','07/01/1994','B05');
bdayList[n++] = new birthday('Ellis','Tyler','25/06/1992','B05');
bdayList[n++] = new birthday('Frith','William','24/12/1980','B05');
bdayList[n++] = new birthday('Gunawardane','Sumindre','15/06/1972','B05');
bdayList[n++] = new birthday('Harper','Cliff','17/10/1989','B05');
bdayList[n++] = new birthday('Harris','Lachlan','26/02/1989','B05');
bdayList[n++] = new birthday('Harris','Heath','13/04/1992','B05');
bdayList[n++] = new birthday('Jackson','Mark','18/11/1991','B05');
bdayList[n++] = new birthday('Mackey','Pat ','24/03/1986','B05');
bdayList[n++] = new birthday('McKeown','Dylan','24/09/1993','B05');
bdayList[n++] = new birthday('McKeown','Nathan','27/11/1991','B05');
bdayList[n++] = new birthday('Nichols','Mitchell','29/11/1991','B05');
bdayList[n++] = new birthday('Paterson','Leigan','24/07/1992','B05');
bdayList[n++] = new birthday('Shanahan','Dillon','29/02/1992','B05');
bdayList[n++] = new birthday('Sirianni','Adam','18/04/1992','B05');
bdayList[n++] = new birthday('Bourne','James','23/09/1990','B08');
bdayList[n++] = new birthday('Brogan','Mark','25/11/1990','B08');
bdayList[n++] = new birthday('Bubb','Luke','09/08/1990','B08');
bdayList[n++] = new birthday('Bubb','James','16/10/1992','B08');
bdayList[n++] = new birthday('Dicker','Daniel','29/01/1991','B08');
bdayList[n++] = new birthday('Hagan','Mark','29/06/1990','B08');
bdayList[n++] = new birthday('Lovarini','Daniel','03/10/1990','B08');
bdayList[n++] = new birthday('McCaffery','Benjamin','25/01/1991','B08');
bdayList[n++] = new birthday('McCreanor','Stuart','27/03/1990','B08');
bdayList[n++] = new birthday('Mihalyka','Alex','20/02/1991','B08');
bdayList[n++] = new birthday('Moraitis','Alec','14/05/1991','B08');
bdayList[n++] = new birthday('Sala','Alan','30/10/1990','B08');
bdayList[n++] = new birthday('Sergis','Andrew','01/10/1990','B08');
bdayList[n++] = new birthday('Smith','Lawrence','22/09/1990','B08');
bdayList[n++] = new birthday('Vile','Ben','30/01/1991','B08');
bdayList[n++] = new birthday('Bailey','Paul','25/08/1965','B11');
bdayList[n++] = new birthday('Bartlett','Philip','09/05/1961','B11');
bdayList[n++] = new birthday('Benson','Darren ','06/04/1985','B11');
bdayList[n++] = new birthday('Bubb','Greg ','31/12/1960','B11');
bdayList[n++] = new birthday('Clancy','Brendan','22/10/1967','B11');
bdayList[n++] = new birthday('Flood','Jon','18/10/1965','B11');
bdayList[n++] = new birthday('Fox','Rick','17/09/1982','B11');
bdayList[n++] = new birthday('Harris','Mark','25/07/1961','B11');
bdayList[n++] = new birthday('Hawks','Richard ','25/05/1957','B11');
bdayList[n++] = new birthday('Loader','Rodney','19/04/1960','B11');
bdayList[n++] = new birthday('Mara','Kevin','10/08/1961','B11');
bdayList[n++] = new birthday('Morgan','Jason ','15/02/1980','B11');
bdayList[n++] = new birthday('Nichols','Michael','22/08/1972','B11');
bdayList[n++] = new birthday('Rajkumar','Atputharajan','02/03/1968','B11');
bdayList[n++] = new birthday('Sera','Gary','07/03/1966','B11');
bdayList[n++] = new birthday('Upton','Steve','12/03/1977','B11');
bdayList[n++] = new birthday('Banerjee','Pranoy','02/12/1991','B12');
bdayList[n++] = new birthday('Colaco','Clinton','05/05/1992','B12');
bdayList[n++] = new birthday('Dhaliwal','Harjodh Singh','26/01/1992','B12');
bdayList[n++] = new birthday('Francis','Mario','30/10/1991','B12');
bdayList[n++] = new birthday('Gupta','Nirupam','03/03/1992','B12');
bdayList[n++] = new birthday('Hensman','Alfred','06/12/1990','B12');
bdayList[n++] = new birthday('Jain','Mayank','30/07/1992','B12');
bdayList[n++] = new birthday('Joshi','Anuj','05/05/1992','B12');
bdayList[n++] = new birthday('Mehta','Kedar','07/08/1991','B12');
bdayList[n++] = new birthday('Pathania','Kanwar Manu','03/05/1992','B12');
bdayList[n++] = new birthday('Pawar','Jivnaz','10/10/1991','B12');
bdayList[n++] = new birthday('Rajeswaran','Jashwin','31/12/1991','B12');
bdayList[n++] = new birthday('Singh','Satinder Jit','05/08/1991','B12');
bdayList[n++] = new birthday('Singh','Kamal Parkash','21/01/1992','B12');
bdayList[n++] = new birthday('Blake','Jamie','14/10/1988','B13');
bdayList[n++] = new birthday('Boyle','Aidan','29/08/1994','B13');
bdayList[n++] = new birthday('Dobie','Dougal','07/09/1994','B13');
bdayList[n++] = new birthday('Gardner','Patrick','20/07/1994','B13');
bdayList[n++] = new birthday('Goddard','Trevor','30/07/1986','B13');
bdayList[n++] = new birthday('La Rocca','Brandon','06/03/1994','B13');
bdayList[n++] = new birthday('Maclean','Scott','14/07/1970','B13');
bdayList[n++] = new birthday('Pavarajah','Thushanthan','01/06/1975','B13');
bdayList[n++] = new birthday('Sanderson','Matthew','14/04/1973','B13');
bdayList[n++] = new birthday('Seagrave','Byron','02/08/1994','B13');
bdayList[n++] = new birthday('Smith','Grant ','30/09/1966','B13');
bdayList[n++] = new birthday('Stott','Jonathon','19/06/1985','B13');
bdayList[n++] = new birthday('Watkins','Aidan','12/11/1994','B13');
bdayList[n++] = new birthday('Ybabao','Aldo','19/08/1971','B13');
bdayList[n++] = new birthday('Bishnoi','Atul','16/01/1994','B14');
bdayList[n++] = new birthday('Crofts','Paul','22/06/1975','B14');
bdayList[n++] = new birthday('Grainger','James','14/10/1987','B14');
bdayList[n++] = new birthday('Mackey','David','03/01/1990','B14');
bdayList[n++] = new birthday('Mackey','Chris','11/03/1985','B14');
bdayList[n++] = new birthday('Mara','Jack','22/03/1996','B14');
bdayList[n++] = new birthday('Moon','Jake','21/05/1996','B14');
bdayList[n++] = new birthday('Priddy','Matthew','26/08/1976','B14');
bdayList[n++] = new birthday('Shanahan','Brendan','29/01/1967','B14');
bdayList[n++] = new birthday('Vaughan','Jason','13/03/1976','B14');
bdayList[n++] = new birthday('Weerapperuma','Dhammika','21/11/1977','B14');
bdayList[n++] = new birthday('Wood','James','22/12/1970','B14');
bdayList[n++] = new birthday('Wood','Paul','22/08/1969','B14');
bdayList[n++] = new birthday('Brown','Robert','11/02/1956','');
bdayList[n++] = new birthday('Ellis','Garry','05/12/1959','');
bdayList[n++] = new birthday('Gately','Robert','01/08/1991','');
bdayList[n++] = new birthday('Knowler','Tim','30/04/1979','');
bdayList[n++] = new birthday('McClure','Cameron','09/12/1982','');
bdayList[n++] = new birthday('Peatling','Justin','29/06/1972','');
bdayList[n++] = new birthday('Aquilina','James','17/05/2001','U/10 Mustangs');
bdayList[n++] = new birthday('Arunasalam','Adshaiyan','10/04/2001','U/10 Mustangs');
bdayList[n++] = new birthday('Goyal','Ragnav','29/12/2002','U/10 Mustangs');
bdayList[n++] = new birthday('Horan','Matthew','04/11/2001','U/10 Mustangs');
bdayList[n++] = new birthday('Kanthan','Kayshava','18/10/2000','U/10 Mustangs');
bdayList[n++] = new birthday('La Reservee','Jean','17/03/2001','U/10 Mustangs');
bdayList[n++] = new birthday('Lipping','Ronan Kalev','03/09/2001','U/10 Mustangs');
bdayList[n++] = new birthday('Murray','Reece','01/06/2001','U/10 Mustangs');
bdayList[n++] = new birthday('Patel','Shail','12/06/2001','U/10 Mustangs');
bdayList[n++] = new birthday('Sasikumar','Mayuren','27/04/2001','U/10 Mustangs');
bdayList[n++] = new birthday('Singh','Gautam','07/04/2002','U/10 Mustangs');
bdayList[n++] = new birthday('Suraparaju','Sumedh','01/03/2001','U/10 Mustangs');
bdayList[n++] = new birthday('Thaanukchan','Sriskantharaj','08/03/2002','U/10 Mustangs');
bdayList[n++] = new birthday('Anderson','James','01/09/2000','U/11 Black');
bdayList[n++] = new birthday('Baudille','Mark','22/04/2001','U/11 Black');
bdayList[n++] = new birthday('Drinnan','Trent','23/03/2000','U/11 Black');
bdayList[n++] = new birthday('Drinnan','Matthew','26/07/2001','U/11 Black');
bdayList[n++] = new birthday('Farnhill','Dale','19/08/2000','U/11 Black');
bdayList[n++] = new birthday('Kelly','William','22/12/2000','U/11 Black');
bdayList[n++] = new birthday('Lockhart','Joshua','05/07/2000','U/11 Black');
bdayList[n++] = new birthday('Moutter','Finley','21/08/2000','U/11 Black');
bdayList[n++] = new birthday('Peatling','James','21/08/2000','U/11 Black');
bdayList[n++] = new birthday('Philip','Austin','15/09/2000','U/11 Black');
bdayList[n++] = new birthday('Bolton','Philip','17/03/2000','U/11 Gold');
bdayList[n++] = new birthday('Desai','Rahul','09/11/2000','U/11 Gold');
bdayList[n++] = new birthday('Everton','Cameron','25/04/2000','U/11 Gold');
bdayList[n++] = new birthday('Everton','Marcus','25/04/2000','U/11 Gold');
bdayList[n++] = new birthday('Gregory','Mitchell','06/12/1999','U/11 Gold');
bdayList[n++] = new birthday('Haworth','Joshua','17/10/2000','U/11 Gold');
bdayList[n++] = new birthday('Kallukalam','Jayden','14/02/2002','U/11 Gold');
bdayList[n++] = new birthday('Norris','Floyd','24/08/2000','U/11 Gold');
bdayList[n++] = new birthday('Ramanan','Shiranjeeve','16/08/2000','U/11 Gold');
bdayList[n++] = new birthday('Soumyraj','Suruthikesh','24/09/2000','U/11 Gold');
bdayList[n++] = new birthday('Venkatesh','Anmol','09/09/2000','U/11 Gold');
bdayList[n++] = new birthday('Black','Jonathan','06/12/1998','U/12');
bdayList[n++] = new birthday('Calimquim','John Felix','02/12/1998','U/12');
bdayList[n++] = new birthday('Das','Sheehan','02/09/1999','U/12');
bdayList[n++] = new birthday('Flora','Hakpreet Singh','26/11/1998','U/12');
bdayList[n++] = new birthday('Kelly','Aidan','28/09/1998','U/12');
bdayList[n++] = new birthday('Kushelakumaran','Aravinth','22/03/1999','U/12');
bdayList[n++] = new birthday('Mate','Nathan','12/02/1999','U/12');
bdayList[n++] = new birthday('Paranji','Jayanth','11/04/1999','U/12');
bdayList[n++] = new birthday('Penna','Nathan','09/06/1999','U/12');
bdayList[n++] = new birthday('Singh','Namandeep','19/10/1998','U/12');
bdayList[n++] = new birthday('Thayaseelan','Kesheken','05/06/1999','U/12');
bdayList[n++] = new birthday('Tighe','Jaye','30/05/1999','U/12');
bdayList[n++] = new birthday('Morgan-Crofts','Liam','10/11/1998','U/12');
bdayList[n++] = new birthday('Bradford','Joel','26/08/1998','U/13');
bdayList[n++] = new birthday('Brakell','Trent','14/09/1998','U/13');
bdayList[n++] = new birthday('Desai','Khanjan','27/10/1998','U/13');
bdayList[n++] = new birthday('Gunaratnam','Andrew','21/09/1997','U/13');
bdayList[n++] = new birthday('Hyde','Mitchell','12/12/1998','U/13');
bdayList[n++] = new birthday('Moraitis','Dominic','22/09/1998','U/13');
bdayList[n++] = new birthday('Philip','Allan','31/07/1998','U/13');
bdayList[n++] = new birthday('Philp','Scott','06/09/1998','U/13');
bdayList[n++] = new birthday('Raju','Sanjeev','23/05/1998','U/13');
bdayList[n++] = new birthday('Stanley','Thomas','02/05/1998','U/13');
bdayList[n++] = new birthday('Subenthiran','Lavan','13/02/1998','U/13');
bdayList[n++] = new birthday('Thayaseelan','Krishehen','24/02/1998','U/13');
bdayList[n++] = new birthday('Timbrell','Samuel','26/02/1998','U/13');
bdayList[n++] = new birthday('Vignaraja','Adithya Sridhar','14/06/1998','U/13');
bdayList[n++] = new birthday('Yogalingam','Suban','23/05/1998','U/13');
bdayList[n++] = new birthday('Arulnesan','Kadjann','31/10/1996','U/14 Black');
bdayList[n++] = new birthday('Barclay','Henry','05/04/1997','U/14 Black');
bdayList[n++] = new birthday('Bartlett','Keiren','23/06/1997','U/14 Black');
bdayList[n++] = new birthday('Darbhamulla','Siddharth','02/09/1996','U/14 Black');
bdayList[n++] = new birthday('Fitton','Damien','16/01/1997','U/14 Black');
bdayList[n++] = new birthday('Holdsworth','James','17/02/1997','U/14 Black');
bdayList[n++] = new birthday('Jobson','Luke','22/03/1997','U/14 Black');
bdayList[n++] = new birthday('Kallukalam','Varghese (Ajay)','23/09/1996','U/14 Black');
bdayList[n++] = new birthday('Lockhart','James','19/12/1996','U/14 Black');
bdayList[n++] = new birthday('Lofts','Liam','28/11/1996','U/14 Black');
bdayList[n++] = new birthday('McNaught','Joshua','12/12/1996','U/14 Black');
bdayList[n++] = new birthday('Roosen','Marcus','20/12/1996','U/14 Black');
bdayList[n++] = new birthday('Sivakumar','Saravanan','16/01/1997','U/14 Black');
bdayList[n++] = new birthday('Ahmed','Abrar','10/06/1997','U/14 Gold');
bdayList[n++] = new birthday('Bailey','James','06/05/1998','U/14 Gold');
bdayList[n++] = new birthday('Baudille','Steven','06/12/1998','U/14 Gold');
bdayList[n++] = new birthday('Ciarciello','Aaron','18/07/1997','U/14 Gold');
bdayList[n++] = new birthday('Hansen','Benjamin','29/01/1997','U/14 Gold');
bdayList[n++] = new birthday('Modur','Karthik','13/07/1997','U/14 Gold');
bdayList[n++] = new birthday('Peacock','Lachlan','17/06/1997','U/14 Gold');
bdayList[n++] = new birthday('Raajasingam','Durai','04/07/1997','U/14 Gold');
bdayList[n++] = new birthday('Seagrave','Carl','09/09/1997','U/14 Gold');
bdayList[n++] = new birthday('Singh','Dipendra','21/11/1998','U/14 Gold');
bdayList[n++] = new birthday('Soumyraj','Suwavinaash','05/04/1997','U/14 Gold');
bdayList[n++] = new birthday('Sivanesan','Neythirun','13/11/1996','U/14 Gold');
bdayList[n++] = new birthday('Buckingham','Travis','09/05/1996','U/15 Black');
bdayList[n++] = new birthday('David','Sashyn','16/04/1996','U/15 Black');
bdayList[n++] = new birthday('Dunn','Joshua','10/03/1996','U/15 Black');
bdayList[n++] = new birthday('Gammidge','James','13/09/1996','U/15 Black');
bdayList[n++] = new birthday('Holdsworth','Dylan','12/03/1996','U/15 Black');
bdayList[n++] = new birthday('Kutukoff','Hendrix','17/09/1995','U/15 Black');
bdayList[n++] = new birthday('Magill','Jack','18/11/1995','U/15 Black');
bdayList[n++] = new birthday('Mara','Jack','22/03/1996','U/15 Black');
bdayList[n++] = new birthday('Moraitis','Theo','26/11/1995','U/15 Black');
bdayList[n++] = new birthday('Rickard','Matthew','08/10/1996','U/15 Black');
bdayList[n++] = new birthday('Sergis','Peter','02/02/1996','U/15 Black');
bdayList[n++] = new birthday('Stothard','Luke','02/04/1996','U/15 Black');
bdayList[n++] = new birthday('Zalewski','Joshua','31/12/1995','U/15 Black');
bdayList[n++] = new birthday('Chandramohan','Sudersen','19/11/1996','U/16 Gold');
bdayList[n++] = new birthday('Farnhill','Matthew','16/06/1996','U/16 Gold');
bdayList[n++] = new birthday('Gunaratnam','Samuel','06/01/1996','U/16 Gold');
bdayList[n++] = new birthday('Mitchell','William','15/02/1996','U/16 Gold');
bdayList[n++] = new birthday('Natkunaratnam','Printhan','18/01/1996','U/16 Gold');
bdayList[n++] = new birthday('Reardon','Connor','22/08/1996','U/16 Gold');
bdayList[n++] = new birthday('Velluppillai','Rupen','30/05/1996','U/16 Gold');
bdayList[n++] = new birthday('Abraham','James','16/12/1994','U/16 Black');
bdayList[n++] = new birthday('Arulrajah','Kevin','09/10/1994','U/16 Black');
bdayList[n++] = new birthday('Bubb','Thomas','10/05/1995','U/16 Black');
bdayList[n++] = new birthday('Buckingham','Nicholas','17/05/1995','U/16 Black');
bdayList[n++] = new birthday('La Reservee','Marcel','21/07/1995','U/16 Black');
bdayList[n++] = new birthday('Le','Damien','16/09/1994','U/16 Black');
bdayList[n++] = new birthday('Makkar','Jasjeet','18/02/1995','U/16 Black');
bdayList[n++] = new birthday('McPherson','Rory','24/04/1995','U/16 Black');
bdayList[n++] = new birthday('Moon','Jake','21/05/1996','U/16 Black');
bdayList[n++] = new birthday('Paterson-Hill','Mark','01/01/1995','U/16 Black');
bdayList[n++] = new birthday('Ramesh','Rahul','19/11/1994','U/16 Black');
bdayList[n++] = new birthday('Sithamraju','Smaran','25/09/1994','U/16 Black');
bdayList[n++] = new birthday('Colquhoun','David','09/09/1995','U/16 Gold');
bdayList[n++] = new birthday('Gardiner','Jack','02/11/1995','U/16 Gold');
bdayList[n++] = new birthday('Harris','Jarred','28/03/1995','U/16 Gold');
bdayList[n++] = new birthday('Indrakumar','Gokulan','01/01/1995','U/16 Gold');
bdayList[n++] = new birthday('Philp','Mark','11/01/1996','U/16 Gold');
bdayList[n++] = new birthday('Timbrell','Benjamin','28/08/1995','U/16 Gold');
bdayList[n++] = new birthday('Titus','Sherwin','08/07/1995','U/16 Gold');
bdayList[n++] = new birthday('Williams','Blake','16/08/1995','U/16 Gold');

// End.

