

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('22/02/2010','15:29','RHT','Half Yearly Report and Accounts','6481240','','','');
headlines[1] = new headline('29/01/2010','15:39','RHT','Appendix 4C - quarterly','6478605','','','');
headlines[2] = new headline('24/12/2009','15:57','RHT','Change of Director`s Interest Notice','6475542','','','');
headlines[3] = new headline('24/12/2009','15:55','RHT','Appendix 3B','6475541','','','');
headlines[4] = new headline('25/11/2009','18:48','RHT','Results of Annual General Meeting','6471079','','','');
headlines[5] = new headline('25/11/2009','8:27','RHT','AGM Presentation to Shareholders','6470824','','','');
headlines[6] = new headline('09/11/2009','13:36','RHT','Additional FerriScan Revenue and International Presentations','6468417','','','');
headlines[7] = new headline('30/10/2009','13:40','RHT','Appendix 4C - quarterly','6467075','','','');
headlines[8] = new headline('27/10/2009','8:23','RHT','Annual Report 2009','6465892','','','');
headlines[9] = new headline('27/10/2009','8:22','RHT','Notice of Annual General Meeting','6465890','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/resonancehealth/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";

		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td>" + h.date + "</td>");
		document.write("		<td>" + h.time + "</td>");
		document.write("		<td><a target='_blank' href='http://clients.weblink.com.au/clients/resonancehealth/article.asp?view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
}
