function init_srolltext(whichdiv,theheight,thespeed){
  tdiv=eval(whichdiv);
  th=theheight;
stopscroll=false; 
preTop=0; currentTop=theheight; stoptime=0;
  tdiv.scrollTop=0;
  setInterval("scrollUp(tdiv,th)",thespeed);
}

function scrollUp(tdiv1,th1){
  if(stopscroll==true) return;
  currentTop+=1;
  if(currentTop==(th1+1))
  {
  	stoptime+=1;
  	currentTop-=1;
  	if(stoptime==(th1-1)) 
  	{
  		currentTop=0;
  		stoptime=0;  		
  	}
  }
  else {  	
	  preTop=tdiv1.scrollTop;
	  tdiv1.scrollTop+=1;

	  if(preTop==tdiv1.scrollTop){
	    tdiv1.scrollTop=th1;
	    tdiv1.scrollTop+=1;
	    
	  }
  }

}
