

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('03/07/2009','16:46','IRM','UOG Becoming a substantial holder from UOG','6451916','','','');
headlines[1] = new headline('29/06/2009','15:29','IRM','TMX: IRM Takeover Bid Fails','6451163','','','');
headlines[2] = new headline('29/06/2009','8:56','IRM','IRM offer for shares in Terrain Minerals Ltd - result','6451061','','','');
headlines[3] = new headline('19/06/2009','16:01','IRM','TMX: Clarification of UOG Share Holding','6450329','','','');
headlines[4] = new headline('19/06/2009','11:19','IRM','IRM Notice of Status - TMX Offer','6450267','','','');
headlines[5] = new headline('18/06/2009','16:34','IRM','IRM Notice to Free Offer for TMX from conditions','6450210','','','');
headlines[6] = new headline('18/06/2009','16:28','IRM','Change in IRM substantial holding from IRM','6450208','','','');
headlines[7] = new headline('17/06/2009','18:35','IRM','Change of Director`s Interest Notice','6450099','','','');
headlines[8] = new headline('12/06/2009','15:40','IRM','Change of Director`s Interest Notice','6449668','','','');
headlines[9] = new headline('12/06/2009','8:23','IRM','Change of Director`s Interest Notice','6449575','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/ironmountain/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("<ul>");

	for (var i=0; i<headlines.length; i++) {
		var h = headlines[i];
        var asxcode = 'IRM';
		if (h.symbol == '') continue;


		document.write("		<li><a target='_blank' href='http://clients.weblink.com.au/clients/ironmountain/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + " - " + h.date +"</li>");
		document.write("	</tr>");

	}
	document.write("</ul>")
}
