";
for(i=0;i<7;i++) {
var theDay = intMinithecal[j][i];
//theDay = theDay - 1;
if(theDay > 0 && theDay <= this.daysInMonth)
{
if(this.currmonth == this.month && this.curryear == this.year && this.currday == theDay)
{
theHtml += "| "+ theDay + " | ";
}
else
{
theHtml += ""+ theDay + " | ";
}
}
else if(theDay < 1)
{
theHtml += ""+(this.daysLastMonth+theDay)+" | ";
}
else if(theDay > this.daysInMonth)
{
theHtml += ""+(theDay-this.daysInMonth)+" | ";
}
}
theHtml += "";
}
theHtml += "