function EventObj(Title, StartDate, Company, Venue, Price, Link) {
  this.title = Title;
  this.startdate = StartDate;
  this.company = Company;
  this.venue = Venue;
  this.price = Price;
  this.link = Link;
}
document.writeln('<font face="Verdana, Arial" size="2" color="#000000">');document.writeln('<p>Found 17 event/s in Leeds...</p>');
var events = [];
events[0] = new EventObj('Speed Dating', 'Thu 5th August', 'XFactor Dates', 'Chilli White', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4678');
events[1] = new EventObj('Speed Dating', 'Thu 5th August', 'Fastlove', 'Chilli White', '15.00', 'http://www.fastlovespeeddating.co.uk/speed-dating.php?city=Leeds');
events[2] = new EventObj('Asian Dating', 'Sat 7th August', 'Asian D8 Events', 'Starbucks Coffee House', '15.00', 'http://www.chillitickets.com/AsianEvents/Events/Product/9909/ADLE07082010/MuslimSpeedDating-Leeds.aspx');
events[3] = new EventObj('Speed Dating', 'Tue 10th August', 'SpeedDater', 'Henry\'s Bar', '19.95', 'http://www.speeddater.co.uk/spd_events.details.php?a_bid=31585523&EventID=11613&a_aid=28115b93');
events[4] = new EventObj('Speed Dating', 'Thu 12th August', 'Fastlove', 'Chilli White', '15.00', 'http://www.fastlovespeeddating.co.uk/speed-dating.php?city=Leeds');
events[5] = new EventObj('Speed Dating', 'Thu 12th August', 'Fastlove', 'Chilli White', '15.00', 'http://www.fastlovespeeddating.co.uk/speed-dating.php?city=Leeds');
events[6] = new EventObj('Speed Dating', 'Wed 18th August', 'Slow Dating', 'Henry\'s Bar & Cafe', '20.00', 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=117114&merchantID=359&programmeID=1267&mediaID=0&tracking=&url=http://www.slowdating.com/speed-dating/Leeds/102539.aspx?external=true');
events[7] = new EventObj('Speed Dating', 'Thu 19th August', 'XFactor Dates', 'Chilli White', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4681');
events[8] = new EventObj('Speed Dating', 'Thu 19th August', 'Elite Speed Dating', 'Chilli White', '25.00', 'http://www.elitespeeddating.co.uk/Speed-Dating-Leeds');
events[9] = new EventObj('Speed Dating', 'Thu 2nd September', 'XFactor Dates', 'Chilli White', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4809');
events[10] = new EventObj('Speed Dating', 'Wed 15th September', 'Slow Dating', 'Henry\'s Bar & Cafe', '20.00', 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=117114&merchantID=359&programmeID=1267&mediaID=0&tracking=&url=http://www.slowdating.com/speed-dating/Leeds/102744.aspx?external=true');
events[11] = new EventObj('Speed Dating', 'Wed 15th September', 'ditch or date?', 'The Living Room', '20.00', 'http://www.ditchordate.com/affiliate-system/affiliate/affiliate.php?group=537&id=5');
events[12] = new EventObj('Speed Dating', 'Thu 23rd September', 'XFactor Dates', 'Chilli White', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4811');
events[13] = new EventObj('Speed Dating', 'Tue 28th September', 'SpeedDater', 'Henry\'s Bar', '19.95', 'http://www.speeddater.co.uk/spd_events.details.php?a_bid=31585523&EventID=11627&a_aid=28115b93');
events[14] = new EventObj('Speed Dating', 'Wed 13th October', 'Slow Dating', 'Henry\'s Bar & Cafe', '20.00', 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=117114&merchantID=359&programmeID=1267&mediaID=0&tracking=&url=http://www.slowdating.com/speed-dating/Leeds/102745.aspx?external=true');
events[15] = new EventObj('Speed Dating', 'Thu 14th October', 'XFactor Dates', 'Chilli White', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4810');
events[16] = new EventObj('Speed Dating', 'Thu 28th October', 'XFactor Dates', 'Chilli White', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4812');
document.writeln('<table width="100%">');
document.writeln('<thead>');
document.writeln('<tr>');
document.writeln('<th align="left"><font face="Verdana, Arial" size="1" color="#000000">Date</font></td>');
document.writeln('<th align="left"><font face="Verdana, Arial" size="1" color="#000000">Event type</font></td>');
document.writeln('<th align="left"><font face="Verdana, Arial" size="1" color="#000000">Venue</font></td>');
document.writeln('<th align="right"><font face="Verdana, Arial" size="1" color="#000000">Price</font></td>');
document.writeln('<th> </td>');
document.writeln('</tr>');
document.writeln('</thead>');
document.writeln('<tbody>');

for (x=0; x<17; x++) 
{ 


  document.writeln('<tr onMouseOver="style.backgroundColor=\'#C0C0C0\'" onMouseOut="style.backgroundColor=\'\'" style="cursor:hand" onClick="document.location.href=\'' + events[x].link + '\'">');
  document.writeln('<td align="left"><font face="Verdana, Arial" size="2" color="#000000">' + events[x].startdate + '</font></td>');
  document.writeln('<td align="left"><font face="Verdana, Arial" size="2" color="#000000">' + events[x].title + '</font></td>');
  document.writeln('<td align="left"><font face="Verdana, Arial" size="2" color="#000000">' + events[x].venue + '</font></td>');
  document.writeln('<td align="right"><font face="Verdana, Arial" size="2" color="#000000">£' + events[x].price + '</font></td>');
  document.writeln('<td align="right"><font face="Verdana, Arial" size="2" color="blue"><a href="' + events[x].link + '" target="_blank" title="Click here for more information" style="color: #800000"><strong>More Info / Book</strong></a></font></td>');
  document.writeln('</tr>');
} 

document.writeln('</tbody>');
document.writeln('</table>');
document.writeln('</font>');