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 13 event/s in Nottingham...</p>');
var events = [];
events[0] = new EventObj('Speed Dating', 'Wed 11th August', 'XFactor Dates', 'Pearl Bar', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4688');
events[1] = new EventObj('Speed Dating', 'Wed 11th August', 'ditch or date?', 'Pitcher and Piano', '20.00', 'http://www.ditchordate.com/affiliate-system/affiliate/affiliate.php?group=546&id=5');
events[2] = new EventObj('Speed Dating', 'Tue 17th August', 'ditch or date?', 'Pitcher and Piano', '20.00', 'http://www.ditchordate.com/affiliate-system/affiliate/affiliate.php?group=545&id=5');
events[3] = new EventObj('Speed Dating', 'Wed 18th August', 'Slow Dating', 'Tantra', '20.00', 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=117114&merchantID=359&programmeID=1267&mediaID=0&tracking=&url=http://www.slowdating.com/speed-dating/Nottingham/102665.aspx?external=true');
events[4] = new EventObj('Speed Dating', 'Wed 25th August', 'When the Music Stops', 'Via Fossa', '15.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4434&aff=datingtrail');
events[5] = new EventObj('Speed Dating', 'Wed 25th August', 'XFactor Dates', 'Pearl Bar', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4689');
events[6] = new EventObj('Speed Dating', 'Thu 9th September', 'SpeedDater', 'Cape Bar', '19.95', 'http://www.speeddater.co.uk/spd_events.details.php?a_bid=31585523&EventID=11551&a_aid=28115b93');
events[7] = new EventObj('Speed Dating', 'Wed 15th September', 'XFactor Dates', 'Pearl Bar', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4787');
events[8] = new EventObj('Speed Dating', 'Wed 22nd September', 'Slow Dating', 'Tantra', '20.00', 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=117114&merchantID=359&programmeID=1267&mediaID=0&tracking=&url=http://www.slowdating.com/speed-dating/Nottingham/102765.aspx?external=true');
events[9] = new EventObj('Speed Dating', 'Wed 29th September', 'XFactor Dates', 'Pearl Bar', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4788');
events[10] = new EventObj('Speed Dating', 'Wed 6th October', 'XFactor Dates', 'Pearl Bar', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4789');
events[11] = new EventObj('Speed Dating', 'Wed 20th October', 'XFactor Dates', 'Pearl Bar', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4790');
events[12] = new EventObj('Speed Dating', 'Wed 27th October', 'Slow Dating', 'Tantra', '20.00', 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=117114&merchantID=359&programmeID=1267&mediaID=0&tracking=&url=http://www.slowdating.com/speed-dating/Nottingham/102766.aspx?external=true');
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<13; 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>');