// JavaScript Document

var isIE= navigator.appName == "Microsoft Internet Explorer"; /* IE */
var isNS= navigator.appName == "Netscape"; /* Netscape, Mozilla Firefox */

function redimIframe_tmp (obj){
	var vFunction = "redimIframe('"+obj.id+"')";
	setTimeout(vFunction,100);
}

function redimIframe (obj_id){
	var vHeight_Min = 750;
	// alert("redimIframe");	
	// with ( document.getElementById(obj.id) ) { 
	with ( document.getElementById(obj_id) ) { 
		if ( isIE ) { 
			var vHeight = contentWindow.document.body.scrollHeight + 20;
			if (vHeight > vHeight_Min) style.height = vHeight + 20 ;
			else style.height = vHeight_Min;
			style.margin = 0;
			style.padding = 0;
			scrolling = 0;
			// alert(style.height);
			// scrolling= "auto";
		} 
		else if ( isNS ) { 
			var vHeight = contentDocument.body.offsetHeight + 20;
			if (vHeight > vHeight_Min) style.height = vHeight; 
			else style.height = vHeight_Min;
			scrolling= "no";
			// scrolling= "auto";
		} 
		else { 
			style.height= "100%"; 
			scrolling= "auto"; 
		} 
	} 
}
