

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('04/07/2009','11:02','ZOR','CAP Test - please ignore','2556192','','','');
headlines[1] = new headline('04/07/2009','10:35','ZOR','CAP Test - please ignore','2556191','','','');
headlines[2] = new headline('03/07/2009','19:29','ZOR','End of Day','2556190','','','');
headlines[3] = new headline('03/07/2009','19:19','GWR','Correction - Change in Directors` Interest Notice','6451961','','','');
headlines[4] = new headline('03/07/2009','19:18','AOS','Appendix 3B','6451960','','','');
headlines[5] = new headline('03/07/2009','19:12','IDG','Diamond drilling commences at the Kilimani Prospect','6451959','','','');
headlines[6] = new headline('03/07/2009','19:10','APK','Change of Registered Office and Principal Place of Business','2556189','','','');
headlines[7] = new headline('03/07/2009','19:03','CHM','MMX: Settlement of Evans and Koh Litigation','6451958','','','');
headlines[8] = new headline('03/07/2009','19:03','MMX','Settlement of Evans and Koh Litigation','6451957','','','');
headlines[9] = new headline('03/07/2009','19:01','DMM','Appendix 3B','6451956','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/futurewealthplanners/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>Symbol</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 = 1;
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td>" + h.date+ "</td>");
		document.write("		<td>" + h.time + "</td>");
		document.write("		<td>" + h.symbol + "</td>");
		document.write("		<td>" + h.headline + "</td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
}
