

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('02/02/2012','10:37','CXD','Announces strategic and management changes','2665579','','','');
headlines[1] = new headline('25/01/2012','12:43','CXD','Appendix 4C - quarterly','2664695','','','');
headlines[2] = new headline('28/11/2011','17:38','CXD','Change of Director`s Interest Notice (x3)','2658740','','','');
headlines[3] = new headline('25/11/2011','17:52','CXD','Change in substantial holding','2658538','','','');
headlines[4] = new headline('24/11/2011','18:39','CXD','Becoming a substantial holder','2658295','','','');
headlines[5] = new headline('24/11/2011','18:36','CXD','Change in substantial holding','2658293','','','');
headlines[6] = new headline('24/11/2011','16:30','CXD','Change in substantial holding','2658264','','','');
headlines[7] = new headline('24/11/2011','16:29','CXD','Final Director`s Interest Notice','2658263','','','');
headlines[8] = new headline('22/11/2011','17:06','CXD','Appendix 3B','2657827','','','');
headlines[9] = new headline('18/11/2011','15:24','CXD','Dr Michael Hirshorn','2657424','','','');
headlines[10] = new headline('16/11/2011','11:23','CXD','Results of Meeting','2657028','','','');
headlines[11] = new headline('16/11/2011','9:48','CXD','Chairman and CEO presentation to AGM','2656997','','','');
headlines[12] = new headline('14/11/2011','11:58','CXD','Completes Entitlement Offer','2656708','','','');
headlines[13] = new headline('08/11/2011','10:30','CXD','Receives CE Mark for its Variable Loop Catheter','2655986','','','');
headlines[14] = new headline('07/11/2011','16:47','CXD','Update on Partnership Meetings','2655912','','','');
headlines[15] = new headline('18/10/2011','14:43','CXD','Appendix 4C - quarterly','2653147','','','');
headlines[16] = new headline('14/10/2011','9:47','CXD','Letter to Ineligible Shareholders','2652694','','','');
headlines[17] = new headline('14/10/2011','9:45','CXD','Letter to Optionholders','2652693','','','');
headlines[18] = new headline('14/10/2011','9:44','CXD','Entitlement Offer Booklet and Entitlement Form','2652692','','','');
headlines[19] = new headline('14/10/2011','9:43','CXD','Entitlement Offer Presentation','2652691','','','');
headlines[20] = new headline('14/10/2011','9:39','CXD','Appendix 3B','2652690','','','');
headlines[21] = new headline('14/10/2011','9:36','CXD','Notice under section 708AA(2)(f)','2652689','','','');
headlines[22] = new headline('14/10/2011','9:32','CXD','Non Renounceable Entitlement Offer','2652687','','','');
headlines[23] = new headline('12/10/2011','10:25','CXD','Notice of Annual General Meeting/Proxy Form','2652377','','','');
headlines[24] = new headline('03/10/2011','11:28','CXD','Ceasing to be a substantial holder','2651237','','','');
headlines[25] = new headline('30/09/2011','16:47','CXD','Becoming a substantial holder','2651106','','','');
headlines[26] = new headline('29/09/2011','9:55','CXD','Moves to Exclusive Negotiations for Europe','2650709','','','');
headlines[27] = new headline('28/09/2011','15:07','CXD','Annual Report to shareholders','2650552','','','');
headlines[28] = new headline('02/09/2011','12:12','CXD','Audio Investor Update','2647316','','','');
headlines[29] = new headline('29/08/2011','14:47','CXD','Signs Second Non Binding Term Sheet','2646335','','','');
headlines[30] = new headline('25/08/2011','13:20','CXD','Preliminary Final Report','2645854','','','');
headlines[31] = new headline('19/08/2011','8:44','CXD','Signs Non Binding Term Sheet','2644917','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/cathrx2/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 align=left>");
	document.write("			<th>Date</th>");
	document.write("			<th>Time</th>");
	document.write("			<th>ASX Announcements</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 = 'CXD';
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td>" + h.date + "</td>");
		document.write("		<td>" + h.time + "</td>");
		document.write("		<td align=left><a target='_blank' href='http://clients.weblink.com.au/clients/cathrx2/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")
}

