function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
} 
function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}



function fp_show(tab,cls) 
{
	i=1;
	
	while (document.getElementById("tab_"+i))
	 {
	 document.getElementById("tab_"+i).style.display='none';
	 document.getElementById("a"+i).className='';
	 i++;
	 
	 }
	 document.getElementById(tab).style.display='block';
	 document.getElementById(cls).className='sel';
}




defaultStep=1
step=defaultStep

function scrollDivLeft(id){
//clearTimeout(timerLeft)
document.getElementById(id).scrollLeft+=step
timerLeft=setTimeout("scrollDivLeft('"+id+"')",10)

}

function scrollDivRight(id){
//clearTimeout(timerRight)
document.getElementById(id).scrollLeft-=step
timerRight=setTimeout("scrollDivRight('"+id+"')",10)
}

timerLeft=""
timerRight=""

function stopMe(){
clearTimeout(timerLeft)
clearTimeout(timerRight)
}

