

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('01.07.2009','16:14','AUU','Dividend Details','2555805','','','');
headlines[1] = new headline('01.07.2009','16:13','AUU','Extension of Convening Period','2555804','','','');
headlines[2] = new headline('07.05.2009','10:20','AUU','Appointment of Voluntary Administrator','2549849','','','');
headlines[3] = new headline('06.05.2009','9:48','AUU','Suspension from Official Quotation','2549655','','','');
headlines[4] = new headline('04.05.2009','10:26','AUU','Trading Halt Request','2549375','','','');
headlines[5] = new headline('04.05.2009','10:03','AUU','Trading Halt','2549368','','','');
headlines[6] = new headline('21.04.2009','12:55','AUU','Appendix 3Z - Final Director`s Interest Notice','2547934','','','');
headlines[7] = new headline('14.04.2009','18:40','AUU','Director Appointment/Resignation','2547284','','','');
headlines[8] = new headline('20.03.2009','17:52','AUU','Dividend Details','2544843','','','');
headlines[9] = new headline('27.02.2009','17:18','AUU','Interim Financial Report','2542164','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/Austcorp/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 renderHeadlinesList()
{
 document.write("<table class='wlNewsTable'>");
  document.write(" <thead>");
  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";

   if (h.symbol == '') continue;
//    document.write(" <tr class='" + cls + "'>");
    document.write(" <tr>");
    document.write("  <td>");
    document.write(h.date);
    document.write("  </td>");
//    document.write("  <td width=10>");
//    document.write("      ");
//    document.write("  </td>");
    document.write("  <td>");
    document.write("  <a target='_blank' href='http://clients.weblink.com.au/clients/Austcorp/article.asp?view=" + h.id + "'>");
    document.write('<img src ="/files/arrow-right-blue.gif" align="bottom"  alt=">"> ');
    document.write(h.headline);
    document.write("</a>");
    document.write("  </td>");
    document.write(" </tr>");
    document.write(" <tr>");
    document.write("  <td>");
    document.write("      ");
    document.write("  </td>");
    document.write("  <td>");
    document.write("");
    document.write("  </td>");
//    document.write("  <td>");
//    document.write('  <img src ="/files/arrow-right-blue.gif" align="bottom"  alt=">">');
//    document.write("  <a target='_blank' href='http://clients.weblink.com.au/clients/Austcorp/article.asp?view=" + h.id + "'>");
    document.write("  </td>");
    document.write(" </tr>");
   }
   document.write(" </tbody>")
 document.write("</table>")
}


