

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('Jul 01, 2009','9:48','CMW','Purchase of Energex Building Expected to Settle in July','4211656','','','');
headlines[1] = new headline('Jun 25, 2009','10:01','CMW','Change of Director`s Interest Notice','4211453','','','');
headlines[2] = new headline('Jun 19, 2009','16:17','CMW','June Quarter 2009 Distribution and FY09 Operating Earnings','4211333','','','');
headlines[3] = new headline('Jun 09, 2009','9:22','CMW','Change of Director`s Interest Notice','4211031','','','');
headlines[4] = new headline('May 15, 2009','11:52','CMW','Cromwell Group - Quarterly Update to 31 March 2009','4210374','','','');
headlines[5] = new headline('May 15, 2009','11:51','CMW','Distribution for the Qtr ended 31 March 2009 - Tax Component','4210373','','','');
headlines[6] = new headline('Apr 22, 2009','10:05','CMW','Cromwell Completes CMBS Repayment','4209630','','','');
headlines[7] = new headline('Mar 31, 2009','17:30','CMW','March Quarter 2009 Distribution','4209064','','','');
headlines[8] = new headline('Mar 19, 2009','11:55','CMW','Notification of Stapled Security Cancellation','4208779','','','');
headlines[9] = new headline('Mar 11, 2009','8:27','CMW','Change of Director`s Interest Notice','4208560','','','');
headlines[10] = new headline('Mar 10, 2009','18:29','CMW','Change of Director`s Interest Notice','4208559','','','');
headlines[11] = new headline('Mar 10, 2009','18:27','CMW','Change of Director`s Interest Notice','4208558','','','');
headlines[12] = new headline('Mar 03, 2009','8:53','CMW','Change of Director`s Interest Notice','4208332','','','');
headlines[13] = new headline('Feb 25, 2009','18:24','CMW','Cromwell Diversified Property Trust Half-Year 2009','4208129','','','');
headlines[14] = new headline('Feb 25, 2009','13:46','CMW','FKP: Energex Building, Newstead','4208109','','','');
headlines[15] = new headline('Feb 25, 2009','13:40','CMW','Cromwell Offers Stake in Landmark Brisbane Property','4208106','','','');
headlines[16] = new headline('Feb 24, 2009','19:07','CMW','Change of Director`s Interest Notice','4208079','','','');
headlines[17] = new headline('Feb 24, 2009','17:45','CMW','Change of Director`s Interest Notice','4208077','','','');
headlines[18] = new headline('Feb 20, 2009','17:15','CMW','Cromwell Quarterly Update and Investor Roadshow Invitation','4207980','','','');
headlines[19] = new headline('Feb 18, 2009','18:26','CMW','Cromwell Property Portfolio','4207908','','','');
headlines[20] = new headline('Feb 18, 2009','16:32','CMW','Cromwell Group Presentation Half Year Results','4207901','','','');
headlines[21] = new headline('Feb 18, 2009','16:16','CMW','Half Year Accounts','4207899','','','');
headlines[22] = new headline('Feb 18, 2009','16:16','CMW','Cromwell Half Year Results Announcement','4207898','','','');
headlines[23] = new headline('Feb 18, 2009','16:13','CMW','Appendix 4D','4207897','','','');
headlines[24] = new headline('Feb 13, 2009','10:29','CMW','Distribution for the Qtr ended 31 Dec 2008 - Tax Components','4207748','','','');
headlines[25] = new headline('Feb 12, 2009','12:05','CMW','Half Year Results Announcement Date','4207721','','','');
headlines[26] = new headline('Jan 23, 2009','15:57','CMW','Cromwell Group Announces Extension of On-Market Buy-Back','4207229','','','');
headlines[27] = new headline('Jan 23, 2009','15:57','CMW','Changes relating to buy-back - Appendix 3D','4207230','','','');
headlines[28] = new headline('Jan 13, 2009','15:17','CMW','Cromwell puts unlisted CPF on hold','4207057','','','');
headlines[29] = new headline('Dec 18, 2008','9:18','CMW','December Quarter 2008 Distribution','4206674','','','');


///// 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>")
 
}
