JS_ChatScrollTimer=0;
JS_ChatScrollPos=0;
JS_ScrollText="Ügyintézőnk várja kérdését. A beszélgetéshez kattintson ide!  **  ";

function JS_ChatScroll() {
  if (typeof JS_ScrollText[1]!="undefined") {
    if (JS_ChatScrollTimer) clearTimeout(JS_ChatScrollTimer);
    JS_ChatScrollPos++;
    if (JS_ChatScrollPos>=JS_ScrollText.length) {
      JS_ChatScrollPos=0;
    }
    var pos=JS_ChatScrollPos;
    var newstr="";
    for (var i=0;i<12;i++) {
      newstr+=JS_ScrollText[pos];
      pos++;
      if (pos>=JS_ScrollText.length) pos=0;
    }
    document.getElementById("chaticontext").innerHTML=newstr;
    JS_ChatScrollTimer=setTimeout("JS_ChatScroll();", 200);
  }
}
JS_ChatScroll();
