<html>
<head>
<script>
var mydate = new Date
var mytime = mydate.getHours()
if(mytime<12)
{
alert("Good Morning!")
}
else
{
if(mytime<17)
{
alert("Good afternoon")
}
else
alert("Good Night")
}
</script>
</head>
</html>