<!--

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function abrir_janela_popup(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function ampliada(foto,legenda){
	myWindow=window.open('fotoshow.php?cod=HJNSOI2398FDKJH3487FDJH430945JLK98&imagem='+foto+'&lg='+legenda+'&id=sdflkj23897fsdkjh23487kjh45987dfgjkh','foto','scrollbar=no, resize=no,width=100,height=100,left=100,top=100');
	myWindow.focus()
}


function validarContato()
{
	msgErros = '';
	cntErros = 0;
	with (document.formContato)
	{
		if (Nome.value.length < 3)
		{
			msgErros += "-> Nome\n";
			cntErros++;
		}

		
		
		if (Cidade.value.length < 3)
		{
			msgErros += "-> Cidade\n";
			cntErros++;
		}

		
		if (UF.value.length < 2)
		{
			msgErros += "-> UF\n";
			cntErros++;
		}
		

		
		
		if (Email.value.length < 6)
		{
			msgErros += "-> Email\n";
			cntErros++;
		}
		else
		{
			if (Email.value.indexOf('@',0)==-1 ||
				Email.value.indexOf('@',0)== 0 ||
				Email.value.indexOf('.',0)==-1)
      	{
            msgErros += "-> Email (é inválido)\n";
				cntErros++;
      	}
		}
		
		if (Mensagem.value.length < 5)
		{
			msgErros += "-> Mensagem\n";
			cntErros++;
		}
	
		if (cntErros > 0)
		{
			alert("Você precisa preencher corretamente o(s) campo(s)\n abaixo para poder enviar o formulário:\n" + msgErros);
		}
		else
		{
			if (confirm("Você confirma as informações contidas no formulário?"))
			{
				action = "envia_mail.php";
				submit();
			}
		}
	}

}


//-->
