
function AbreDiv(obj)
{
	var div;
	div = obj;

	if (document.getElementById(div).style.display == "none")
	{
		    document.getElementById(div).style.display = "block";
	}
	else
	{
		document.getElementById(div).style.display = "none";
    }
}

function ContaReq(pNome,pContador){
	
	document.getElementById(pContador).value = document.getElementById(pNome).value.length;	
	
	if(document.getElementById(pNome).value.length>5000) {
		alert('O Número Máximo de 5000 Caracteres foi Excedido !');
		document.getElementById(pNome).value = document.getElementById(pNome).value.substr(0,2999);
	}	
}


function redim(iframe)
{
	
	if(navigator.appName=="Microsoft Internet Explorer")
		var altura = parseInt(document.body.scrollHeight);
	else
		var altura = parseInt(document.body.offsetHeight);

	parent.document.getElementById(iframe).style.height = altura + 'px';
			
}