function calcHeight(elem){
	var the_height=document.getElementById(elem).contentWindow.document.body.scrollHeight;//find the height of the internal page
	if (the_height < 400) the_height=400;
	document.getElementById(elem).style.height=the_height + 20;//change the height of the iframe
	//document.getElementById(elem).style.width='100%';
	//alert(elem + " - " + the_height);
}

function calcHeightTop(frame_name) {
	a= parent.document.getElementById(frame_name);
	if (a){
		the_height= a.contentWindow.document.body.scrollHeight;
		//alert(the_height);
		a.style.height= the_height + 20;
		//a.style.width='100%';
	}
}

function loadFrames(left, main){
	l= window.parent.left;
	m= window.parent.main;

	if (left=='null'){
		l.style.display= 'none';
	}
	if (left!=''){
		l.location.href= left;
	}

	if (main=='null'){
		m.style.display= 'none';
	}
	if (main!=''){
		m.location.href= main;
	}
}