function redimensiona(rediv,tamanhocab)
{
//alert(navigator.appName);
var clientHeight;
//if ((document.getElementById('cont'))
if (navigator.appName.indexOf("Microsoft") == 0)
   {clientHeight = f_filterResults (
		window.innerHeight ? window.innerHeight : 0,
		document.documentElement ? document.documentElement.clientHeight : 0,
		document.body ? document.body.clientHeight : 0);
	//alert('oi');	
	}	
else 
   clientHeight = window.innerHeight;
//alert ('cl:' + clientHeight);   
clientHeight = clientHeight - tamanhocab;
//alert ('dp:' + window.innerHeight);   

//if ((navigator.appName.indexOf("Microsoft") == 0)) //&& (document.documentElement && document.documentElement.clientHeight))
 //   {
//	alert('entrou');
 //   clientHeight = document.documentElement.clientHeight - 240;
//	}
//else if (navigator.appName.indexOf("Netscape") == 0)
 //   clientHeight = window.innerHeight - 240;
		
//alert ('oi' + clientHeight); 
//var divcont = document.getElementById('cont');
if (rediv)
   rediv.style.height = clientHeight + 'px';
}
//alert (window.innerHeight + '-A-' + document.documentElement.clientHeight);
//alert(navigator.appName.indexOf("Microsoft"));

function f_filterResults(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel)))
		n_result = n_docel;
	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}



