function displayDate()
{
today = new Date();
strWeekday = today.getDay();
strToday = today.getDate();
strMonth = today.getMonth();
strYear = today.getYear();

// Correct Year for year 2000+
if (strYear < 1000)
strYear += 1900;

// Get Month
switch(strMonth)
{
case 0:
strMonth = "1"
break;
case 1:
strMonth = "2"
break;
case 2:
strMonth = "3"
break;
case 3:
strMonth = "4"
break;
case 4:
strMonth = "5"
break;
case 5:
strMonth = "6"
break;
case 6:
strMonth = "7"
break;
case 7:
strMonth = "8"
break;
case 8:
strMonth = "9"
break;
case 9:
strMonth = "10"
break;
case 10:
strMonth = "11"
break;
case 11:
strMonth = "12"
break;
}

var myDays= 
["Sun","Mon","Tues","Wed","Thurs","Fri","Sat","Sun"]
thisDay=today.getDay()

thisDay=myDays[thisDay]

document.write (thisDay+ ".&nbsp;&nbsp;&nbsp;" + strMonth + "/" + strToday + "/" + (strYear+"").substring(2,4));
}
function displayTime()
{
var	Stamp = new Date();
var Hours;
var Mins;
var Time;
Hours = Stamp.getHours();
if (Hours >= 12) {
Time = " PM";
}
else {
Time = " AM";
}

if (Hours > 12) {
Hours -= 12;
}

if (Hours == 0) {
Hours = 12;
}

Mins = Stamp.getMinutes();

if (Mins < 10) {
Mins = "0" + Mins;
}

document.write(Hours + ":" + Mins + Time + '');
}
