//Welcome message and date writter
//Copyright 2002 Mark Vaccari

function getmessage(q) {
var sdate
var sday
var smonth
var syear
var shour
var sdayofweek
var amonths = new Array("January","February","March","April","May","June","July","August","September","October","November","December")
var adays = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var swelcome
var sdaywelcome

sdate = new Date()
sday = sdate.getDate()
sdayofweek = sdate.getDay()
smonth = sdate.getMonth()
syear = sdate.getYear()
shour = sdate.getHours()

sdaywelcome = adays[sdayofweek] + ", " + amonths[smonth] + " " + sday + ", " + syear

if (shour < 12) {
swelcome = "Good Morning! Today is:"
}
if (shour > 11 && shour < 17) {
swelcome = "Good Afternoon! Today is:"
}
if (shour > 16) {
swelcome = "Good Evening! Today is:"
}

if (q == "1") {
document.write(swelcome)
}
if (q == "2") {
document.write(sdaywelcome)
}
}

function imgon(imgid) {
document.images[imgid].src = eval(imgid + "_on.src")
}

function imgoff(imgid) {
document.images[imgid].src = eval(imgid + "_off.src")
}
