// JavaScript Document

today=new Date(); // Initialize Date in raw form
date=today.getDate(); // Get the numerical date
year=today.getYear(); // Get the year
if (year<1900) year=(year+1900)
else if (year>2000) year=year


hours = today.getHours()
minutes = today.getMinutes()
if (minutes < 10)
minutes = "0" + minutes


day = today.getDay(); // Get the day in number form (0,1,2,3,etc.)
month=today.getMonth()+1; // Get the month

// Make day number value correspond to actual day name
var dayName=new Array(7)
dayName[0]="Sun";
dayName[1]="Mon";
dayName[2]="Tue";
dayName[3]="Wed";
dayName[4]="Thu";
dayName[5]="Fri";
dayName[6]="Sat";

// Add suffix to date (1st, 2nd, 4th, etc.)
if (date==1) suffix=("st");
else if (date==2) suffix=("nd");
else if (date==3) suffix=("rd");
else if (date==21) suffix=("st");
else if (date==22) suffix=("nd");
else if (date==23) suffix=("rd");
else if (date==31) suffix=("st");
else suffix=("th");

// Make month number correspond to month name
if (month==1) monthName=("Jan");
else if (month==2) monthName=("Feb");
else if (month==3) monthName=("Mar");
else if (month==4) monthName=("Apr");
else if (month==5) monthName=("May");
else if (month==6) monthName=("Jun");
else if (month==7) monthName=("Jul");
else if (month==8) monthName=("Aug");
else if (month==9) monthName=("Sept");
else if (month==10) monthName=("Oct");
else if (month==11) monthName=("Nov");
else monthName=("Dec");