﻿// DATE, DAY, XX MONTH YEAR //
// hide from non-scriptable //
function stringMonth()
{
        this[0]  = "Ianuali";
        this[1]  = "Pepeluali";
        this[2]  = "Malaki";
        this[3]  = "'Apelia";
        this[4]  = "Mei";
        this[5]  = "Iune";
        this[6]  = "Iulai";
        this[7]  = "'Aukake";
        this[8]  = "Kepakemapa";
        this[9]  = "'Okakopa";
        this[10] = "Nowemapa";
        this[11] = "Kekemapa";
}

function stringDay()
{
        this[0] = "Lapule"; 
        this[1] = "Po`akahi"; 
        this[2] = "Po`alua"; 
        this[3] = "Po`akolu"; 
        this[4] = "Po`aha"; 
        this[5] = "Po`alima"; 
        this[6] = "Po`aono"; 
}

ALLMONTHS = new stringMonth;
ALLDAYS = new stringDay;

function writeDate()
{
        today = new Date;
        var year = today.getFullYear();
        if (year >= 96)
        {
                var yearstr = year;
        }
        else
        {
                var yearstr = year;
        }

        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());
}
//-->

// in body   <script type="text/javascript">writeDate()</script>    //

