var upif;
var downif;
function scrolldown(id){
	var obj=document.getElementById(id);
	if((obj.scrollTop+1)<=(obj.scrollHeight-obj.clientHeight)){
		obj.scrollTop+=1;
	}else{
		obj.scrollTop=obj.scrollHeight;
		clearTimeout(downif);
		return;
	}
	downif=setTimeout("scrolldown('"+id+"')",15);
}
function scrollup(id){
	var obj=document.getElementById(id);
	if((obj.scrollTop-1)>=0){
		obj.scrollTop-=1;
	}else{
		obj.scrollTop=0;
		clearTimeout(upif);
		return;
	}
	upif=setTimeout('scrollup("'+id+'")',15);
}
function celup(){
	clearTimeout(upif);
}
function celdown(){
	clearTimeout(downif);
}