

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('Nov 25, 2008','12:44','CMW','Change of Director`s Interest Notice','4205938','','','');
headlines[1] = new headline('Nov 14, 2008','12:00','CMW','Cromwell Group - Quarterly Update to 30 September 2008','4205616','','','');
headlines[2] = new headline('Nov 13, 2008','15:34','CMW','Distribution for the Qtr ended 30 Sept 2008 - Tax Components','4205586','','','');
headlines[3] = new headline('Nov 13, 2008','9:54','CMW','Cromwell Moves On New Debt Facility','4205556','','','');
headlines[4] = new headline('Nov 11, 2008','16:41','CMW','Company Secretary Appointment/Resignation','4205502','','','');
headlines[5] = new headline('Nov 06, 2008','18:26','CMW','Change of Director`s Interest Notice','4205377','','','');
headlines[6] = new headline('Oct 29, 2008','18:13','CMW','Results of Meeting','4204969','','','');
headlines[7] = new headline('Oct 29, 2008','13:52','CMW','AGM Presentation','4204944','','','');
headlines[8] = new headline('Oct 29, 2008','13:49','CMW','Chairman`s Address to Shareholders','4204942','','','');
headlines[9] = new headline('Oct 29, 2008','13:48','CMW','Execution of Documentation to Refinance CMBS','4204940','','','');
headlines[10] = new headline('Oct 01, 2008','10:02','CMW','Response to ASX Price Query','4203890','','','');
headlines[11] = new headline('Sep 26, 2008','11:19','CMW','Notice of Annual General Meeting and Proxy','4203630','','','');
headlines[12] = new headline('Sep 26, 2008','10:04','CMW','Cromwell Group Annual Update 2008','4203607','','','');
headlines[13] = new headline('Sep 26, 2008','10:02','CMW','2008 Annual Report','4203606','','','');
headlines[14] = new headline('Sep 22, 2008','9:31','CMW','September Quarter 2008 Distribution','4203413','','','');
headlines[15] = new headline('Sep 03, 2008','16:24','CMW','Change of Director`s Interest Notice','4202830','','','');
headlines[16] = new headline('Sep 03, 2008','16:24','CMW','Change of Director`s Interest Notice','4202831','','','');
headlines[17] = new headline('Aug 29, 2008','16:46','CMW','Change of Director`s Interest Notice','4202719','','','');
headlines[18] = new headline('Aug 27, 2008','16:05','CMW','Cromwell Group - Quarterly Update to 30 June 2008','4202524','','','');
headlines[19] = new headline('Aug 27, 2008','16:04','CMW','Change of Director`s Interest Notice','4202523','','','');
headlines[20] = new headline('Aug 27, 2008','16:03','CMW','Distribution for the Qtr ended 30 June 2008 - Tax Components','4202522','','','');
headlines[21] = new headline('Aug 20, 2008','14:00','CMW','Cromwell Group Property Portfolio','4202259','','','');
headlines[22] = new headline('Aug 20, 2008','14:00','CMW','Cromwell Group Broadcast','4202258','','','');
headlines[23] = new headline('Aug 20, 2008','9:42','CMW','Cromwell Diversified Property Trust 2008 Financial Report','4202230','','','');
headlines[24] = new headline('Aug 20, 2008','9:40','CMW','Cromwell Group 2008 Financial Report','4202229','','','');
headlines[25] = new headline('Aug 19, 2008','11:38','CMW','FY08 Results Presentation','4202180','','','');
headlines[26] = new headline('Aug 19, 2008','11:32','CMW','Cromwell Delivers Strong Result','4202179','','','');
headlines[27] = new headline('Aug 19, 2008','11:31','CMW','Preliminary Final Report','4202178','','','');
headlines[28] = new headline('Jul 31, 2008','15:52','CMW','FY08 Annual Results Announcement Date','4201690','','','');
headlines[29] = new headline('Jul 29, 2008','9:22','CMW','Cromwell Locks in 10 Yr Lease at Landmark Adelaide Building','4201485','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/cromwell/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 renderHeadlinesList()
{
	document.write("<table class='wlNewsTable'>");
	document.write("	<tbody>")

	for (var i=0; i<headlines.length; i++) {
		var h = headlines[i];
		var cls = (i%2 == 0) ? "even" : "odd";
        var asxcode = 'CMW';
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td align=left><font color='#967b3c'>"  + h.date +"</font><br/><b>"+ h.headline + "  "+ "</b><a target='_blank' href='http://clients.weblink.com.au/clients/cromwell/article.asp?asx="+ asxcode +"&view=" + h.id + "'>More</a>"+ "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")

 
    document.write("<table class ='pageTable'  border=0>")
    document.write("<tr>")
    
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	 document.write("   <font size='+0'><b>1</b></font>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(2);'>2</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(3);'>3</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(4);'>4</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(5);'>5</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(6);'>6</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(7);'>7</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(8);'>8</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(9);'>9</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(10);'>10</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(11);'>11</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(12);'>12</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(13);'>13</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(14);'>14</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(15);'>15</a>")
	
    document.write("                 </font>")
	document.write("			</td>")

	 
	document.write("<td>")
	document.write("				<a href='javascript:goP(2);'><img src='http://clients.weblink.com.au/clients/cromwell/next_icon.gif' alt='Next page' border='0' /></a>")
	document.write("			</td>")
	
	document.write("		</tr>")
    document.write("</table>")
 
}
