
var months = ["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"];

function buildContentTable (contentArray) {

  var table = '<table  border=0 width="100%" cellpadding=1 cellspacing=0>';

  for (var i = 0; i < contentArray.length; i++) {
    table += '<tr><td width="2" class="contentdivider">' 
          +  '<IMG SRC="../../images/1x1.gif"></td><td>'
          +  months[contentArray[i][2].getMonth()] + "."
          +  contentArray[i][2].getDate() + "."
          +  contentArray[i][2].getFullYear() + "<BR>";

    // If a url is specified, use it.
    if (contentArray[i][1] != null) {
      table += '<a href="' + contentArray[i][1] + '">'
            +  contentArray[i][0] + '</a>';
    } else {
      table += contentArray[i][0];
    }

    table += '</td></tr>'
          +  '<tr><td class="contentdivider" colspan=2 height="1">'
          +  '<IMG SRC="../../images/1x1.gif"></td></tr>';
  }

  table += '</table>';

  document.write(table);
}


