| "); document.write(mnths.substring((mm -1) * 9, mm * 9)); document.write(" | "); document.write("T" + " P " + "M " + "C"); document.write(" | "); document.write(yy); document.write(" | ||||||
|---|---|---|---|---|---|---|---|---|
| SUN | " + "MON | TUE | WED | THU | FRI | SAT" +
"");
document.write("| ");
document.write("");
document.write(".");
col++;
}
}
for (i = 1 ; i < ndy + 7 ; i++){
document.write(" | ");;// green
if (col == 0 || col == 6){
document.write("");
} else {
document.write("");
}
if (i == dd)
document.write("");// todaydate
if (i > 0 && i < ndy + 1){
document.write("" + i + "");
if (i == ndy && col == 6){
i = 2 * ndy;
col = 5;
}
} else {
document.write("");
document.write(".");
if (col == 6){
i = 2 * ndy
col = 5;
}
}
col++;
if (col == 7){
document.write(" | |
"); } if (day == null || month == null || year == null || day <= 0 || month <= 0 || year < 1583 || month >12){ document.write(calendar()); } else { document.write(setCal(day, month, year)); }