// Javascript
function setTop(obj,value){
 document.getElementById(obj).style.top= value+"px";
}

function scrollUp(id,start,step,end,cur,restart) {
 obj=document.getElementById(id);
 if (cur==null) {
  cur=start;
 };
 
 obj.style.top=""+cur+"px";
 cur += step;
 
 if (cur == end) {
  cur=restart;
 };
 str="scrollUp('"+id+"',"+start+","+step+","+end+","+cur+","+restart+")";
 setTimeout(str,50);
}

function skift(id) {
obj=document.getElementById(id);
	if (obj.className=='khide') {
		obj.className = 'kshow';
		document.getElementById(id).focus();
	}
	else if (obj.className=='kshow') {
		obj.className = 'khide';
	}
}
