

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('24 Feb, 2010','10:31','STU','Stuart Profitable, Debt Free and Highly Prospective','5176959','','','');
headlines[1] = new headline('24 Feb, 2010','10:29','STU','Half Year Financial Report and Appendix 4D','5176957','','','');
headlines[2] = new headline('18 Feb, 2010','14:41','STU','Settlement of AC/P33 Sale - Stuart Debt Free','5176900','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/stuartpetroleum/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 renderHeadlinesList2()
{


		for (var i=0; i<headlines.length; i++) {
			var h = headlines[i];


			if (h.symbol == '') continue;

			document.write("	<h3>");
			document.write("	<a target='_blank' href='http://clients.weblink.com.au/clients/stuartpetroleum/article.asp?view=" + h.id + "'>" + h.headline );
			document.write("	</a>");
			document.write("	<em>");
						document.write(h.date);
			document.write("	</em></h3>");

		}
}
