function DisplayReport() {
	var rows = contentList.length;
	
	if (rowCount != '-1') {
		if (rows > rowCount) {
			rows = rowCount;
		}
	}
	 	
	document.writeln('<table cellspacing="1" cellpadding="1" width=' + reportWidth + ' border="0" bgcolor=' + borderColor + '>');
	document.writeln('	<tr>');
	document.writeln('		<TD bgcolor=' + tbColor + '>');
	document.writeln('			<TABLE style="FONT-SIZE: x-small" cellSpacing="1" cellPadding="1" width="100%" border="0">');
	document.writeln('				<TR>');
	document.writeln('					<TD width="2%"></TD>');
	document.writeln('					<TD style="FONT-WEIGHT: bold"><span style="color:' + tfColor + ';">' + reportTitle + '</span></TD>');
	document.writeln('					<TD width="2%"><a href="' + helpLink + '" target="HelpWindow">?</a></TD>');
	document.writeln('					<TD width="2%"></TD>');
	document.writeln('				</TR>');
	document.writeln('			</TABLE>');
	document.writeln('		</TD>');
	document.writeln('	</tr>');
	
	document.writeln('	<tr>');
	document.writeln('		<TD bgcolor=' + cbColor + '>');
	document.writeln('			<TABLE style="FONT-SIZE: x-small;Color:' + cfColor + '" cellSpacing="1" cellPadding="1" width="100%" border="0">');
	
	if (showHeader == 'true') {
		document.writeln('			<TR style="FONT-WEIGHT: bold">');
		for (i = 0; i < headerList.length; i++) {
			document.writeln('			<td>' + headerList[i] + '</td>');
		}
		document.writeln('			</TR>');
	}
	
	for (i = 0;	i < rows; i++) {
		
		document.writeln('			<TR>');
		if (ordered == 'true') {
			document.writeln('			<td>' + (i + 1) + '.</td>');
		}
		
		var colIndex = 0;
		var j = 0;
		var k = 0;
		while (j < contentList[i].length) {
			if (contentList[i][j] == '-1') {
				// indicating nothing for this column on this row
				document.writeln('		<td></td>');
			} else {
				k = j + 1;
			
				if (contentList[i][k] == colIndex) {
					// this column has url
					k++;
					document.writeln('	<td><a href=' + contentList[i][k] + ' target=_blank>' + contentList[i][j] + '</a></td>');
					j = k;
				} else {
					// this column has no url
					document.writeln('	<td>' + contentList[i][j] + '</td>');
				}
			}
			j++;
			colIndex++;
		}
		
		document.writeln('			</TR>');
	}

	document.writeln('			</TABLE>');
	document.writeln('		</TD>');
	document.writeln('	</tr>');
	
	// the avert logo image
	document.writeln('<TR>');
	document.writeln('<TD bgcolor="white" align="right" valign="top">');
	document.writeln('<IMG src="' + avertLogo + '" alt="Data Provided by AVERT" height="12" width="60">');
	document.writeln('</TD>');
	document.writeln('</TR>');


	document.writeln('</table>');

}

