

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('09/02/2010','19:44','BRM','Progress Report - Resources Classification Upgrade','6480002','','','');
headlines[1] = new headline('27/01/2010','15:56','BRM','Appendix 3B - exercise of options','6477875','','','');
headlines[2] = new headline('27/01/2010','15:09','BRM','Quarterly Cashflow Report','6477861','','','');
headlines[3] = new headline('27/01/2010','11:52','BRM','Quarterly Activities Report - 31 December 2009','6477813','','','');
headlines[4] = new headline('18/01/2010','18:01','BRM','Section 708 Cleansing Notice','6477012','','','');
headlines[5] = new headline('18/01/2010','18:00','BRM','Appendix 3B - exercise of options','6477011','','','');
headlines[6] = new headline('06/01/2010','8:25','BRM','Grant of Mining Lease at Brockman Marillana Iron Ore Project','6476041','','','');
headlines[7] = new headline('30/12/2009','14:42','BRM','Section 708 Cleansing notice','6475722','','','');
headlines[8] = new headline('30/12/2009','14:39','BRM','Appendix 3B- exercise of options','6475721','','','');
headlines[9] = new headline('21/12/2009','17:36','BRM','Change of Director`s Interest Notice','6474978','','','');


///// 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>")
}
