// This script came from Uncle Jim's Web Designs

// www.jdstiles.com



function montharrayy(m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11)



{



   this[0] = m0;

   this[1] = m1;

   this[2] = m2;

   this[3] = m3;

   this[4] = m4;

   this[5] = m5;

   this[6] = m6;

   this[7] = m7;

   this[8] = m8;

   this[9] = m9;

   this[10] = m10;

   this[11] = m11;

}



function MakeArrayy(n) {this.length = n; return this;}

  var Days = new MakeArrayy(7);

  var Months = new MakeArrayy(12);

  Days[1]="Ch&#7911; nh&#7853;t,"; Days[2]="Th&#7913; hai,"; Days[3]="Th&#7913; ba,";   Days[4]="Th&#7913; t&#432;,";

  Days[5]="Th&#7913; n&#259;m,"; Days[6]="Th&#7913; s&#225;u,"; Days[7]="Th&#7913; b&#7843;y,";

  Months[1]="/ 01 /"; Months[2]="/ 02 /"; Months[3]="/ 03 /";   Months[4]="/ 04 /"; 

  Months[5]="/ 05 /"; Months[6]="/ 06 /"; Months[7]="/ 07 /";   Months[8]="/ 08 /"; 

  Months[9]="/ 09 /"; Months[10]="/ 10 /"; Months[11]="/ 11 /"; 

  Months[12]="/ 12 /";

  function getNiceDatee(theDate) {

  return Days[theDate.getDay()+1] + " " + theDate.getDate() + " " +

  Months[theDate.getMonth()+1] + " " + theDate.getYear(); }

function calendars()

{

   today = new Date();

   var thisDay;

   var monthNames = "JanFebMarAprMayJunJulAugSepOctNovDec";

   var monthNames2 = " 1 2 3 4 5 6 7 8 9101112";

   var monthDays = new montharrayy(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);

   year = today.getYear() + 1900;

   thisDay = today.getDate();

   if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0))

      monthDays[1] = 29;



   nDays = monthDays[today.getMonth()];

   firstDay = today;

   firstDay.setDate(1);

   var lastMod = new Date();

   startDay = firstDay.getDay();

   document.write("<TABLE BORDER=\"0\" CELLPADDING=\"0\" cellspacing=\"0\"  width=\"100%\">");

   document.write("<TR><TH><FONT COLOR=\"#990000\" SIZE=\"1pt\">CN<TH><FONT COLOR=\"#990000\" SIZE=\"1pt\">T2<TH><FONT COLOR=\"#990000\" SIZE=\"1pt\">T3<TH><FONT COLOR=\"#990000\" SIZE=\"1pt\">T4<TH><FONT COLOR=\"#990000\" SIZE=\"1pt\">T5<TH><FONT COLOR=\"#990000\" SIZE=\"1pt\">T6<TH><FONT COLOR=\"#990000\" SIZE=\"1pt\">T7</FONT>");

   document.write("<TR>");

   column = 0;

   for (t=0; t<startDay; t++)

   {

      document.write("<TD>");

      document.write("<CENTER>");

      document.write(" ");

      column++;

   }



   for (t=1; t<=nDays; t++)

   {



      document.write("<TD>");

      document.write("<FONT COLOR=\"#990000\" SIZE=\"2pt\">");

      if (column == 0) 

         document.write("<FONT COLOR=\"#FF0000\" SIZE=\"2pt\">");



      if (column == 6) 

         document.write("<FONT COLOR=\"#FF0000\" SIZE=\"2pt\">");               





      if (t == thisDay)

         document.write("<FONT COLOR=\"#0000FF\" SIZE=\"2pt\"><blink>");

        document.write("<CENTER>");

        document.write(t);

        document.write("</CENTER>");



      if (t == thisDay)

         document.write("</blink>")



      if (column == 7||column == 0||t == thisDay) 

         document.write("</FONT>")



      column++;



      if (column == 7)

      {



         document.write("<TR>");

         column = 0;



      }

   }

   document.write("<TR><TH COLSPAN=7 style=\"background-color: #006600\" height=\"25\" valign=\"middle\"><FONT COLOR=\"#FFFF00\" SIZE=\"2pt\">");

   document.write(getNiceDatee(lastMod));

   document.write("</TABLE>");

}

