	function onscrollFloatDiv() {
		var bTemp = document.body;
		var divNode = $('floatDiv');
		divNode.style.top = (bTemp.scrollTop + bTemp.clientHeight - divNode.offsetHeight)/2 + "px";
	}
	
	function scrollNoUp(str){
		$(str).scrollTop -= 50;
	}
	
	function scrollNoDown(str){
		$(str).scrollTop += 50;
	}
	
	function scrollDivUp(str) {
		$(str).scrollTop -= 300;
	}
	
	function scrollDivDown(str) {
		var contHeight = window.frames['mainframe'].document.getElementById('jkbg_wdl_nr').offsetHeight;
		var tempHeight = $(str).scrollTop + 640;
		var scrolDistance = 300;
		if (contHeight > tempHeight) {
			var scrollTemp = contHeight - tempHeight;
			//alert(scrollTemp + " tempHeight:  " + tempHeight);
			if (scrollTemp >= scrolDistance) {
				$(str).scrollTop += scrolDistance;
			} else {
				$(str).scrollTop += (contHeight - $(str).scrollTop - 530);
			}
		}
	}
	
	function scrollFrame() {
		var contHeight = window.frames['mainframe'].document.getElementById('jkbg_wdl_nr').offsetHeight;
		var rHeight = $('right_frame').offsetHeight;
		
		if (contHeight > rHeight) {
			$('floatDiv').style.display = "block";
		} else {
			$('floatDiv').style.display = "none";
		}
		$('right_frame').scrollTop = 0;
	}
