<html>
<body>
<script>
var currentTime = new Date();
var hour = currentTime.getHours();
if (hour < 12) {
document.write ("Good Morning!");
}
else
if (hour < 18) {
document.write ("Good Afternoon!");
}
else {
document.write ("Good Evening!");
}
</script>
</body></html>