/* author: Linda Kipp */
/* Creation date: 30/01/02 */
document.write("<center><font size=+1>")
day = new Date()
hr = day.getHours()

if  ((hr == 23) || (hr == 0) || (hr == 1) || (hr == 2) || (hr == 3) || (hr == 4) || (hr == 5) || (hr == 6))
  document.write("Good Night! Welcome to my site!")

if ((hr == 7) || (hr == 8) || (hr == 9) || (hr == 10) || (hr == 11))
  document.write("Good Morning! Welcome to my site!")

if ((hr == 12) || (hr == 13) || (hr == 14) || (hr == 15) || (hr == 16)) 
  document.write("Good Afternoon! Welcome to my site!")

if ((hr == 17) || (hr == 18) || (hr == 19) || (hr == 20) || (hr == 21) || (hr == 22))
  document.write("Good Evening! Welcome to my site!") 
document.write("</font></center>")



function getTime() {
now = new Date();
y2k = new Date("Jan 15 2004 00:00:00");
days = (y2k - now) / 1000 / 60 / 60 / 24;
daysRound = Math.floor(days);
hours = (y2k - now) / 1000 / 60 / 60 - (24 * daysRound);
hoursRound = Math.floor(hours);
minutes = (y2k - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
minutesRound = Math.floor(minutes);
seconds = (y2k - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
secondsRound = Math.round(seconds);
sec = (secondsRound == 1) ? " second." : " seconds.";
min = (minutesRound == 1) ? " minute" : " minutes, ";
hr = (hoursRound == 1) ? " hour" : " hours, ";
dy = (daysRound == 1)  ? " day" : " days, "
document.timeForm.input1.value = "Time remaining: " + daysRound  + dy + hoursRound + hr +  minutesRound + min + secondsRound + sec;
newtime = window.setTimeout("getTime();", 1000);
}

function SetCookie(name)
{
cookidx++
today = new Date ()
expdate = new Date ()
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365))
expdate=expdate.toGMTString()
document.cookie="lastvisit="+escape(today)+"_"+name+"#"+cookidx+"; expires="+expdate+";"
}