// display current time at author location
// =======================================
// copyright Stephen Chapman, Felgall Pty Ltd, 11 July 2001, 25th November 2004
// http://www.felgall.com/ and http://javascript.about.com/
// permission is given to use this script
// provided that all comment lines in the script are retained

function myTime() {
document.writeln('<span id="time">' + dispLocalDate() + '<\/span>');
}


function dispLocalDate(){
var dayname = new Array ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday');
var monthname = new Array ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
var now = new Date;
var dow = now.getDay();
var mow = now.getMonth();
var txt = dayname[dow] + ' ' + now.getDate() + ' ' + monthname[mow] + ' ' + now.getFullYear();
return (txt);
}

