// JavaScript Document
function stringMonth()
{
        this[0]  = "January";
        this[1]  = "February";
        this[2]  = "March";
        this[3]  = "April";
        this[4]  = "May";
        this[5]  = "June";
        this[6]  = "July";
        this[7]  = "August";
        this[8]  = "September";
        this[9]  = "October";
        this[10] = "November";
        this[11] = "December";
}

function stringDay()
{
        this[0] = "Sunday"; 
        this[1] = "Monday"; 
        this[2] = "Tuesday"; 
        this[3] = "Wednesday"; 
        this[4] = "Thursday"; 
        this[5] = "Friday"; 
        this[6] = "Saturday"; 
}

ALLMONTHS = new stringMonth;
ALLDAYS = new stringDay;

function writeDate()
{
        today = new Date;
        var yearstr = today.getFullYear();

        document.write(ALLDAYS[(today.getDay())]+", "+ALLMONTHS[(today.getMonth())]+ " " + today.getDate() + ", " + yearstr);
}

function writeDay()
{
        today = new Date;
        document.write(ALLDAYS[(today.getDay())]);
}

function writeTime()
{
        today = new Date;
        document.write(today.getHours() + ":" + today.getMinutes());
}

writeDate();
