var pos = 100;

function Scroll() 
{
  if (!document.getElementById) return;
    obj=document.getElementById("thetext");
  pos -=1;
  
  if (pos < 0-obj.offsetWidth+100)
  {
	var obj1=document.getElementById("thewindow");
	pos = obj1.clientWidth;
        
  }
  obj.style.left = pos;
  obj.style.top = 0;  
  window.setTimeout("Scroll();",10);
}