// JavaScript Document
<!--
// see http://forums.devshed.com/t12172/s.html?highlight=Http+Flood
// http://msdn.microsoft.com/workshop/samples/author/dhtml/refs/scrollHeight.htm

function fnCheckScroll(){
	var newheight = document.getElementById("oID_1").scrollHeight;
	var offset = document.getElementById("oID_1").offsetHeight;
	//Explorer 6 in standards compliant mode, some properties of document.body are reassigned to document.documentElement. Explorer 5 the properties still belong to document.body so that you have to separate 6 from 5
	//if (document.documentElement && document.documentElement.scrollTop)
	//{var intY = document.getElementById("oID_1").scrollTop;}
//else if (document.body)
	//{var intY = document.body.scrollTop;}
//else
	//{location.href= "pf_OSlisence.cfm";}
   var intY = document.getElementById("oID_1").scrollTop;
	//newheight is 1px greater than intY so add 1 to intY to correlate them
	var intY = intY + offset;
	var intY = intY;
	if(newheight <= intY){
  	 document.go_to_mole2.submit();
	 // disable the button
	 document.getElementById("mole2_accept").disabled = true;
	 document.getElementById("mole2_accept").value = 'Please wait while we redirect you... ';
	 
	}
	else{
	 alert("Please read the license. Scroll to the bottom of the license before clicking 'Accept'");
	 }
}

function fnReject(){
	location.href = "/ccm/navigation/environment/land-and-premises/geographical-information-systems--gis-/";
	}

//-->