var iTop=0;
function goUp(){
	var o = document.getElementById("divText");
	var h = o.scrollHeight;
	var p = o.style.top;
	p = parseInt(p);
	if(p < 0){
		iTop = p + 5;
		document.getElementById("divText").style.top = iTop + "px";
	}
}

function goDown(maxscroll){
	var o = document.getElementById("divText");
	var h = o.scrollHeight;
	var p = o.style.top;
	h = parseInt(h);
	p = parseInt(p);
	if(p > (maxscroll)){
		iTop = p - 5;
		document.getElementById("divText").style.top = iTop + "px";
	}
}

var myTimeout;   
function scrollPage(dir) {
  dir == 'down' ? frames['faq_iframe'].scrollBy(0,10) : frames['faq_iframe'].scrollBy(0,-10);
  myTimeout = setTimeout("scrollPage('" + dir + "')", 50);
}

function scrollTo(scrollpoint){
	if(scrollpoint == "top"){
		document.getElementById("divText").style.top = "0px";
	}else{
		document.getElementById("divText").style.top = scrollpoint + "px";
	}
}
