

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('18/02/2010','10:19','IRI','Half Year Results Presentation - FY2010','2583097','','','');
headlines[1] = new headline('12/02/2010','15:55','IRI','PROGNOSIS voip monitor - Media Release','2582490','','','');
headlines[2] = new headline('11/02/2010','17:28','IRI','Half Yearly Report and Accounts','2582351','','','');
headlines[3] = new headline('11/02/2010','17:24','IRI','Half Year Report and Accounts','2582350','','','');
headlines[4] = new headline('28/01/2010','14:39','IRI','Appendix 3B Jan 2010 update','2580694','','','');
headlines[5] = new headline('19/11/2009','17:15','IRI','Internet Telephony Excellence Award 2009','2573647','','','');
headlines[6] = new headline('13/11/2009','9:10','IRI','Results of Meeting 2009','2572755','','','');
headlines[7] = new headline('12/11/2009','15:07','IRI','Chairman`s Address to Shareholders 2009','2572645','','','');
headlines[8] = new headline('12/11/2009','15:04','IRI','IR AGM Presentation 2009','2572644','','','');
headlines[9] = new headline('30/10/2009','16:20','IRI','Notice of Annual General Meeting 2009','2571094','','','');
headlines[10] = new headline('20/10/2009','8:27','IRI','Response to ASX Share Price Query','2569238','','','');
headlines[11] = new headline('24/09/2009','13:43','IRI','Annual Report to shareholders FY2009','2566000','','','');
headlines[12] = new headline('18/09/2009','14:36','IRI','Response to ASX Query re Appendix 3Y','2565315','','','');
headlines[13] = new headline('08/09/2009','16:37','IRI','Change of Director`s Interest Notice - John S Brown','2564092','','','');
headlines[14] = new headline('27/08/2009','15:55','IRI','FY2009 Results - Investor Presentation','2562339','','','');
headlines[15] = new headline('13/08/2009','17:02','IRI','Market Release - Results for FY2009','2560205','','','');
headlines[16] = new headline('13/08/2009','17:00','IRI','Appendix 4E - FY2009','2560204','','','');
headlines[17] = new headline('13/07/2009','9:24','IRI','FY2009 Market Guidance','2556848','','','');
headlines[18] = new headline('10/07/2009','15:14','IRI','Continuous Disclosure - Growth for FY2009','2556788','','','');
headlines[19] = new headline('15/06/2009','10:03','IRI','Appendix 3B','2553673','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/IRI/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 goP(page) {
				window.location = '?PageNumber=' + (page);
			}

function renderHeadlinesList2()
{

	document.write("<table class='wlNewsTable'>");
		document.write("	<thead>");
		document.write("		<tr>");
		document.write("			<th>Date</th>");
		//document.write("			<th>Time</th>");
		document.write("			<th>Headline</th>");
		document.write("			<th>PDF</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 = 'IRI';
			if (h.symbol == '') continue;

			document.write("	<tr class='" + cls + "'>");
			document.write("		<td>" + h.date + "</td>");
			//document.write("		<td>" + h.time + "</td>");
			document.write("		<td><a target='_blank' href='http://clients.weblink.com.au/clients/IRI/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</a></td>");
			document.write("		<td><a target='_blank' href='http://clients.weblink.com.au/clients/IRI/article.asp?asx="+ asxcode +"&view=" + h.id + "'><img src='http://clients.weblink.com.au/clients/IRI/icon_pdf.gif'  alt='View PDF' border='0' /></a></td>");
			document.write("	</tr>");

		}
		document.write("	</tbody>")
	document.write("</table>")


    document.write("<table class='wlpageTable' >")
    document.write("<tr>")
    
	document.write("<td >")
	document.write("				")
	 document.write("   <b>1</b>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(2);'>2</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(3);'>3</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(4);'>4</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(5);'>5</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(6);'>6</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(7);'>7</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(8);'>8</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(9);'>9</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(10);'>10</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(11);'>11</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(12);'>12</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(13);'>13</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(14);'>14</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(15);'>15</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(16);'>16</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(17);'>17</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(18);'>18</a>")
	
    document.write("                 ")
	document.write("			</td>")

	 
	document.write("<td>")
	document.write("				<a href='javascript:goP(2);'><img src='http://clients.weblink.com.au/clients/IRI/next_icon.gif' alt='Next page' border='0' /></a>")
	document.write("			</td>")
	
	document.write("		</tr>")
    document.write("</table>")
 
}
