

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('08 Feb, 2010','10:01','STU','100208 Exploration Review Interview','5176727','','','');
headlines[1] = new headline('04 Feb, 2010','10:10','STU','Stuart Strategy Presentation','5176699','','','');
headlines[2] = new headline('03 Feb, 2010','12:57','STU','Stuart Profitable First Half 2009/10','5176684','','','');


///// 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>");

		}
}
