/*
** Used to change the font color for events happening this week
**     d  is the day of interest
**     hc is the color to use for highlighting (e.g., "#FF0000")
**     tc is the color to use for normal text  (e.g., "#000000")
*/
function colorThisWeek(d,hc,tc)
{
      var days, dmilli, emilli, end, tmilli, today;


      end   = new Date(d);
      today = new Date();

      emilli = end.getTime();
      tmilli = today.getTime();


      if (tmilli < emilli) {

           dmilli = emilli - tmilli;
           days = Math.floor(dmilli / (1000 * 60 * 60 * 24));


           if (days < 7) {

                document.writeln("<FONT COLOR=\""+hc+"\">");

           } else {

                document.writeln("<FONT COLOR=\""+tc+"\">");
           }

      } else {

           document.writeln("<FONT COLOR=\""+tc+"\">");
      }
}
