

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('02/07/2009','12:40','ABU','Broads Dam JV - Drilling Results and Follow-up Program','6451690','','','');
headlines[1] = new headline('11/06/2009','9:21','ABU','Broads Dam JV Auger Geochemistry Drilling Program Completed','6449439','','','');
headlines[2] = new headline('10/06/2009','9:26','ABU','ABM Signs Subscription Agreement with Ochre Holdings Pty Ltd','6449315','','','');
headlines[3] = new headline('02/06/2009','13:31','ABU','Ochre Holdings Completes Due Dilligence','6448613','','','');
headlines[4] = new headline('28/05/2009','13:28','ABU','Notice Under Section 708A','6448234','','','');
headlines[5] = new headline('27/05/2009','12:16','ABU','Share Placement and Appendix 3B','6448061','','','');
headlines[6] = new headline('26/05/2009','9:17','ABU','ABM Signs MOU with Ochre Holdings Pty Ltd','6447899','','','');
headlines[7] = new headline('22/05/2009','9:22','ABU','Trading Halt','6447669','','','');
headlines[8] = new headline('11/05/2009','15:40','ABU','Share Placement to raise up to $485,362','6446479','','','');
headlines[9] = new headline('28/04/2009','15:09','ABU','Quarterly Activities and Cashflow Report','6444567','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/ABMResources/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='wlNews' cellpadding=0 cellspacing=0>");
    document.write("<tr><td>");  
	document.write("<table class='wlNewsTable'>");
	document.write("	<thead>");
	document.write("		<tr>");
	document.write("			<th>Date</th>");
	document.write("			<th>Time</th>");
	document.write("			<th align=left>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";
        var asxcode = 'ABU';
		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/ABMResources/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
	document.write("</tr></td>");  
	document.write("</table>")
}
