var crm = dt.getMonth();
var sdt = new Date(dt.getFullYear(), crm, 1, 9, 1, 1);
var day = sdt.getDay();
if (day != 1) sdt.setDate((day == 0) ? -5 : -(day - 2));
var cl = 0, tr = null, td, nmn,
secoffs = 24 * 60 * 60 * 1000,
vof = sdt.valueOf();
for (var i = 0; i < 42; i++){
if (!cl){
tr = pr._crEl('tr');
pr._addChild(bd, tr);
}
var ndt = new Date(vof + (secoffs * i));
td = pr._crEl('td');
pr._addChild(tr, td);
td.innerText = ndt.getDate();
nmn = ndt.getMonth();
if (nmn != crm) pr._setAttrs(td, { "class": "wch-cal-ncm", 'data-month': nmn, 'data-year': ndt.getFullYear() });
if (++cl > 6) cl = 0;
}