

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/01/2009','19:30','ZOR','End of Day','2535887','','','');
headlines[1] = new headline('06/01/2009','19:19','TMX','Letter to Shareholders','6434505','','','');
headlines[2] = new headline('06/01/2009','19:19','TMX','Letter to Option Holders','6434503','','','');
headlines[3] = new headline('06/01/2009','19:15','WGP','WGP ASX Appendix 3B 06-Jan-09','6434504','','','');
headlines[4] = new headline('06/01/2009','19:06','WDS','Appendix 3B','2535886','','','');
headlines[5] = new headline('06/01/2009','19:01','VEC','Section 249D Requisition','6434502','','','');
headlines[6] = new headline('06/01/2009','19:00','WDS','Delco Business Acquisition - Finalisation','2535885','','','');
headlines[7] = new headline('06/01/2009','18:49','CDT','Section 708A Notice','6434501','','','');
headlines[8] = new headline('06/01/2009','18:45','MAK','Response to ASX Query','6434500','','','');
headlines[9] = new headline('06/01/2009','18:35','APB','Rights Issue Document Despatch','6434499','','','');


///// 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>")
}
