function getFirstParam(){
	var pair = window.location.search.substring( 1 );
	var parts = pair.split( '=' );
	var param = parseInt( parts[1] );
	return param;
}

function loadHiddenIframe(path) {
	//this gets the height of the page. 
	var height = Math.max( document.body.offsetHeight, document.body.scrollHeight );

	// add any extra pixels if required
	height = height + 0;

	//this loads the hidden page into the iFrame, with height as a url parameter.
	var iframe = document.getElementById( 'HiddenIframe' );
	iframe.src = path + '?height=' + height;
}
