anchor.diff:              int.parse(row['date'].substring(0, 4)),
               int.parse(row['date'].substring(4, 6)),
               int.parse(row['date'].substring(6, 8)));
  -        String wdname;
  -        switch (dartDate2.weekday) {
  -          case DateTime.MONDAY:
  -            wdname = 'Monday';
  -            break;
  -          case DateTime.TUESDAY:
  -            wdname = 'Tuesday';
  -            break;
  -          case DateTime.WEDNESDAY:
  -            wdname = 'Wednesday';
  -            break;
  -          case DateTime.THURSDAY:
  -            wdname = 'Thursday';
  -            break;
  -          case DateTime.FRIDAY:
  -            wdname = 'Friday';
  -            break;
  -          case DateTime.SATURDAY:
  -            wdname = 'Saturday';
  -            break;
  -          case DateTime.SUNDAY:
  -            wdname = 'Sunday';
  -            break;
  -        }
  -        String mname;
  -        switch (dartDate2.month) {
  -          case DateTime.JANUARY:
  -            mname = 'January';
  -            break;
  -          case DateTime.FEBRUARY:
  -            mname = 'February';
  -            break;
  -          case DateTime.MARCH:
  -            mname = 'March';
  -            break;
  -          case DateTime.APRIL:
  -            mname = 'April';
  -            break;
  -          case DateTime.MAY:
  -            mname = 'May';
  -            break;
  -          case DateTime.JUNE:
  -            mname = 'June';
  -            break;
  -          case DateTime.JULY:
  -            mname = 'July';
  -            break;
  -          case DateTime.AUGUST:
  -            mname = 'August';
  -            break;
  -          case DateTime.SEPTEMBER:
  -            mname = 'September';
  -            break;
  -          case DateTime.OCTOBER:
  -            mname = 'October';
  -            break;
  -          case DateTime.NOVEMBER:
  -            mname = 'November';
  -            break;
  -          case DateTime.DECEMBER:
  -            mname = 'December';
  -            break;
  -        }
  +        String wdname = getwDName(dartDate2);
  +        String mname = getMName(dartDate2);
           output += "\t<TR>\n";
  -
           String inner =
               "<A HREF=\"javascript:calDay(${dartDate2.day})\">${wdname} ${mname} ${dartDate2.day.toString()}</A>";
           String atts = "VALIGN=\"TOP\" WIDTH=\"80\"";
  -
           output += "\t\t<TD ${atts} ${hClass}>${inner}</TD>\n";
  -
           output += "\t\t<TD>\n";
           output += listDay(dartDate2.day.toString(), true);
           output += "\t\t</TD>\n";
  -
           output += "\t</TR>\n";
         });
   
  
positive.code:     String mTable1 = ""; // calPrintMtable($date, $date);
      String mTable2 = ""; // calPrintMtable(msdbDayMadd($date), $date);
      String table = '''<TABLE class="calTopTable" BORDER=1>
    <TR>
    <TD VALIGN=TOP ROWSPAN=3>
   {{leftSide}}
    </TD>
    <TD>
   {{mList}}
    </TD>
    </TR>
    <TR>
    <TD>
    {{mTable1}}
    </TD>
    </TR>
    <TR>
    <TD>
    {{mTable2}}
    </TD>
    </TR>
    </TABLE></BODY></HTML>''';
  
      template = new Template(table, name: 'template-body.html');
      output = template.renderString({
  
negative.code: 
      output += s;
      output += "\t\t</TD>\n\t</TR>\n</TABLE>\n";
      return output;
    }
  
    String calMlist(String date)
    {
      String output = "";
      int numshow = 5;
      int numShowBefore = 2;
  
      /*list($y, $thisM, $thisDay) = msdbDayBreak($date);
  
      if ( $thisM - $numShowBefore + $numshow - 1 > 12 )
        $firstMthisYear = 12 - $numshow + 1;
      else if ( $thisM - $numShowBefore < 1 )
        $firstMthisYear = 1;
      else
        $firstMthisYear = $thisM - $numShowBefore ;
  
      echo "<TABLE class=calMlist BORDER=1 WIDTH=\"100%%\">\n";
  
      echo "\t<TR class=calMlistYear>\n";
  
      for($i=0;$i<3;$i++) {
        $ty = $y - 1 + $i ;
        echo "\t\t<TD><A HREF=\"javascript:calYear($ty)\">$ty</A></TD>\n";
      }
      echo "\t</TR>\n";
  
      for($m=0;$m<$numshow;$m++) {
        echo "\t<TR>\n";
  
        $prevYM = 12-$numshow+$m+1 ;
        printf("\t\t<TD %s>%s</TD>\n",
        monClass($y-1, $prevYM, $date),
        calMref($y-1, $prevYM, $date)
        );
  
        $thisYM = $firstMthisYear + $m ;
        printf("\t\t<TD %s>%s</TD>\n",
        monClass($y, $thisYM, $date),
        calMref($y, $thisYM, $date)
        );
  
        printf("\t\t<TD %s>%s</TD>\n",
        monClass($y+1, $m+1, $date),
        calMref($y+1, $m+1, $date)
        );
  
        echo "\t</TR>\n";
      }
  
      echo "</TABLE>\n";*/
      return output;
    }
  
  