// JavaScript Document

function busca_categoria()
{
		var id_categoria = document.getElementById("categoria").value;

		destino = "index.php?origem=produto_list&id_cat="+id_categoria;
		window.location.href = destino;

}

function confere_dados()
{
	var nome = document.getElementById("nome").value;
	var email = document.getElementById("email").value;
	
	
	if((nome == "") || (email == "") )// verica se algum destes campos está vazio
	{
		alert("Favor verifique se os campos NOME e EMAIL estão preenchidos.");
		//nome = "NOME";
		return false;
	}else{
		//nome = "";
		return true;
	}
	
}
