

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('05/03/2010','9:32','HTA','SandP Announces March SP/ASX Index Rebalance','2585495','','','');
headlines[1] = new headline('03/03/2010','18:33','HTA','Change of Director`s Interest Notice','2585269','','','');
headlines[2] = new headline('19/02/2010','14:24','HTA','Annual results media release and presentation','2583360','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/Hutchison2/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 renderHeadlinesList3()
{
	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 = 'HTA';
		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/Hutchison2/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")
}
