function tick() {
  var today = new Date();
  var hour=today.getHours();
  var minutes=today.getMinutes();
		var seconds=today.getSeconds();
  var year=today.getYear() + 1900;
  var day=today.getDate();
  var month=today.getMonth()+1;
  var monthname;
  var netbeat  = (((hour*60)+minutes)/144*100);

  if (hour>23)  {hour=0;}
  netbeat = eval(netbeat.toString().charAt(0))*100 + eval(netbeat.toString().charAt(1))*10 +eval(netbeat.toString().charAt(2));

  if (seconds < 10) {seconds="0"+seconds;}
  if (minutes < 10) {minutes="0"+minutes;}
  if (hour < 10) {hour="0"+hour;}
  if (netbeat<100) {netbeat="0"+netbeat;}
  if (netbeat<10) {netbeat="0"+netbeat;}

  if (month==1) {monthname="Jan. ";}
  if (month==2) {monthname="Febr. ";}
  if (month==3) {monthname="M&auml;rz ";}
  if (month==4) {monthname="April ";}
  if (month==5) {monthname="Mai ";}
  if (month==6) {monthname="Juni ";}
  if (month==7) {monthname="Juli ";}
  if (month==8) {monthname="Aug. ";}
  if (month==9) {monthname="Sept. ";}
  if (month==10) {monthname="Okt. ";}
  if (month==11) {monthname="Nov. ";}
  if (month==12) {monthname="Dez. ";}

  dateString=day + ". " + monthname + year;

  if((seconds>-1)&&(seconds<21)){
  timeString="netbeat @"+netbeat;
    }

  if((seconds>20)&&(seconds<46)	){
  timeString=hour+":"+minutes+":"+seconds+ " Uhr";
    }

  if((seconds>45)&&(seconds<60)	){
  timeString="mircoweb.de";
    }

   clock.innerHTML = dateString+'<br>'+timeString;

  window.setTimeout("tick();", 100);
}

window.onload = tick;
