function printDate()
{            var months = new Array();
            months[0] = 'January';
            months[1] = 'February';
            months[2] = 'March';
            months[3] = 'April';
            months[4] = 'May';
            months[5] = 'June';
            months[6] = 'July';
            months[7] = 'August';
            months[8] = 'September';
            months[9] = 'October';
            months[10] = 'November';
            months[11] = 'December';

            var days = new Array();

            days[0] = 'Sunday';
            days[1] = 'Monday';
            days[2] = 'Tuesday';
            days[3] = 'Wednesday';
            days[4] = 'Thursday';
            days[5] = 'Friday';
            days[6] = 'Saturday';
          

            now = new Date();
            var dayname = days[now.getDay()];
            var monthname = months[now.getMonth()];
            var dayofmonth =now.getDate();
            var year = now.getYear();

// For time
var clockTime = getClockTime();

            if (year < 1000) year += 1900;
//   	    document.write("<font face='verdana' size='1'>")
            document.write( dayofmonth + ' ' + monthname + ' ' + year + ', ' + dayname + ' '  + clockTime);
//	    document.write("</font>")
}

function getClockTime()
{
   var now    = new Date();
   var hour   = now.getHours();
   var minute = now.getMinutes();
   var second = now.getSeconds();
   var ap = "AM";
   if (hour   > 11) { ap = "PM";             }
   if (hour   > 12) { hour = hour - 12;      }
   if (hour   == 0) { hour = 12;             }
   if (hour   < 10) { hour   = "0" + hour;   }
   if (minute < 10) { minute = "0" + minute; }
   if (second < 10) { second = "0" + second; }
   var timeString = hour +
                    ':' +
                    minute +
                    ':' +
                    second +
                    " " +
                    ap;
   return timeString;
} // function getClockTime()

