

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('06 September 10','11:57','BLZ','Amended Annual Report','6504259','','','');
headlines[1] = new headline('02 September 10','13:10','BLZ','Annual Report to shareholders','6503946','','','');
headlines[2] = new headline('27 July 10','13:35','BLZ','Quarterly Activities Report','6498890','','','');
headlines[3] = new headline('26 July 10','15:59','BLZ','Quarterly Cashflow Report','6498730','','','');
headlines[4] = new headline('26 July 10','14:21','BLZ','Option Expiry Notice','6498700','','','');
headlines[5] = new headline('22 July 10','11:15','BLZ','Section 708A (5) Notice','6498360','','','');
headlines[6] = new headline('21 July 10','16:11','BLZ','Change in substantial holding','6498272','','','');
headlines[7] = new headline('21 July 10','15:06','BLZ','Becoming a substantial holder','6498265','','','');
headlines[8] = new headline('21 July 10','11:24','BLZ','Appendix 3B','6498222','','','');
headlines[9] = new headline('21 July 10','10:26','BLZ','Change in substantial holding','6498209','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/blazelimited/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";
        var asxcode = 'BLZ';
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td align=left><a target='_blank' href='http://clients.weblink.com.au/clients/blazelimited/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</a><br>");
		document.write(h.date + "<p></td>");
		//document.write("		<td>" + h.time + "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")
}
