';
content += '';
content += '';
j = weekStart;
for (i = 0; i < 7; i++) {
content += '';
content += daysOfWeek[j];
content += ' | ';
j++;
if (j > 6) {
j = 0;
}
}
content += ' ';
var tdate = new Date(date.getFullYear(), date.getMonth(), 1);
var day = tdate.getDay();
day = day - weekStart;
var daymilli = 1000 * 60 * 60 * 24;
tdate = tdate.getTime() - (day * daymilli) + (daymilli / 2);
tdate = new Date(tdate);
for (j = 0; j < 6; j++) {
content += '';
for (i = 0; i < 7; i++) {
content += '';
content += tdate.getDate();
content += ' | ';
var datemilli = tdate.getTime() + daymilli;
tdate = new Date(datemilli);
}
content += ' ';
}
content += ' ';
content += ' |
';
content += '