var max=0;

function textlist()
{
 max = textlist.arguments.length;
 for (i=0; i<max; i++)
 this[i]=textlist.arguments[i];
}

tl=new textlist
(
 "DermaTherm 2011", 
 "Unsere neue Broschüre ist erschienen",
 "Schauen Sie mal rein!"
 
);

var x=0; pos=0;
var l=tl[0].length;

function textticker() 
{        
 document.form1.textfeld.value=tl[x].substring(0,pos);
 if(pos++==l)
 {
  pos=0;
   setTimeout("textticker()",2000);
   x++;
   if(x==max)
    x=0;
   l=tl[x].length;
} else
   setTimeout("textticker()",50);
}


