function AutoSizeIframe(id)
	//Function:		Have the iFrame height sized to fit within its containing window.
	//Parameters:   id			- Id of iFrame.
	//Author:		Endeavour
	//Modified:		20-Nov-2006	- First release.
	//Notes:		-
	//Suggestions: 	1. The correction in height made for the selection tabs area (at the top of the containing page)
	//				   and for the footer area (at the bottom of the containing page) is now in fixed px values.
	//				   It would be more elegant to scale this dynamically to follow any changes in the related styles.

	{	var myWidth  = 0;
		var myHeight = 0;

		if( typeof( window.innerWidth ) == 'number' )
		{	//Non-IE
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
		} 
		else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
		{	//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		}
		else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
		{	//IE 4 compatible
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		}

		document.getElementById(id).style.height = myHeight - 82 - 27 + "px";
//		document.getElementById(id).style.width  = myWidth  + "px";

//D		window.alert('Function AutoSizeIframe' +
//D			'\nIframe id: ' + id +
//D			'\nIframe name: ' + document.getElementById(id).name +
//D			'\nwindowHeight: ' + myHeight +
//D  			'\nwindowWidth: ' + myWidth +
// 			'\nSet Iframe width: ' + document.getElementById(id).style.width +
//D			'\nset Iframe height: ' + document.getElementById(id).style.height )
	}

