");
//Nested loop to print the table columns
for (iColumn=0; iColumn<7; iColumn++)
{
//Begin the table cell
if (iRow == 0)
{
sPrint = "";
sPrint += "";
document.write(sPrint);
}
else if (iRow == 1)
{
sPrint = " | ";
sPrint += "";
document.write(sPrint);
}
//Prepare the data to print in the cell
if (iRow == 0)
{
sPrint = dayarray[iColumn];
}
else if (iRow == 1)
{
iOffset = (iColumn-iToday)*24*60*60*1000;
dateColumn = new Date(dateNow.getTime()
+ iOffset);
sPrint = (dateColumn.getMonth()+1) + "/";
sPrint += dateColumn.getDate() + "/";
sPrint += dateColumn.getYear();
}
//If this is today, bold the data
if (iColumn == iToday)
sPrint = "" + sPrint + "";
//Write the data into the cell
document.write(sPrint);
//Close the table cell
document.write(" | ");
}
document.write("
");
}
document.write("