/* Desktop Date Function Written By Joe McCormack.  Copyright 2005.  All Rights Reserved. www.gamephasma.com */
function cute_stamp() {
var d_formatted = ""; var insignia = "AM";
var thedate = new Date();
var camper = thedate.toString();
var dice = new Array();	dice = camper.split(' ');
var numeric_day = dice[2];
var thehours = thedate.getHours();
var themins = thedate.getMinutes();
var thesecs = thedate.getSeconds();
var themonth = thedate.getMonth();
var theday = thedate.getDay();
var theyear = thedate.getYear();
var montharray = new Array(); var dayarray = new Array();
montharray[0] = "Jan"; montharray[1] = "Feb"; montharray[2] = "Mar"; montharray[3] = "Apr"; montharray[4] = "May";
montharray[5] = "Jun"; montharray[6] = "Jul"; montharray[7] = "Aug"; montharray[8] = "Sep"; montharray[9] = "Oct";
montharray[10] = "Nov"; montharray[11] = "Dec";
dayarray[0] = "Sun"; dayarray[1] = "Mon"; dayarray[2] = "Tue"; dayarray[3] = "Wed"; dayarray[4] = "Thu"; dayarray[5] = "Fri"; dayarray[6] = "Sat";
d_formatted = dayarray[theday];
d_formatted = d_formatted + " " + montharray[themonth];
d_formatted = d_formatted + " " + numeric_day;
if (thehours > 12) { thehours = thehours - 12; insignia = "PM"; }
if (themins < 10) { themins = "0" + themins; }
d_formatted = d_formatted + " " + thehours + ":" + themins + " " + insignia;
thespot.innerHTML = d_formatted;
}