

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('28/08/2008','14:41','ABU','Share Purchase Plan Offer to Shareholders','6418937','','','');
headlines[1] = new headline('25/08/2008','16:29','ABU','ABM Shareholder Share Purchase Plan Announcement','6418499','','','');
headlines[2] = new headline('25/08/2008','8:58','ABU','Encouraging Assay Results from Mimosa Gold Project','6418399','','','');
headlines[3] = new headline('12/08/2008','9:21','ABU','Erayinia JV Significant Zinc Intersections','6417265','','','');
headlines[4] = new headline('06/08/2008','15:08','ABU','Initial Director`s Interest Notice','6416846','','','');
headlines[5] = new headline('06/08/2008','11:15','ABU','Notice of General Meeting/Proxy Form','6416793','','','');
headlines[6] = new headline('31/07/2008','13:25','ABU','Quarterly Cashflow Report','6415929','','','');
headlines[7] = new headline('30/07/2008','11:49','ABU','Gascoyne JV Quarterly Report of Altera Resources Limited','6415511','','','');
headlines[8] = new headline('23/07/2008','14:26','ABU','Quarterly Activities Report','6414733','','','');
headlines[9] = new headline('10/07/2008','11:33','ABU','Substantial Shareholder Notice','6413356','','','');


///// 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>")
}
