
function validar(e) {  
var tecla;  
if (e.keyCode) {  
tecla = e.keyCode;  
}  
else if (e.which) {    
tecla = e.which;  
}  
else {  
return false;  
}  
return !(tecla < 48 || tecla > 57) || (tecla==8);  
}  


function vazio(){
valor=document.getElementById("qtd").value
if ((valor!="" && valor!="0"))  {
return true;
}
return false;
}

function flash(){
document.write("<embed src='images/anima.swf' quality='high' wmode='opaque' width='792' height='199'></embed>")	
}



function img()
{
	document.write("<embed src='images/estetica.swf' quality='high' wmode='opaque' width='792' height='199'></embed>");
	}

function busca(){
	if(document.form_busca.buscar.value==""){
		alert("Digite algo para buscar.")
		return false;
		} 
		return true;
	}
	

function valida_indica(){ 
	if (document.getElementById("seu_nome").value=="Seu Nome") {
	alert("Preencha o Seu Nome.")	
		document.getElementById("seu_nome").focus()
		return false;
	}

if (document.getElementById("seu_email").value=="Seu E-mail" || document.getElementById("seu_email").value.indexOf("@")==-1) {
	alert("Preencha o Seu E-mail.")	
		document.getElementById("seu_email").focus()
		return false;
	}
	if (document.getElementById("nome_amigo").value=="Nome do Destinatário") {
	alert("Preencha o Nome do Destinatário.")	
		document.getElementById("nome_amigo").focus()
		return false;
	}
	
	if (document.getElementById("email_amigo").value=="Email do Destinatário" || document.getElementById("email_amigo").value.indexOf("@")==-1) {
	alert("Preencha o E-mail do Destinatário.")	
		document.getElementById("email_amigo").focus()
		return false;
		}
		
	
	return true;
	}

function valida_informativo(){
	
	if (document.informativo.nome_informativo.value=="Seu Nome") {
alert("Digite o Seu Nome.")	
document.informativo.nome_informativo.focus()
return false;
	}
	
	if (document.informativo.email_informativo.value=="" || document.informativo.email_informativo.value.indexOf("@")==-1) {
alert("Digite o Seu E-mail.")	
document.informativo.email_informativo.focus()
return false;
	}
	return true;
}


function cont(){
		
		if (document.contato.nome.value == ""){
			alert("Por favor informe seu nome!");
			document.contato.nome.focus();
			return false;
		}
		
	
		if (document.contato.email.value == ""){
			alert("Por favor informe seu e-mail");
			document.contato.email.focus();
			return false;
		}
		
		if (document.contato.assunto.value == ""){
			alert("Digite, por favor, um Assunto");
			document.contato.assunto.focus();
			return false;
		}
		
		if (document.contato.mensagem.value == ""){
			alert("Deixe por favor sua mensagem");
			document.contato.mensagem.focus();
			return false;
		}
		
		return true;
	}

function trabalhe(){
	
	if (document.email.nome.value==""){
	alert("Preencha corretamente o campo Nome !")
	document.email.nome.focus()
	return false;
	}
	
		if (document.email.email.value==""){
	alert("Preencha corretamente o campo Email !")
	document.email.email.focus()
	return false;
	}
	if (document.email.telefone.value==""){
	alert("Preencha corretamente o campo Telefone !")
	document.email.telefone.focus()
	return false;
	}	
	
}
