// Important Note:  To open link in separate window have "target" in <a> point to a name that does not exist.
//                  If target does not exist then link will open in same window you're using.

var intReferences = maxReferences ;

document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0'>");

for(var count = 0; count < intReferences; count++){
  document.write("<tr>");
  document.write("<td width='50%' valign='top' style='background-color:#0C0C0C; border-top:1px solid #000000; border-right:1px solid #000000; font-family:arial; font-weight:bold; font-size:12px; color:#808080;'>");
  document.write("<br>");
  document.write("&nbsp " + arrayReferences[count][0] + "<br>");
  document.write("<font style='background-color:#0C0C0C; solid #000000; font-family:arial; font-weight:bold; font-size:12px; color:#1449A8;'>");
  document.write("&nbsp " + arrayReferences[count][1] + "</font>");
  if (arrayReferences[count][2] != ""){
    document.write("&nbsp <a href='http://" + arrayReferences[count][2] + "' target='window2' style='color: #808080;'>(website)</a>");
  }
  document.write("<br>");
  document.write("</td>");
  document.write("<td width='50%' align='center' style='background-color:#141414; border-top:1px solid #000000; font-family:times; font-weight:normal; font-size:12px; color:#AFAFAF;'>");
  document.write("<div style='width:95%;' align='left'>");
  document.write("<br>");
  document.write(arrayReferences[count][3] + "<br>");
  document.write(arrayReferences[count][4] + "<br>");
  document.write("&nbsp <br>");
  document.write("</div>");
  document.write("</td>");
  document.write("</tr>");
}

document.write("</table>");
