function calcHeight(){
	//find the height of the internal page	
	var testheight1 = parent.document.getElementById('bidFrameSidebar').contentWindow.document.body.scrollHeight;
	var testheight2 = parent.document.getElementById('bidFrameSidebar').contentWindow.document.body.offsetHeight;
	
	if (testheight1 > testheight2){ // document size on FF and Safari OK -IE4 compatible
		var the_height = parent.document.getElementById('bidFrameSidebar').contentWindow.document.body.scrollHeight + 5; // add 5 pixels extra
		var the_width = parent.document.getElementById('bidFrameSidebar').contentWindow.document.body.scrollWidth;
	}
	else{ // Explorer Mac, would also work in Explorer 6 Strict, Mozilla and Safari
		var the_height = parent.document.getElementById('bidFrameSidebar').contentWindow.document.body.offsetHeight + 5; // add 5 pixels extra
		var the_width = parent.document.getElementById('bidFrameSidebar').contentWindow.document.body.offsetWidth;
	}

	if (the_height > 15){
		//change the height of the iframe
		parent.document.getElementById('bidFrameSidebar').height = the_height;
	}

	//change the width of the iframe
	parent.document.getElementById('bidFrameSidebar').width = the_width;
}
