﻿function Container(param){this.member=param;}
function renderPage()
{if(xmlhttp.readyState==4){if(xmlhttp.status==200)
{var allRecords=xmlhttp.responseText.split('\x0A');var output;var record;for(var idx=0;idx<allRecords.length;idx++){record=allRecords[idx].split('\t');if(idx==0){output=drawInfoTable(record)+'<p>Posted Top Drivers Results are '+record[12]+'official. Click on your name for more details about your runs.</p>\x0A';Container("");}else if(idx==1){output+='<div style="text-align:left;">\x0A'+'<table class="listTable" border="0" cellspacing="1" cellpadding="2">\x0A'+'<td class="listHeader" align=center width="140">'+record[0]+'</td>\x0A'+'<td class="listHeader" align=center width="65">'+record[1]+'</td>\x0A'+'<td class="listHeader" align=center width="50">'+record[2]+'</td>\x0A'+'<td class="listHeader" align=center width="165">'+record[3]+'</td>\x0A'+'<td class="listHeader" align=center width="30">'+record[4]+'</td>\x0A'+'</tr>';}else if(idx<(allRecords.length-1)){output+='<tr>\x0A'+'<td align=left width="140">'+record[0]+'</td>\x0A'+'<td align=left width="65">'+record[1]+'</td>\x0A'+'<td align=left width="50">'+record[2]+'</td>\x0A'+'<td style="text-decoration:underline" onmouseover="(makeCursor(this))"; onMouseDown="ShowPersonalNew(&#39;'+record[4]+'&#39;)" align="left" width="165">'+
record[3]+'</td>\x0A'+'<td align=left width="30">'+record[4]+'</td>\x0A'+'</tr>\x0A';}}
document.getElementById('resultsPage').innerHTML=output;}else
output=drawErrorBox("Top Drivers data not available.");document.getElementById('resultsPage').innerHTML=output;}}
