window.document.writeln("
");
window.document.writeln(div);
window.document.writeln("
");
window.document.writeln("");
window.document.writeln("");
window.document.writeln("| ");
window.document.writeln("(");
window.document.writeln(upd);
window.document.writeln(")");
window.document.writeln(" | ");
window.document.writeln("
");
window.document.writeln("
");
function show_table(info)
{
window.document.writeln("");
for(var row=0; row")
for (var col=0; col< info[row].length; col++)
{
window.document.writeln("| "+info[row][col]+" | ");
}
window.document.writeln("");
}
window.document.writeln("
");
}
show_table(lg);
window.document.writeln("| ");
window.document.writeln("Tables compiled by John Fox");
window.document.writeln(" |
");
window.document.writeln("Individual Averages
");
show_table(pl);
window.document.writeln("Results
");
var weekComm=new Array
("14-Sep","21-Sep","28-Sep","05-Oct","12-Oct","19-Oct",
"26-Oct","02-Nov","09-Nov","16-Nov","23-Nov","30-Nov",
"07-Dec","14-Dec","04-Jan","11-Jan","18-Jan","25-Jan","01-Feb",
"08-Feb","15-Feb","22-Feb","01-Mar","08-Mar","15-Mar","22-Mar",
"29-Mar","05-Apr");
function show_result_table(info)
{
window.document.writeln("");
for(var row=0; row");
var weekStr = info[row][0];
var weekNum = parseInt(weekStr, 10) - 1;
var weekDate = "";
window.document.writeln("| "+info[row][0]);
if (weekNum < weekComm.length)
{
weekDate = weekComm[weekNum];
window.document.writeln(" w/c ");
window.document.writeln(weekDate);
}
window.document.writeln(" | ");
var dayStart = weekStr.indexOf("[") + 1;
var dayEnd = weekStr.indexOf("]");
var dayStr = weekStr.substring(dayStart, dayEnd);
for (var col=1; col<5; col+=2)
{
window.document.writeln(""+info[row][col]+" | "+info[row][col+1]+" | ");
}
window.document.writeln("");
if (info[row].length > 5)
{
window.document.writeln("")
window.document.writeln("| "+info[row][5]+" | ");
for (var col=6; col<10; col+=2)
{
window.document.writeln(""+info[row][col]+" | "+info[row][col+1]+" | ");
}
window.document.writeln("
");
}
if (info[row].length > 10)
{
window.document.writeln("")
window.document.writeln("| "+info[row][10]+" | ");
for (var col=11; col<15; col+=2)
{
window.document.writeln(""+info[row][col]+" | "+info[row][col+1]+" | ");
}
window.document.writeln("
");
}
if (info[row].length > 15)
{
window.document.writeln("")
window.document.writeln("| "+info[row][15]+" | ");
for (var col=16; col<20; col+=2)
{
window.document.writeln(""+info[row][col]+" | "+info[row][col+1]+" | ");
}
window.document.writeln("
");
}
}
window.document.writeln("
");
}
show_result_table(res);
window.document.writeln("");
window.document.writeln("
");