<!--
function ajusta_iframe(pagina,altura){
	top.document.getElementById(pagina).style.height=altura+"px";
}

function validador(theForm)
{
	var i=0;
	strERRO = "";
	//de traz
 	if (theForm.msg2.value=="")
	{
		strERRO ="\tDesculpe-nos, mas o campo MENSAGEM deve ser preenchido.\n" +strERRO;
		theForm.msg2.focus();
	}

	if (theForm.select2.value == 1)
	{
		strERRO ="\tDesculpe-nos, mas o campo ASSUNTO deve ser preenchido.\n"+strERRO;
		theForm.select2.focus();
	}
	if (theForm.email2.value=="")
	{
		strERRO = "\tDesculpe-nos, mas o campo E-MAIL deve ser preenchido.\n"+strERRO;
		theForm.email2.focus();
	}
 	if (theForm.nome2.value == "")
	{
		strERRO = "\tDesculpe-nos, mas o NOME deve ser preenchido.\n"+strERRO;
		theForm.nome2.focus();
	}
	if( strERRO  == "" ) 
	{
		theForm.submit();
	}
	else
	{
		alert("ERRO:\n"+strERRO);
		return(false);
	}
	
}


function validador2(theForm)
{
	var i=0;
	strERRO = "";
	//de traz
	if( theForm.tela.value == "cad" )
	{
 		if (theForm.msg2.value=="")
		{
			strERRO ="\tDesculpe-nos, mas o campo DÚVIDA deve ser preenchido.\n" +strERRO;
			theForm.msg2.focus();
		}

		if (theForm.email2.value=="")
		{
			strERRO = "\tDesculpe-nos, mas o campo E-MAIL deve ser preenchido.\n"+strERRO;
			theForm.email2.focus();
		}
 		if (theForm.nome2.value == "")
		{
			strERRO = "\tDesculpe-nos, mas o NOME deve ser preenchido.\n"+strERRO;
			theForm.nome2.focus();
		}
		if( strERRO  == "" ) 
		{
			theForm.action = "processamento/MovDuvida.asp?Acao=Adicionar"
			theForm.submit();
		}
		else
		{
			alert("ERRO:\n"+strERRO);
			return(false);
		}
	}
	else
	{
		strLocation = "conteudo.asp?nav=duv&tela=cad"
		window.location = strLocation;
	}
}

function validador3(theForm)
{
	var i=0;
	strERRO = "";
	//de traz
	if( theForm.tela.value == "cad" )
	{
 		if (theForm.textarea.value=="")
		{
			strERRO ="\tDesculpe-nos, mas o campo DÚVIDA deve ser preenchido.\n" +strERRO;
			theForm.textarea.focus();
		}
		if (theForm.email22.value=="")
		{
			strERRO = "\tDesculpe-nos, mas o campo E-MAIL deve ser preenchido.\n"+strERRO;
			theForm.email22.focus();
		}
 		if (theForm.nome22.value == "")
		{
			strERRO = "\tDesculpe-nos, mas o NOME deve ser preenchido.\n"+strERRO;
			theForm.nome22.focus();
		}
		if( strERRO  == "" ) 
		{
			theForm.action = "processamento/MovDuvida.asp?Acao=Adicionar"
			theForm.submit();
		}
		else
		{
			alert("ERRO:\n"+strERRO);
			return(false);
		}
	}
	else
	{
		strLocation = "conteudo.asp?nav=duv&tela=cad"
		window.location = strLocation;
	}
}

//-->

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


