function tick()
  {
  var hours, minutes, seconds;
  var intHours, intMinutes, intSeconds;
  var dayofweek, day, month, year;
  var intDayOfWeek, intDay, intMonth, intYear;
  var today;
  today = new Date();
  intDayOfWeek = today.getDay();
  intDay = today.getDate();
  intMonth = today.getMonth();
  intYear = today.getYear();

  intHours = today.getHours();
  intMinutes = today.getMinutes();
  intSeconds = today.getSeconds();
  if (intDayOfWeek == 0) {dayofweek = "Sunday";}
  if (intDayOfWeek == 1) {dayofweek = "Monday";}
  if (intDayOfWeek == 2) {dayofweek = "Tuesday";}
  if (intDayOfWeek == 3) {dayofweek = "Wednesday";}
  if (intDayOfWeek == 4) {dayofweek = "Thursday";}
  if (intDayOfWeek == 5) {dayofweek = "Friday";}
  if (intDayOfWeek == 6) {dayofweek = "Saturday";}
  day = intDay+".";
  if (intMonth == 0) {month = "January";}
  if (intMonth == 1) {month = "February";}
  if (intMonth == 2) {month = "March";}
  if (intMonth == 3) {month = "April";}
  if (intMonth == 4) {month = "May";}
  if (intMonth == 5) {month = "June";}
  if (intMonth == 6) {month = "July";}
  if (intMonth == 7) {month = "August";}
  if (intMonth == 8) {month = "September";}
  if (intMonth == 9) {month = "October";}
  if (intMonth == 10) {month = "November";}
  if (intMonth == 11) {month = "December";}
  dateString = dayofweek+"  "+day+" "+month+" "+intYear;

  hours =  intHours+":";
  if (intMinutes < 10) {minutes = "0"+intMinutes+":";}
  else {minutes = intMinutes+":";}
  if (intSeconds < 10) {seconds = "0"+intSeconds+" ";}
  else {seconds = intSeconds+" ";}
  timeString = hours+minutes+seconds+"";
  Clock.innerHTML=dateString+" <br>NTP server Time:"+timeString;

  window.setTimeout("tick();", 1000);
  }
window.onload = tick;

