

function headline(date, time, symbol, headline, id)
{
	// Represents a headline object
	this.date = date;
	this.time = time;
	this.symbol = symbol;
	this.headline = headline;
	this.id = id;
}

///// Data values /////
var headlines = new Array();

headlines[0] = new headline('15/03/2010','8:28','BRM','Company Profile','6483849','','','');
headlines[1] = new headline('15/03/2010','8:27','BRM','International Roadshow Presentation','6483848','','','');
headlines[2] = new headline('09/03/2010','9:28','BRM','Response to ASX Query','6483200','','','');
headlines[3] = new headline('08/03/2010','18:26','BRM','Port PFS Completion','6483156','','','');
headlines[4] = new headline('04/03/2010','12:16','BRM','Boardroom Radio Interviews','6482703','','','');
headlines[5] = new headline('03/03/2010','19:52','BRM','Half Yearly Report and Accounts','6482647','','','');
headlines[6] = new headline('03/03/2010','10:59','BRM','Change of Director`s Interest Notice','6482534','','','');
headlines[7] = new headline('03/03/2010','10:57','BRM','Change of Director`s Interest Notice','6482533','','','');
headlines[8] = new headline('03/03/2010','10:54','BRM','Section 708 Cleansing Notice','6482532','','','');
headlines[9] = new headline('03/03/2010','10:45','BRM','Appendix 3B-exercise of options','6482531','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/brockman/article.asp?view=' + articleID;
	var PopupWin = window.open(urlStr,"viewNews","scrollbars=yes,toolbar=no,directories=no,status=yes,menubar=no,resizable=yes,width=630,height=450")
	PopupWin.focus();
}

function renderHeadlinesList()
{
	document.write("<table class='wlNewsTable'>");
	document.write("	<thead>");
	document.write("		<tr>");
	document.write("			<th>Date</th>");
	document.write("			<th>Time</th>");
	document.write("			<th>Document</th>");
	document.write("		</tr>");
	document.write("	</thead>")
	document.write("	<tbody>")

	for (var i=0; i<headlines.length; i++) {
		var h = headlines[i];
		var cls = (i%2 == 0) ? "even" : "odd";

		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td>" + h.date + "</td>");
		document.write("		<td>" + h.time + "</td>");
		document.write("		<td align=left><a target='_blank' href='http://clients.weblink.com.au/clients/brockman/article.asp?view=" +  h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")
}
