// 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("<h3>Good morning, &amp; welcome to Darley Dale Surgery.</h3>")}

  if((today.getHours() >= 12) && (today.getHours() < 18))
  {  document.write("<h3>Good afternoon, &amp; welcome to Darley Dale Surgery.</h3>")}

  if((today.getHours() >= 18) && (today.getHours() <= 23))
  {  document.write("<h3>Good evening, &amp; welcome to Darley Dale Surgery.</h3>")};
  
