// JavaScript Document

<!-- Javascript to alternate between "Good morning / afternoon / evening" dependant on time of day -->

function process(){}

  today = new Date()

  if(today.getMinutes() < 10) {
    pad = "0"}
  else
    pad = "";
  
  if((today.getHours() < 12) && (today.getHours() >= 0))
  {  document.write("Good morning")}

  if((today.getHours() >= 12) && (today.getHours() < 18))
  {  document.write("Good afternoon")}

  if((today.getHours() >= 18) && (today.getHours() <= 23))
  {  document.write("Good evening")};
  
