function toTop(id){ 
	document.getElementById(id).scrollTop=0 
} 

defaultStep=5 
step=defaultStep 

function scrollDivDown(id){ 
	document.getElementById(id).scrollTop+=step 
	timerDown=setTimeout("scrollDivDown('"+id+"')",10) 
} 

function scrollDivUp(id){ 
	document.getElementById(id).scrollTop-=step 
	timerUp=setTimeout("scrollDivUp('"+id+"')",10) 
} 

function toBottom(id){ 
	document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight 
} 

function toPoint(id){ 
	document.getElementById(id).scrollTop=100
}

function popup(url) 
{
 var width  = 800;
 var height = 400;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}

