

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('18/03/2010','11:54','GCR','Copper Hill Drilling Update - New Gold Zone','2586960','','','');
headlines[1] = new headline('18/03/2010','11:54','CWP','Investor Presentation','6484535','','','');
headlines[2] = new headline('18/03/2010','11:52','QBE','2009 Final Dividend - Update','2586961','','','');
headlines[3] = new headline('18/03/2010','11:52','AIO','Appendix 3Y Change of Director`s Interest Notice','3333984','','','');
headlines[4] = new headline('18/03/2010','11:51','GTI','Option Agreement For Oil and Natural Gas Joint Venture','6484533','','','');
headlines[5] = new headline('18/03/2010','11:50','BTR','Change of Director`s Interest Notice','6484534','','','');
headlines[6] = new headline('18/03/2010','11:46','SPN','SP AusNet Successfully Prices 300M Australian Dollar Offer','3333982','','','');
headlines[7] = new headline('18/03/2010','11:42','MLI','Appointment of New Director','3333983','','','');
headlines[8] = new headline('18/03/2010','11:38','CAH','Placement Cleansing Notice 18 March 2010','6484532','','','');
headlines[9] = new headline('18/03/2010','11:36','ANZ','Notice of change in interest of substantial holder for MCB','3333981','','','');


///// 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>")
}
