// global variables

var pause=0
var position=0;
var timeout;

function laufschrift()
{
  // variables declaration
  var i,k,msg=document.ticker.message.value;
  
  // increase msg
  k=(66/msg.length)+1;
  for(i=0;i<=k;i++) msg+=" "+msg;
  
  // show it to the window
  document.ticker.laufschrift.value=msg.substring(position,position+70);
  
  // set new position
  if(position++==document.ticker.message.value.length) position=0;
  
  // repeat at entered speed 
  timeout=setTimeout("laufschrift()",1000/document.ticker.speed.value); 
}
