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 30 event/s in Brighton...</p>');
var events = [];
events[0] = new EventObj('Speed Dating', 'Thu 5th August', 'SpeedDater', 'Koba', '19.95', 'http://www.speeddater.co.uk/spd_events.details.php?a_bid=31585523&EventID=11574&a_aid=28115b93');
events[1] = new EventObj('Speed Dating', 'Fri 6th August', 'When the Music Stops', 'Oceana', '16.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4003&aff=datingtrail');
events[2] = new EventObj('Gay & Lesbian Dating', 'Fri 13th August', 'Pink Date', 'Brighton', '18.00', '/buy-gay-lesbian-speed-dating-tickets.html');
events[3] = new EventObj('Speed Dating', 'Sat 14th August', 'When the Music Stops', 'Prince Albert', '15.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4402&aff=datingtrail');
events[4] = new EventObj('Speed Dating', 'Wed 18th August', 'XFactor Dates', 'Koba', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4696');
events[5] = new EventObj('Speed Dating', 'Thu 19th August', 'SpeedDater', 'Koba', '19.95', 'http://www.speeddater.co.uk/spd_events.details.php?a_bid=31585523&EventID=11575&a_aid=28115b93');
events[6] = new EventObj('Speed Dating', 'Thu 19th August', 'XFactor Dates', 'Karma', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4698');
events[7] = new EventObj('Speed Dating', 'Fri 20th August', 'When the Music Stops', 'Oceana', '19.99', 'http://www.whenthemusicstops.com/speeddating.php?id=4004&aff=datingtrail');
events[8] = new EventObj('Gay & Lesbian Dating', 'Fri 20th August', 'Pink Date', 'Brighton', '18.00', '/buy-gay-lesbian-speed-dating-tickets.html');
events[9] = new EventObj('Special Events', 'Sat 21st August', 'When the Music Stops', 'Casino Brighton Marina', '37.50', 'http://www.whenthemusicstops.com/singles/diary.php?event_id=4367&aff=datingtrail');
events[10] = new EventObj('Speed Dating', 'Sat 28th August', 'When the Music Stops', 'Prince Albert', '15.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4403&aff=datingtrail');
events[11] = new EventObj('Speed Dating', 'Tue 31st August', 'Slow Dating', 'Terraces', '20.00', 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=117114&merchantID=359&programmeID=1267&mediaID=0&tracking=&url=http://www.slowdating.com/speed-dating/Brighton/102514.aspx?external=true');
events[12] = new EventObj('Speed Dating', 'Fri 3rd September', 'When the Music Stops', 'Oceana', '16.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4005&aff=datingtrail');
events[13] = new EventObj('Speed Dating', 'Wed 8th September', 'XFactor Dates', 'Koba', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4697');
events[14] = new EventObj('Speed Dating', 'Thu 9th September', 'XFactor Dates', 'Karma', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4775');
events[15] = new EventObj('Speed Dating', 'Sat 11th September', 'When the Music Stops', 'Prince Albert', '15.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4404&aff=datingtrail');
events[16] = new EventObj('Speed Dating', 'Fri 17th September', 'When the Music Stops', 'Oceana', '16.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4006&aff=datingtrail');
events[17] = new EventObj('Speed Dating', 'Wed 22nd September', 'XFactor Dates', 'Koba', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4776');
events[18] = new EventObj('Speed Dating', 'Sat 25th September', 'When the Music Stops', 'Prince Albert', '15.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4405&aff=datingtrail');
events[19] = new EventObj('Speed Dating', 'Thu 30th September', 'SpeedDater', 'Koba', '19.95', 'http://www.speeddater.co.uk/spd_events.details.php?a_bid=31585523&EventID=11576&a_aid=28115b93');
events[20] = new EventObj('Speed Dating', 'Fri 1st October', 'When the Music Stops', 'Oceana', '19.99', 'http://www.whenthemusicstops.com/speeddating.php?id=4007&aff=datingtrail');
events[21] = new EventObj('Speed Dating', 'Tue 5th October', 'Slow Dating', 'Terraces', '20.00', 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=117114&merchantID=359&programmeID=1267&mediaID=0&tracking=&url=http://www.slowdating.com/speed-dating/Brighton/102726.aspx?external=true');
events[22] = new EventObj('Speed Dating', 'Wed 13th October', 'XFactor Dates', 'Koba', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4832');
events[23] = new EventObj('Speed Dating', 'Wed 13th October', 'XFactor Dates', 'Koba Bar', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4777');
events[24] = new EventObj('Speed Dating', 'Fri 15th October', 'When the Music Stops', 'Oceana', '16.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4008&aff=datingtrail');
events[25] = new EventObj('Speed Dating', 'Wed 27th October', 'XFactor Dates', 'Koba', '19.99', 'http://www.xfactordates.com/speeddating/uk/tracker/18629/events/4778');
events[26] = new EventObj('Speed Dating', 'Fri 29th October', 'When the Music Stops', 'Oceana', '16.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4009&aff=datingtrail');
events[27] = new EventObj('Speed Dating', 'Fri 12th November', 'When the Music Stops', 'Oceana', '19.99', 'http://www.whenthemusicstops.com/speeddating.php?id=4010&aff=datingtrail');
events[28] = new EventObj('Speed Dating', 'Fri 26th November', 'When the Music Stops', 'Oceana', '16.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4011&aff=datingtrail');
events[29] = new EventObj('Speed Dating', 'Fri 10th December', 'When the Music Stops', 'Oceana', '19.99', 'http://www.whenthemusicstops.com/speeddating.php?id=4012&aff=datingtrail');
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<30; 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>');