function calcHeight(frameid, minheight)
{
	//find the height of the internal page
	var the_height=
	document.getElementById(frameid).contentWindow.
	  document.body.scrollHeight + 30;
	if (the_height < minheight){
		the_height=minheight;
	}

	//change the height of the iframe
	document.getElementById(frameid).height=
	  the_height;
}

function loadframe(name, url) {
	if ( window.frames[name] ) {
		window.frames[name].location = url;   
		return false;
	}
	else return true;
}

function loadframeadmin(name, url, id, heading){
	//alert('Name: ' + name + "\nURL: " + url + "\nID: " + id );
	// reset the link as set the one just clicked to current for style
	var navLinks = document.getElementById('subsubmenu').getElementsByTagName("a");
	for(var i=0;i<navLinks.length;i++) {
		navLinks[i].className = "";
	}	
	document.getElementById(id).className='current';
	// change the hading on the page
	document.getElementById('retoolsh2').innerHTML = heading;
	if ( window.frames[name] ) {
		window.frames[name].location = url;   
		return false;
	}
	else return true;

	//loadframe(name, url);
}

