///////////[ VALIDA FALE CONOSCO ]////////////
	function valida_fale_conosco(){
	
		if(document.getElementById("nome").value == ''){
			alert("Campo ( NOME COMPLETO ) é obrigatório!!");
			document.getElementById("nome").focus();
			return false;
		}
		
		if(document.getElementById("tipo").value == ''){
			alert("Campo ( Você é: ) é obrigatório!!");
			document.getElementById("tipo").focus();
			return false;
		}
		
		if(document.getElementById("matriculado").value == ''){
			alert("Campo ( Matriculado? ) é obrigatório!!");
			document.getElementById("matriculado").focus();
			return false;
		}
	
		if(document.getElementById("email").value == ''){
			alert("Campo ( E-MAIL ) é obrigatório!!");
			document.getElementById("email").focus();			
			return false;
		
		}else{
		
			if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("email").value))){ 
				alert("Favor informar um E-MAIL válido.");
				document.getElementById("email").focus();
				var erro = "sim";				
				return false;
			} 
	
		}
		
		if(document.getElementById("ddd").value == ''){
			alert("Campo ( DDD: ) é obrigatório!!");
			document.getElementById("ddd").focus();			
			return false;
		}
		
		if(document.getElementById("Telefone").value == ''){
			alert("Campo ( Telefone: ) é obrigatório!!");
			document.getElementById("Telefone").focus();			
			return false;
		}
		
		
	
		if(document.getElementById("voce_e").value == ''){
			alert("Campo ( Você é: ) é obrigatório!!");
			document.getElementById("voce_e").focus();			
			return false;
		}
		
		if(document.getElementById("matriculado").value == ''){
			alert("Campo ( Matriculado? ) é obrigatório!!");
			document.getElementById("matriculado").focus();			
			return false;
		}
	
	}

///////////[ VALIDA FALE FRANQUEADOS ]////////////
	function valida_cadastre_se_franqueados(){
	
	if(document.getElementById("nome").value == ''){
		alert("Campo ( NOME COMPLETO ) é obrigatório!!");
		document.getElementById("nome").focus();
		return false;
	}
	
	if(document.getElementById("uf").value == 'UF'){
		alert("Campo ( UF ) é obrigatório!!");
		document.getElementById("uf").focus();
		return false;
	}

	if(document.getElementById("cidade").value == ''){
		alert("Campo ( Cidade ) é obrigatório!!");
		document.getElementById("cidade").focus();
		return false;
	}
	
	if(document.getElementById("data-de-nascimento").value == ''){
		alert("Campo ( Data de Nascimento) é obrigatório!!");
		document.getElementById("data-de-nascimento").focus();
		return false;
	}

	if(document.getElementById("email").value == ''){
		alert("Campo ( E-MAIL ) é obrigatório!!");
		document.getElementById("email").focus();			
		return false;
	}else{
	
		if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("email").value))){ 
			alert("Favor informar um E-MAIL válido.");
			document.getElementById("email").focus();
			var erro = "sim";				
			return false;
	}

		if(document.getElementById("conhecimento_ingles").value == 'Fluente'){
			alert("Campo ( Conhecimento da Língua Inglesa ) é obrigatório!!");
			document.getElementById("conhecimento_ingles").focus();			
			return false;
		}
	
		if(document.getElementById("ddd").value == ''){
			alert("Campo ( DDD: ) é obrigatório!!");
			document.getElementById("ddd").focus();			
			return false;
		}

	if(document.getElementById("Telefone").value == ''){
		alert("Campo ( TELEFONE ) é obrigatório!!");
		document.getElementById("Telefone").focus();
		return false;
	}

	if(document.getElementById("ddd_cel").value == ''){
			alert("Campo ( DDD: ) é obrigatório!!");
			document.getElementById("ddd_cel").focus();			
			return false;
		}
	
	if(document.getElementById("celular").value == ''){
		alert("Campo ( CELULAR ) é obrigatório!!");
		document.getElementById("celular").focus();
		return false;
	}

	if(document.getElementById("cidade").value == ''){
		alert("Campo ( CIDADE ) é obrigatório!!");
		document.getElementById("cidade").focus();
		return false;
	}

	if(document.getElementById("como_ficou_sabendo").value == 'Revistas-e-jornais'){
		alert("Campo ( Como ficou sabendo da nossa franquia ) é obrigatório!!");
		document.getElementById("como_ficou_sabendo").focus();
		return false;
	}
	
	if(document.getElementById("").value == 'Fluente'){
			alert("Campo ( Conhecimento da Língua Inglesa ) é obrigatório!!");
			document.getElementById("conhecimento_ingles").focus();			
			return false;
		}

	}
	}

///////////[ VALIDA MATRICULE SE E GANHE ]////////////
	function valida_matricule_se_ganher(){
	
	if(document.getElementById("nome").value == ''){
		alert("Campo ( NOME COMPLETO ) é obrigatório!!");
		document.getElementById("nome").focus();
		return false;
	}
	
	if(document.getElementById("nome-aluno").value == ''){
		alert("Campo ( NOME ALUNO ) é obrigatório!!");
		document.getElementById("nome-aluno").focus();
		return false;
	}

	if(document.getElementById("idade").value == ''){
		alert("Campo ( IDADE ) é obrigatório!!");
		document.getElementById("idade").focus();
		return false;
	}

	if(document.getElementById("email").value == ''){
		alert("Campo ( E-MAIL ) é obrigatório!!");
		document.getElementById("email").focus();			
		return false;
	}else{
	
		if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("email").value))){ 
			alert("Favor informar um E-MAIL válido.");
			document.getElementById("email").focus();
			var erro = "sim";				
			return false;
	} 

	if(document.getElementById("telefone").value == ''){
		alert("Campo ( TELEFONE ) é obrigatório!!");
		document.getElementById("telefone").focus();
		return false;
	}
	
	if(document.getElementById("ddd").value == ''){
		alert("Campo ( DDD ) é obrigatório!!");
		document.getElementById("ddd").focus();
		return false;
	}

	if(document.getElementById("celular").value == ''){
		alert("Campo ( CELULAR ) é obrigatório!!");
		document.getElementById("celular").focus();
		return false;
	}

	if(document.getElementById("cidade").value == ''){
		alert("Campo ( CIDADE ) é obrigatório!!");
		document.getElementById("cidade").focus();
		return false;
	}

	if(document.getElementById("bairro-e-cidade-onde-quer-atuar").value == ''){
		alert("Campo ( Bairro e Cidade onde quer atuar ) é obrigatório!!");
		document.getElementById("bairro-e-cidade-onde-quer-atuar").focus();
		return false;
	}

	}
	}

///////////[ VALIDA ÁREA DO ALUNO / ESCREVA PARA NÓS ]////////////
	function valida_escreva_para_nos(){

	if(document.getElementById("nome").value == ''){
		alert("Campo ( Nome Completo ) é obrigatório!!");
		document.getElementById("nome").focus();
		return false;
	}

	
	if(document.getElementById("uf").value == 'UF'){
		alert("Campo ( UF ) é obrigatório!!");
		document.getElementById("uf").focus();
		return false;
	}
	
	if(document.getElementById("cidade").value == ''){
		alert("Campo ( Cidade:) é obrigatório!!");
		document.getElementById("cidade").focus();
		return false;
	}
	
	
	if(document.getElementById("data-de-nascimento").value == ''){
		alert("Campo ( DATA DE NASCIMENTO ) é obrigatório!!");
		document.getElementById("data-de-nascimento").focus();
		return false;
	}


	if(document.getElementById("email").value == ''){
		alert("Campo ( E-MAIL ) é obrigatório!!");
		document.getElementById("email").focus();			
		return false;
	}else{
	
		if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("email").value))){ 
			alert("Favor informar um E-MAIL válido.");
			document.getElementById("email").focus();
			var erro = "sim";				
			return false;
	} 

	if(document.getElementById("ddd").value == ''){
		alert("Campo ( DDD ) é obrigatório!!");
		document.getElementById("ddd").focus();
		return false;
	}
	
	if(document.getElementById("telefone").value == ''){
		alert("Campo ( TELEFONE ) é obrigatório!!");
		document.getElementById("telefone").focus();
		return false;
	}

	if(document.getElementById("endereco").value == ''){
		alert("Campo ( ENDEREÇO ) é obrigatório!!");
		document.getElementById("endereco").focus();
		return false;
	}

	if(document.getElementById("cidade").value == ''){
		alert("Campo ( CIDADE ) é obrigatório!!");
		document.getElementById("cidade").focus();
		return false;
	}

	if(document.getElementById("mensagem").value == ''){
		alert("Campo ( MENSAGEM ) é obrigatório!!");
		document.getElementById("mensagem").focus();
		return false;
	}

	}
	}


///////////[ VALIDA ÁREA DOS PAIS / ESCREVA PARA NÓS ]////////////
	function valida_escreva_para_nos_area_dos_pais(){

	if(document.getElementById("nome").value == ''){
		alert("Campo ( NOME COMPLETO ) é obrigatório!!");
		document.getElementById("nome").focus();
		return false;
	}
	
	if(document.getElementById("email").value == ''){
		alert("Campo ( E-MAIL ) é obrigatório!!");
		document.getElementById("email").focus();			
		return false;
	}else{
	
		if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("email").value))){ 
			alert("Favor informar um E-MAIL válido.");
			document.getElementById("email").focus();
			var erro = "sim";				
			return false;
	} 
	
	if(document.getElementById("telefone").value == ''){
		alert("Campo ( TELEFONE ) é obrigatório!!");
		document.getElementById("telefone").focus();
		return false;
	}
	
	if(document.getElementById("mensagem").value == ''){
		alert("Campo ( MENSAGEM ) é obrigatório!!");
		document.getElementById("mensagem").focus();
		return false;
	}
	
	}
	}


///////////[ VALIDA AREA TEACHERS / REGISTER HERE ]////////////
	function valida_envie_seu_curriculo(){

	if(document.getElementById("name").value == ''){
		alert("Field ( FULL NAME ) is mandatory!");
		document.getElementById("name").focus();
		return false;
	}
	
		
	if(document.getElementById("neighborhood").value == ''){
		alert("Field (Neighborhood) is mandatory!");
		document.getElementById("neighborhood").focus();
		return false;
	}
	
	if(document.getElementById("date-of-birth").value == ''){
		alert("Field (Date of Birth) is mandatory!");
		document.getElementById("date-of-birth").focus();
		return false;
	}
	
	if(document.getElementById("uf").value == 'UF'){
		alert("Field (UF) is mandatory!");
		document.getElementById("uf").focus();
		return false;
	}
	
	if(document.getElementById("city").value == ''){
		alert("Field (City) is mandatory!");
		document.getElementById("city").focus();
		return false;
	}

	if(document.getElementById("email").value == ''){
		alert("Field ( E-MAIL ) is mandatory!");
		document.getElementById("email").focus();			
		return false;
	}else{
	
		if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("email").value))){ 
			alert("Please enter a valid E-MAIL.");
			document.getElementById("email").focus();
			var erro = "sim";				
			return false;
	} 
	}

	if(document.getElementById("ddd").value == ''){
		alert("Field ( DDD ) is mandatory!");
		document.getElementById("ddd").focus();
		return false;
	}
	
	if(document.getElementById("telephone").value == ''){
		alert("Field ( TELEPHONE ) is mandatory!");
		document.getElementById("telephone").focus();
		return false;
	}

	if(document.getElementById("neighborhood").value == ''){
		alert("Field ( NEIGHBORHOOD ) is mandatory!");
		document.getElementById("neighborhood").focus();
		return false;
	}

	if(document.getElementById("city").value == ''){
		alert("Field ( CITY ) is mandatory!");
		document.getElementById("city").focus();
		return false;
	}
	}


///////////[ VALIDA PARCERIAS / ESCREVA PARA NÓS ]////////////
	function valida_escreva_para_nos_parceiro(){

	if(document.getElementById("nome-empresa").value == ''){
		alert("Campo ( NOME EMPRESA ) é obrigatório!!");
		document.getElementById("nome-empresa").focus();
		return false;
	}

	if(document.getElementById("nome-contato").value == ''){
		alert("Campo ( NOME CONTATO ) é obrigatório!!");
		document.getElementById("nome-contato").focus();
		return false;
	}
	
	if(document.getElementById("uf").value == 'UF'){
		alert("Campo ( UF) é obrigatório!!");
		document.getElementById("uf").focus();
		return false;
	}
	
	if(document.getElementById("cidade").value == ''){
		alert("Campo ( Cidade) é obrigatório!!");
		document.getElementById("cidade").focus();
		return false;
	}
	

	if(document.getElementById("email").value == ''){
		alert("Campo ( E-MAIL ) é obrigatório!!");
		document.getElementById("email").focus();			
		return false;
	}else{
	
		if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("email").value))){ 
			alert("Favor informar um E-MAIL válido.");
			document.getElementById("email").focus();
			var erro = "sim";				
			return false;
	}

	if(document.getElementById("ddd").value == ''){
		alert("Campo ( DDD ) é obrigatório!!");
		document.getElementById("ddd").focus();
		return false;
	}	

	if(document.getElementById("telefone").value == ''){
		alert("Campo ( TELEFONE ) é obrigatório!!");
		document.getElementById("telefone").focus();
		return false;
	}

	if(document.getElementById("endereco").value == ''){
		alert("Campo ( ENDEREÇO ) é obrigatório!!");
		document.getElementById("endereco").focus();
		return false;
	}

	if(document.getElementById("cidade").value == ''){
		alert("Campo ( CIDADE ) é obrigatório!!");
		document.getElementById("cidade").focus();
		return false;
	}

	if(document.getElementById("mensagem").value == ''){
		alert("Campo ( MENSAGEM ) é obrigatório!!");
		document.getElementById("mensagem").focus();
		return false;
	}

	}
	}


///////////[ AUMENTAR TAMANHO DA FONTE DO SITE ]//////////
	var $s = jQuery.noConflict()
	function MostraDiminui( valor )
	{
		var ourText = $s('.box-conteudo-meio p');
		var currFontSize = ourText.css('fontSize');
		var finalNum = parseFloat(currFontSize, 10);
		var stringEnding = currFontSize.slice(-2);
		if( valor== 'large') {
			finalNum *= 1.2;
		}
		else if (valor == 'small'){
			finalNum /=1.2;
		}
		ourText.animate({fontSize: finalNum + stringEnding},200);
	}
	
///////////[ MASCARAS FORMULARIOS ]//////////
		function mascara(o,f){
			v_obj=o
			v_fun=f
			setTimeout("execmascara()",1)
		}
		
		/*Função que Executa os objetos*/
		function execmascara(){
			v_obj.value=v_fun(v_obj.value)
		}
		
		/*Função que Determina as expressões regulares dos objetos*/
		function leech(v){
			v=v.replace(/o/gi,"0")
			v=v.replace(/i/gi,"1")
			v=v.replace(/z/gi,"2")
			v=v.replace(/e/gi,"3")
			v=v.replace(/a/gi,"4")
			v=v.replace(/s/gi,"5")
			v=v.replace(/t/gi,"7")
			return v
		}
		
		/*Função que permite apenas numeros*/
		function Integer(v){
			return v.replace(/\D/g,"")
		}
	
		/*Função que padroniza telefone (11) 4184-1241*/
		function TelefoneMask(v){
			v=v.replace(/\D/g,"")                 
			v=v.replace(/^(\d\d)(\d)/g,"($1) $2") 
			v=v.replace(/(\d{4})(\d)/,"$1-$2")    
			return v
		}
	
		/*Função que padroniza telefone 4184-1241*/
		function Telefone2(v){
			v=v.replace(/\D/g,"")                 
			v=v.replace(/(\d{3})(\d)/,"$1$2")    
			v=v.replace(/(\d{4})(\d)/,"$1-$2")    
			return v
		}
		
		/*Função que padroniza telefone (11) 41841241*/
		function TelefoneCall(v){
			v=v.replace(/\D/g,"")                 
			v=v.replace(/^(\d\d)(\d)/g,"($1) $2")    
			return v
		}
		
		/*Função que padroniza CPF*/
		function Cpf(v){
			v=v.replace(/\D/g,"")                    
			v=v.replace(/(\d{3})(\d)/,"$1.$2")       
			v=v.replace(/(\d{3})(\d)/,"$1.$2")       
													 
			v=v.replace(/(\d{3})(\d{1,2})$/,"$1-$2") 
			return v
		}
		
		/*Função que padroniza CEP*/
		function Cep(v){
			v=v.replace(/D/g,"")                
			v=v.replace(/^(\d{5})(\d)/,"$1-$2") 
			return v
		}
		
		/*Função que padroniza CNPJ*/
		function Cnpj(v){
			v=v.replace(/\D/g,"")                   
			v=v.replace(/^(\d{2})(\d)/,"$1.$2")     
			v=v.replace(/^(\d{2})\.(\d{3})(\d)/,"$1.$2.$3") 
			v=v.replace(/\.(\d{3})(\d)/,".$1/$2")           
			v=v.replace(/(\d{4})(\d)/,"$1-$2")              
			return v
		}
		
		/*Função que permite apenas numeros Romanos*/
		function Romanos(v){
			v=v.toUpperCase()             
			v=v.replace(/[^IVXLCDM]/g,"") 
			
			while(v.replace(/^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$/,"")!="")
				v=v.replace(/.$/,"")
			return v
		}
		
		/*Função que padroniza o Site*/
		function  Site(v){
			v=v.replace(/^http:\/\/?/,"")
			dominio=v
			caminho=""
			if(v.indexOf("/")>-1)
				dominio=v.split("/")[0]
				caminho=v.replace(/[^\/]*/,"")
				dominio=dominio.replace(/[^\w\.\+-:@]/g,"")
				caminho=caminho.replace(/[^\w\d\+-@:\?&=%\(\)\.]/g,"")
				caminho=caminho.replace(/([\?&])=/,"$1")
			if(caminho!="")dominio=dominio.replace(/\.+$/,"")
				v="http://"+dominio+caminho
			return v
		}
	
		/*Função que padroniza DATA*/
		function Data(v){
			v=v.replace(/\D/g,"") 
			v=v.replace(/(\d{2})(\d)/,"$1 / $2") 
			v=v.replace(/(\d{2})(\d)/,"$1 / $2") 
			return v
		}
		
	
		/*Função que padroniza DATA*/
		function Hora(v){
			v=v.replace(/\D/g,"") 
			v=v.replace(/(\d{2})(\d)/,"$1:$2")  
			return v
		}
		
		/*Função que padroniza valor monétario*/
		function Valor(v){
			v=v.replace(/\D/g,"") //Remove tudo o que não é dígito
			v=v.replace(/^([0-9]{3}\.?){3}-[0-9]{2}$/,"$1.$2");
			//v=v.replace(/(\d{3})(\d)/g,"$1,$2")
			v=v.replace(/(\d)(\d{2})$/,"$1.$2") //Coloca ponto antes dos 2 últimos digitos
			return v
		}
		
		/*Função que padroniza Area*/
		function Area(v){
			v=v.replace(/\D/g,"") 
			v=v.replace(/(\d)(\d{2})$/,"$1.$2") 
			return v
			
		}
			

