item2="";
strot2="";
speedot2=150; 
countot2=0;
nowStrot2="";
start1=0;
start2=0;
tot2=0;

function scroll(id, text, speed){
	item2=id;
	strot2=text;
	speedot2=speed;
	tot2=setTimeout("hyoziot2()",speedot2);
}

function hyoziot2(){ 
	if(countot2<=strot2.length){
		ser1=strot2.indexOf("<",start1);
		if(countot2==ser1){
			tagwriteot2();
		}
		else {	
			nowStrot2=nowStrot2+strot2.charAt(countot2);
			countot2++;
		}
		document.getElementById(item2).innerHTML=nowStrot2;
	}
		clearTimeout(tot2)
		tot2=setTimeout("hyoziot2()",speedot2);
}

function tagwriteot2(){ 
	start1=ser1+1;
	ser2=strot2.indexOf(">",start2);
	start2=ser2+1;
	ser1=strot2.indexOf("<",start1);
	if(ser1==start2)
		return tagwriteot2();
	tagl=strot2.substring(countot2,start2+1);
	nowStrot2=nowStrot2+tagl;
	countot2=start2+1;
}
