// A URL da página HTML que contém as imagens está na variável URIjanela
URIjanela='imgpop.html';

// Função rollover do menu.
function rollover(element, action) {
	if(action=='none'){
		document.getElementById(element).style.display='none';
		document.getElementById('rolar').style.display='block';
	} else {
		document.getElementById('rolar').style.display='none';
		document.getElementById(element).style.display='block';
	}
	return true;
}

//Verifica a existencia dos dados no formulario de e-mail
function verifica(){
  var f = document.formail;
  if (f.nome.value.length==0){
    window.alert("Favor preencher corretamente o campo 'Nome'!");
	f.nome.focus();
    return true;
  }
  if((f.email.value.indexOf("@")==-1) || (f.email.value.indexOf(".")==-1)){
    window.alert("Favor preencher corretamente o campo 'E-mail'!");
	f.email.focus();
    return false;
  }
  if(f.assunto.value.length==0){
    window.alert("Favor preencher corretamente o campo 'Assunto'!");
	f.assunto.focus();
    return false;
  }
  if(f.mensagem.value.length==0){
    window.alert("Favor preencher corretamente o campo 'Mensagem'!");
	f.mensagem.focus();
    return false;
  }
  window.alert("Mensagem enviada com sucesso!");
  return true;
}
