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
("27-Sep","04-Oct","11-Oct","18-Oct","25-Oct",
"01-Nov","08-Nov","15-Nov","22-Nov","29-Nov",
"06-Dec","12-Dec","03-Jan","10-Jan","17-Jan","24-Jan","31-Jan",
"07-Feb","14-Feb","21-Feb","28-Feb","07-Mar","14-Mar","21-Mar");
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("
");