function MakeHeaderCalendar(aWeek, aMonth, iMonth, iYear, iStartYear, iEndYear, cField, 
                            sFont, sFontSize, sBgColor)
{
   var sHTML      = "";
   var sThisMonth = "";
   var sThisYear  = "";
   sFont     = sFont     == null ? "Arial"   : sFont; 
   sFontSize = sFontSize == null ? "2"       : sFontSize; 
   sBgColor  = sBgColor  == null ? "#FFFFCE" : sBgColor; 
   iMonth --
   sHTML += "<TABLE WIDTH=\"100%\" BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR="+sBgColor+">\n";
   sHTML += "<TR>\n";
   sHTML += "<TD ALIGN=\"CENTER\">\n";
   sHTML += "<FONT FACE='"+sFont+"' SIZE=" + sFontSize + "><B>\n";
   sHTML += "<SPAN onclick='getCalendar(document.getElementById(\"" + cField.name + "\")," +
            "date_Week," + 
            "date_Month," +
            (iMonth+1) + "," + (iYear-1) + ");' style='cursor:hand'>&nbsp;&lt;&lt;&nbsp;</SPAN>\n";
   sHTML += "<SPAN onclick='getCalendar(document.getElementById(\"" + cField.name + "\")," +
            "date_Week," + 
            "date_Month," +
            (iMonth<=0?12:iMonth) + "," + 
            (iMonth<=0?(iYear-1):iYear) + ");' style='cursor:hand'>&nbsp;&lt;&nbsp;</SPAN>\n";
   sHTML += "</B></FONT>\n";
   sHTML += "</TD>\n";
   sHTML += "<TD ALIGN=\"CENTER\" width='40%'>\n";
   sHTML += "<FONT FACE='"+sFont+"' SIZE=" + sFontSize + "><B>\n";
   sHTML += aMonth[iMonth]+"<BR>"+iYear+"\n";
   sHTML += "</B></FONT>\n";
   sHTML += "</TD>\n";
   sHTML += "<TD ALIGN=\"CENTER\">\n";
   sHTML += "<B><FONT FACE='"+sFont+"' SIZE=" + sFontSize + ">\n";
   sHTML += "<SPAN onclick='getCalendar(document.getElementById(\"" + cField.name + "\")," +
            "date_Week," +  
            "date_Month," +
             (iMonth==11?1:iMonth+2) + "," + 
             (iMonth==11?parseInt(iYear)+1:iYear) + ");' style='cursor:hand'>&nbsp;&gt;&nbsp;</SPAN>\n";
   sHTML += "<SPAN onclick='getCalendar(document.getElementById(\"" + cField.name + "\")," +
            "date_Week," +  
            "date_Month," +
            (iMonth+1) + "," + 
            (parseInt(iYear)+1) + 
            ");' style='cursor:hand'>&nbsp;&gt;&gt;&nbsp;</SPAN>\n";
   sHTML += "</B></FONT>\n";
   sHTML += "</TD>\n";
   sHTML += "</TR>\n";
   sHTML += "</TABLE>\n";
   return sHTML;
}