function displaydatetime() {
if (!document.layers && !document.getElementById)	return;
  var today;
  var timeLocal;
  var timeUTC;
  today = new Date();
  timeLocal = today.toLocaleString() + " " + "Local"; //Convert to current locale.
  timeUTC = today.toUTCString(); //Convert to UTC.
  if (document.layers) {
    document.layers.clockLocal.document.write(timeLocal);
    document.layers.clockLocal.document.close();
    document.layers.clockUTC.document.write(timeUTC);
    document.layers.clockUTC.document.close();}
  else if (document.getElementById) {
  clockLocal.innerHTML = timeLocal;
  clockUTC.innerHTML = timeUTC;}
  setTimeout("displaydatetime()", 500)
}
  window.onload = displaydatetime;
