function iframeResizePipe()
{
	// What's the page height?
	var height = document.body.scrollHeight;

	// Going to 'pipe' the data to the parent through the helpframe..
	var pipe = document.getElementById('helpframe');

	// Cachebuster a precaution here to stop browser caching interfering

	var url = getParam('url');
	if (url !='')
	{
		
		pipe.src = url + '?height='+height+'&cacheb='+Math.random();	
	}

}

// Helper function, parse param from request string
function getParam(name)
{
	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	var regexS = "[\\?&]"+name+"=([^&#]*)";
	var regex = new RegExp( regexS );
	var results = regex.exec( window.location.href );
	if( results == null ) {
		return "";
	} else {
		return results[1];
	}
}

// Resize iframe to full height
function resizeIframe(height)
{
	// "+60" is a general rule of thumb to allow for differences in
	// IE & and FF height reporting, can be adjusted as required..
	var oIfr = document.getElementById('frameToResize');
	oIfr.height = parseInt(height)+60;
	oIfr.style.display='block';
}
