 // Copyright 1999 by Ray Stott - ver 2.0

 // OK to use on noncommercial sites as long as copyright is included

 // Script is available at http://www.crays.com/jsc

// hide from old browsers

function getGreeting(){

var curDateTime = new Date();

var curHour = curDateTime.getHours();

var greeting = "Greetings";

if (curHour >=6  && curHour <12)

greeting = "Good morning";

if (curHour >=12 && curHour <18)

greeting = "Good afternoon";

if (curHour >=18 && curHour <23)

greeting = "Good evening";

return greeting;

}

