function form_orcamento_footer(){
	var ad = document.form_orcamento;
			
	if (ad.texto_orcamento.value == "") {
        alert('Campo Texto é de preenchimento obrigatorio.');
		ad.texto_orcamento.focus();
		return false;
	}	
	if (ad.nome_orcamento.value == "") {
        alert('Campo Nome é de preenchimento obrigatorio.');
		ad.nome_orcamento.focus();
		return false;
	}	
   if (ad.email_orcamento.value == "") {			
   		alert('Campo email é de preenchimento obrigatorio.');
		ad.email_orcamento.focus();
		return false;
	}
	if(!(/^\w+([\.-_-]?\w+)*@\w+([\.-_-]?\w+)*(\.\w{2,4})+$/.test(ad.email_orcamento.value))) { 
		alert('Ensira um email válido.');
		ad.email_orcamento.focus();
		return false;		
	   }	
	return true;		
}

function form_newsletters(){
   var ad = document.form_newsletter;
			
   if (ad.email_newsletter.value == "") { 
      alert('Ensira um email.');
		ad.email_newsletter.focus();
		return false;	
   }
	
	   if(!(/^\w+([\.-_-]?\w+)*@\w+([\.-_-]?\w+)*(\.\w{2,4})+$/.test(ad.email_newsletter.value))) { 
		alert('Email inválido.\nEx: aplanet@aplanet.com.br');
		ad.email_newsletter.focus();
		return false;		

	}
	return true;		
}

var tam = 12;
function tam_texto(tipo){
if (tipo=="maior"){
   tam+=1;
}
if (tipo=="menor"){
	tam-=1;

} 
if(tam <= 11){
	tam = 11;
	}
if(tam > 15){tam = 15;}
document.getElementById('all').style.fontSize=tam+'px';
document.getElementById('all-header').style.fontSize=tam+'px';
document.getElementById('all-footer').style.fontSize=tam+'px';
}


function area_cliente(){
	var ad = document.form_area_cliente;
			
	if (ad.login_ac.value == "") {
        alert("Campo 'Login' é de preenchimento obrigatorio.");
		ad.login_ac.focus();
		return false;
	}	
	if (ad.senha_ac.value == "") {
        alert("Campo 'Senha' é de preenchimento obrigatorio.");
		ad.senha_ac.focus();
		return false;
	}	
	return true;		
}


function suporte(){
	var ad = document.form_suporte;
			
	if (ad.nome_sup.value == "") {
        alert("Campo 'Nome' é de preenchimento obrigatorio.");
		ad.nome_sup.focus();
		return false;
	}	
	if (ad.email_sup.value == "") {
        alert("Campo 'Email' é de preenchimento obrigatorio.");
		ad.email_sup.focus();
		return false;
	}
	if(!(/^\w+([\.-_-]?\w+)*@\w+([\.-_-]?\w+)*(\.\w{2,4})+$/.test(ad.email_sup.value))) { 
		alert('Email inválido.\nEx: aplanet@aplanet.com.br');
		ad.email_sup.focus();
		return false;		
	}
	if (ad.assunto_sup.value == "") {
        alert("Campo 'Assunto' é de preenchimento obrigatorio.");
		ad.assunto_sup.focus();
		return false;
	}	
	if (ad.texto_sup.value == "") {
        alert("Campo 'Descrição' é de preenchimento obrigatorio.");
		ad.texto_sup.focus();
		return false;
	}	
	return true;		
}


function promo(tipo,acao){
	  if(acao=='abre'){
	    document.getElementById('b'+tipo).style.display="block";
	  }else{
	    document.getElementById('b'+tipo).style.display="none";
	  }
	}