function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
else 
countfield.value = maxlimit - field.value.length;
}

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
    
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
	
	
	function ShowRegPR(op) {
  document.getElementById('profissional').style.display='none';
  document.getElementById('estudante').style.display='none';

  if (op == 1) {
    document.getElementById('profissional').style.display="block";
  }
    if (op == 2) {
    document.getElementById('estudante').style.display="block";
  }

}
	
	
	
	
	
	
	
	
//Funções para a opção de outros produtos e matéria prima
	function ShowReg(op) {
  document.getElementById('Car').style.display='none';
  if (op == 590) {
    document.getElementById('Car').style.display="block";
  }

}
	
	function ShowReg2(op) {
  document.getElementById('Car2').style.display='none';
  if (op == 590) {
    document.getElementById('Car2').style.display="block";
  }

}
	
	function ShowReg3(op) {
  document.getElementById('Car3').style.display='none';
  if (op == 590) {
    document.getElementById('Car3').style.display="block";
  }

}
	
	function ShowReg4(op) {
  document.getElementById('Car4').style.display='none';
  if (op == 590) {
    document.getElementById('Car4').style.display="block";
  }

}
	
	function ShowReg5(op) {
  document.getElementById('Car5').style.display='none';
  if (op == 590) {
    document.getElementById('Car5').style.display="block";
  }

}
	
	function ShowReg6(op) {
  document.getElementById('Car6').style.display='none';
  if (op == 590) {
    document.getElementById('Car6').style.display="block";
  }

}
	
	function ShowReg7(op) {
  document.getElementById('Car7').style.display='none';
  if (op == 590) {
    document.getElementById('Car7').style.display="block";
  }

}
	
	function ShowReg8(op) {
  document.getElementById('Car8').style.display='none';
  if (op == 590) {
    document.getElementById('Car8').style.display="block";
  }

}
	
	function ShowReg9(op) {
  document.getElementById('Car9').style.display='none';
  if (op == 590) {
    document.getElementById('Car9').style.display="block";
  }

}
	
	function ShowReg10(op) {
  document.getElementById('Car10').style.display='none';
  if (op == 590) {
    document.getElementById('Car10').style.display="block";
  }

}
	
	function ShowReg11(op) {
  document.getElementById('Car11').style.display='none';
  if (op == 590) {
    document.getElementById('Car11').style.display="block";
  }

}
	
	function ShowReg12(op) {
  document.getElementById('Car12').style.display='none';
  if (op == 590) {
    document.getElementById('Car12').style.display="block";
  }

}
	
	function ShowRegM1(op) {
  document.getElementById('Car13').style.display='none';
  if (op == 184) {
    document.getElementById('Car13').style.display="block";
  }

}
	
	function ShowRegM2(op) {
  document.getElementById('Car14').style.display='none';
  if (op == 184) {
    document.getElementById('Car14').style.display="block";
  }

}
	
	function ShowRegM3(op) {
  document.getElementById('Car15').style.display='none';
  if (op == 184) {
    document.getElementById('Car15').style.display="block";
  }

}
	
	function ShowRegM4(op) {
  document.getElementById('Car16').style.display='none';
  if (op == 184) {
    document.getElementById('Car16').style.display="block";
  }

}
	
	function ShowRegM5(op) {
  document.getElementById('Car17').style.display='none';
  if (op == 184) {
    document.getElementById('Car17').style.display="block";
  }

}

//Fim das funções para a opção de outros produtos e matéria prima


//Funções para a opção OUTROS PRODUTOS TOYS
	function ShowRegt1(op) {
  document.getElementById('Car').style.display='none';
  if (op == 168) {
    document.getElementById('Car').style.display="block";
  }

}
	function ShowRegt2(op) {
  document.getElementById('Car2').style.display='none';
  if (op == 168) {
    document.getElementById('Car2').style.display="block";
  }

}
	function ShowRegt3(op) {
  document.getElementById('Car3').style.display='none';
  if (op == 168) {
    document.getElementById('Car3').style.display="block";
  }

}
	function ShowRegt4(op) {
  document.getElementById('Car4').style.display='none';
  if (op == 168) {
    document.getElementById('Car4').style.display="block";
  }

}
	function ShowRegt5(op) {
  document.getElementById('Car5').style.display='none';
  if (op == 168) {
    document.getElementById('Car5').style.display="block";
  }

}
	function ShowRegt6(op) {
  document.getElementById('Car6').style.display='none';
  if (op == 168) {
    document.getElementById('Car6').style.display="block";
  }

}
	function ShowRegt7(op) {
  document.getElementById('Car7').style.display='none';
  if (op == 168) {
    document.getElementById('Car7').style.display="block";
  }

}
	function ShowRegt8(op) {
  document.getElementById('Car8').style.display='none';
  if (op == 168) {
    document.getElementById('Car8').style.display="block";
  }

}
	function ShowRegt9(op) {
  document.getElementById('Car9').style.display='none';
  if (op == 168) {
    document.getElementById('Car9').style.display="block";
  }

}
	function ShowRegt10(op) {
  document.getElementById('Car10').style.display='none';
  if (op == 168) {
    document.getElementById('Car10').style.display="block";
  }

}
	function ShowRegt11(op) {
  document.getElementById('Car11').style.display='none';
  if (op == 168) {
    document.getElementById('Car11').style.display="block";
  }

}
	function ShowRegt12(op) {
  document.getElementById('Car12').style.display='none';
  if (op == 168) {
    document.getElementById('Car12').style.display="block";
  }

}
	function ShowRegtmt1(op) {
  document.getElementById('mt1').style.display='none';
  if (op == 80) {
    document.getElementById('mt1').style.display="block";
  }

}
	function ShowRegtmt2(op) {
  document.getElementById('mt2').style.display='none';
  if (op == 80) {
    document.getElementById('mt2').style.display="block";
  }

}
	function ShowRegtmt3(op) {
  document.getElementById('mt3').style.display='none';
  if (op == 80) {
    document.getElementById('mt3').style.display="block";
  }

}
	function ShowRegtmt4(op) {
  document.getElementById('mt4').style.display='none';
  if (op == 80) {
    document.getElementById('mt4').style.display="block";
  }

}
	function ShowRegtmt5(op) {
  document.getElementById('mt5').style.display='none';
  if (op == 80) {
    document.getElementById('mt5').style.display="block";
  }

}





//Funções para a opção de diferente perfil de atualização de cadastro

	function ShowRegVE(op) {
  document.getElementById('Visita').style.display='none';
  document.getElementById('Expositor').style.display='none';

  if (op == 1) {
    document.getElementById('Visita').style.display="block";
  }
    if (op == 2) {
    document.getElementById('Expositor').style.display="block";
  }

}

//Fim das Funções para a opção de outros produtos e matéria prima


//Funções para a opção OUTROS PRODUTOS TOOls
	function ShowRegTools1(op) {
  document.getElementById('Car').style.display='none';
  if (op == 114) {
    document.getElementById('Car').style.display="block";
  }

}
	function ShowRegTools2(op) {
  document.getElementById('Car2').style.display='none';
  if (op == 114) {
    document.getElementById('Car2').style.display="block";
  }

}
	function ShowRegTools3(op) {
  document.getElementById('Car3').style.display='none';
  if (op == 114) {
    document.getElementById('Car3').style.display="block";
  }

}
	function ShowRegTools4(op) {
  document.getElementById('Car4').style.display='none';
  if (op == 114) {
    document.getElementById('Car4').style.display="block";
  }

}
	function ShowRegTools5(op) {
  document.getElementById('Car5').style.display='none';
  if (op == 114) {
    document.getElementById('Car5').style.display="block";
  }

}
	function ShowRegTools6(op) {
  document.getElementById('Car6').style.display='none';
  if (op == 114) {
    document.getElementById('Car6').style.display="block";
  }

}
	function ShowRegTools7(op) {
  document.getElementById('Car7').style.display='none';
  if (op == 114) {
    document.getElementById('Car7').style.display="block";
  }

}
	function ShowRegTools8(op) {
  document.getElementById('Car8').style.display='none';
  if (op == 114) {
    document.getElementById('Car8').style.display="block";
  }

}
	function ShowRegTools9(op) {
  document.getElementById('Car9').style.display='none';
  if (op == 114) {
    document.getElementById('Car9').style.display="block";
  }

}
	function ShowRegTools10(op) {
  document.getElementById('Car10').style.display='none';
  if (op == 114) {
    document.getElementById('Car10').style.display="block";
  }

}
	function ShowRegTools11(op) {
  document.getElementById('Car11').style.display='none';
  if (op == 114) {
    document.getElementById('Car11').style.display="block";
  }

}
	function ShowRegTools12(op) {
  document.getElementById('Car12').style.display='none';
  if (op == 114) {
    document.getElementById('Car12').style.display="block";
  }

}

	function ShowRegtoolsmt1(op) {
  document.getElementById('mt1').style.display='none';
  if (op == 24) {
    document.getElementById('mt1').style.display="block";
  }

}
	function ShowRegtoolsmt2(op) {
  document.getElementById('mt2').style.display='none';
  if (op == 24) {
    document.getElementById('mt2').style.display="block";
  }

}
	function ShowRegtoolsmt3(op) {
  document.getElementById('mt3').style.display='none';
  if (op == 24) {
    document.getElementById('mt3').style.display="block";
  }

}
	function ShowRegtoolsmt4(op) {
  document.getElementById('mt4').style.display='none';
  if (op == 24) {
    document.getElementById('mt4').style.display="block";
  }

}
	function ShowRegtoolsmt5(op) {
  document.getElementById('mt5').style.display='none';
  if (op == 24) {
    document.getElementById('mt5').style.display="block";
  }

}








	
  function validaForm()
	   {
		   msg="";
		   if (window.document.form.nome.value=="") {msg=msg+"O preenchimento do campo Nome \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.email.value=="") {msg=msg+"O preenchimento do campo Email \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.mensagem.value=="") {msg=msg+"O preenchimento do campo Mensagem \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.fonte.value=="") {msg=msg+"Por favor informe como entrou em contato conosco .\n";}

		   if (msg=="")
		    {return true;}
		   else
		    {alert(msg); return false;}
	   }	
  function validaForm_contato_rev()
	   {
		   msg="";
		   if (window.document.form.nome.value=="") {msg=msg+"O preenchimento do campo Nome \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.email.value=="") {msg=msg+"O preenchimento do campo Email \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.mensagem.value=="") {msg=msg+"O preenchimento do campo Mensagem \u00e9 obrigat\u00f3rio.\n";}

		   if (msg=="")
		    {return true;}
		   else
		    {alert(msg); return false;}
	   }

	   
  function validaForm_visita()
	   {
		   msg="";
		   if (window.document.form_visita.razao.value=="") {msg=msg+"O preenchimento do campo Raz\u00e3o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visita.pnome.value=="") {msg=msg+"O preenchimento do campo Primeiro Nome \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visita.email.value=="") {msg=msg+"O preenchimento do campo Email \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visita.endereco.value=="") {msg=msg+"O preenchimento do campo Endere\u00e7o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visita.cep.value=="") {msg=msg+"O preenchimento do campo CEP \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visita.cidade.value=="") {msg=msg+"O preenchimento do campo Cidade \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visita.estado.value=="") {msg=msg+"Por favor escolha o Estado de sua localiza\u00e7\u00e3o.\n";}
		   if (window.document.form_visita.telefone.value=="") {msg=msg+"O preenchimento do campo telefone \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visita.ramo.value=="") {msg=msg+"Por favor escolha o seu ramo de atua\u00e7\u00e3o.\n";}
		   if (window.document.form_visita.setor.value=="") {msg=msg+"Por favor escolha o setor de interesse de sua visita";}
		   if (window.document.form_visita.objetivo.value=="") {msg=msg+"Por favor informe o objetivo de sua visita";}

		   if (msg=="")
		    {return true;}
		   else
		    {alert(msg); return false;}
	   }
	   
	     function validaForm_visitanew()
	   {
		   msg="";
		   if (window.document.form_visitante.razao.value=="") {msg=msg+"O preenchimento do campo Raz\u00e3o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visitante.pnome.value=="") {msg=msg+"O preenchimento do campo Primeiro Nome \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visitante.email.value=="") {msg=msg+"O preenchimento do campo Email \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visitante.endereco.value=="") {msg=msg+"O preenchimento do campo Endere\u00e7o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visitante.cep.value=="") {msg=msg+"O preenchimento do campo CEP \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visitante.cidade.value=="") {msg=msg+"O preenchimento do campo Cidade \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visitante.estado.value=="") {msg=msg+"Por favor escolha o Estado de sua localiza\u00e7\u00e3o.\n";}
		   if (window.document.form_visitante.telefone.value=="") {msg=msg+"O preenchimento do campo telefone \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_visitante.ramo.value=="") {msg=msg+"O campo ramo \u00e9 obrigat\u00f3rio.\n";}

		   if (msg=="")
		    {return true;}
		   else
		    {alert(msg); return false;}
	   }
	   
	   
	   
  function validaForm_expor()
	   {
		   msg="";
		   if (window.document.form_exponha.razao.value=="") {msg=msg+"O preenchimento do campo Raz\u00e3o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_exponha.endereco.value=="") {msg=msg+"O preenchimento do campo Endere\u00e7o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_exponha.cidade.value=="") {msg=msg+"O preenchimento do campo Cidade \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_exponha.estado.value=="") {msg=msg+"Por favor escolha o Estado de sua localiza\u00e7\u00e3o.\n";}
		   if (window.document.form_exponha.cep.value=="") {msg=msg+"O preenchimento do campo CEP \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_exponha.telefone.value=="") {msg=msg+"Por favor escolha o Telefone de sua localiza\u00e7\u00e3o.\n";}
		   if (window.document.form_exponha.email.value=="") {msg=msg+"O preenchimento do campo Email \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_exponha.contato.value=="") {msg=msg+"O preenchimento do campo Contato \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_exponha.prod_expo.value=="") {msg=msg+"Por favor informe seus produtos a serem expostos.\n";}

		   if (msg=="")
		    {return true;}
		   else
		    {alert(msg); return false;}
	   }
	   
	   
	   
	     function validaForm_exporhouse()
	   {
		   msg="";
		   if (window.document.form.razao.value=="") {msg=msg+"O preenchimento do campo Raz\u00e3o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.endereco.value=="") {msg=msg+"O preenchimento do campo Endere\u00e7o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.cidade.value=="") {msg=msg+"O preenchimento do campo Cidade \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.estado.value=="") {msg=msg+"Por favor escolha o Estado de sua localiza\u00e7\u00e3o.\n";}
		   if (window.document.form.cep.value=="") {msg=msg+"O preenchimento do campo CEP \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.telefone.value=="") {msg=msg+"Por favor escolha o Telefone de sua localiza\u00e7\u00e3o.\n";}
		   if (window.document.form.email.value=="") {msg=msg+"O preenchimento do campo Email \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.contato.value=="") {msg=msg+"O preenchimento do campo Contato \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.produto1.value=="") {msg=msg+"O preenchimento do campo Produto 1 \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.marca1.value=="") {msg=msg+"O preenchimento do campo Marca 1 \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.materiaprima1.value=="") {msg=msg+"O preenchimento do campo Mat\u00e9ria-Prima 1 \u00e9 obrigat\u00f3rio.\n";}

		   if (msg=="")
		    {return true;}
		   else
		    {alert(msg); return false;}
	   }
	   
	   
	   
	     function validaForm_exporatualiza()
	   {
		   msg="";
		   if (window.document.form.razao.value=="") {msg=msg+"O preenchimento do campo Raz\u00e3o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.endereco.value=="") {msg=msg+"O preenchimento do campo Endere\u00e7o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.cidade.value=="") {msg=msg+"O preenchimento do campo Cidade \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.estado.value=="") {msg=msg+"Por favor escolha o Estado de sua localiza\u00e7\u00e3o.\n";}
		   if (window.document.form.cep.value=="") {msg=msg+"O preenchimento do campo CEP \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.telefone.value=="") {msg=msg+"Por favor escolha o Telefone de sua localiza\u00e7\u00e3o.\n";}
		   if (window.document.form.ncompleto_c1.value=="") {msg=msg+"O preenchimento do campo Nome Completo do Contato 1 \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.email_c1.value=="") {msg=msg+"O preenchimento do campo Email do Contato 1 \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.produto1.value=="") {msg=msg+"O preenchimento do campo Produto 1 \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form.marca1.value=="") {msg=msg+"O preenchimento do campo Marca 1 \u00e9 obrigat\u00f3rio.\n";}

		   if (msg=="")
		    {return true;}
		   else
		    {alert(msg); return false;}
	   }
   
  function validaForm_publicidade_revista()
	   {
		   msg="";
		   if (window.document.form_publicidade.nome.value=="") {msg=msg+"O preenchimento do campo Nome \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_publicidade.empresa.value=="") {msg=msg+"O preenchimento do campo Empresa \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_publicidade.departamento.value=="") {msg=msg+"O preenchimento do campo Departamento \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_publicidade.cargo.value=="") {msg=msg+"O preenchimento do campo Cargo \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_publicidade.endereco.value=="") {msg=msg+"O preenchimento do campo Endere\u00e7o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_publicidade.estado.value=="") {msg=msg+"Por favor escolha o Estado de sua localiza\u00e7\u00e3o.\n";}
		   if (window.document.form_publicidade.telefone.value=="") {msg=msg+"O preenchimento do campo telefone \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_publicidade.email.value=="") {msg=msg+"O preenchimento do campo Email \u00e9 obrigat\u00f3rio.\n";}	

		   if (msg=="")
		    {return true;}
		   else
		    {alert(msg); return false;}
	   }
	   
	  function validaForm_anuncie_site()
	   {
		   msg="";
		   
		   if (window.document.form_site.empresa.value=="") {msg=msg+"O preenchimento do campo Empresa \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_site.contato.value=="") {msg=msg+"O preenchimento do campo Contato \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_site.telefone.value=="") {msg=msg+"O preenchimento do campo telefone \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_site.email.value=="") {msg=msg+"O preenchimento do campo Email \u00e9 obrigat\u00f3rio.\n";}	

		   if (msg=="")
		    {return true;}
		   else
		    {alert(msg); return false;}
	   }  
	   
	    
	   
	   function validaForm_cadastrox()
	   {
		   msg="";
		  if (window.document.form_exponha.razao.value=="") {msg=msg+"O preenchimento do campo Raz\u00e3o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_exponha.endereco.value=="") {msg=msg+"O preenchimento do campo Endere\u00e7o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_exponha.cidade.value=="") {msg=msg+"O preenchimento do campo Cidade \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_exponha.estado.value=="") {msg=msg+"Por favor escolha o Estado de sua localiza\u00e7\u00e3o.\n";}
		   if (window.document.form_exponha.cep.value=="") {msg=msg+"O preenchimento do campo CEP \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_exponha.telefone.value=="") {msg=msg+"Por favor escolha o Telefone de sua localiza\u00e7\u00e3o.\n";}
		   if (window.document.form_exponha.email.value=="") {msg=msg+"O preenchimento do campo Email \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_exponha.contato.value=="") {msg=msg+"O preenchimento do campo Contato \u00e9 obrigat\u00f3rio.\n";}

		   if (msg=="")
		    {return true;}
		   else
		    {alert(msg); return false;}
	   }
	   
	     	   
	     function validaForm_palestra()
	   {
		   msg="";
	       if (window.document.fichapalestra.empresa.value=="") {msg=msg+"O preenchimento do campo Empresa \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.fichapalestra.nome.value=="") {msg=msg+"O preenchimento do campo Nome \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.fichapalestra.email.value=="") {msg=msg+"Por favor escolha o Email de sua localiza\u00e7\u00e3o.\n";}
		   if (window.document.fichapalestra.telefone.value=="") {msg=msg+"O preenchimento do campo Telefone \u00e9 obrigat\u00f3rio.\n";}

		   if (msg=="")
		    {return true;}
		   else
		    {alert(msg); return false;}
	   }
	   
	     function validaForm_caravana()
	   {
		   msg="";
	       if (window.document.form_caravana.nome.value=="") {msg=msg+"O preenchimento do campo Nome Completo \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_caravana.email.value=="") {msg=msg+"O preenchimento do campo Email \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_caravana.telefone.value=="") {msg=msg+"O preenchimento do campo Telefone \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_caravana.origem.value=="") {msg=msg+"O preenchimento do campo Origem \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_caravana.componentes.value=="") {msg=msg+"Por favor informe o n\u00famero estimado de componentes.\n";}
		   if (window.document.form_caravana.veiculos.value=="") {msg=msg+"Por favor informe o n\u00famero estimado de ve\u00edculos.\n";}

		   if (msg=="")
		    {return true;}
		   else
		    {alert(msg); return false;}
	   }
	   
	   
	   
	     function validaForm_pr_est()
	   {
		   msg="";
		   if (window.document.form_pr_est.intituicao.value=="") {msg=msg+"Por favor informe a sua institui\u00e7\u00e3o de ensino.\n";}
		   if (window.document.form_pr_est.pcoordenador.value=="") {msg=msg+"O preenchimento do campo professor responsavel \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_pr_est.endereco_inst.value=="") {msg=msg+"O preenchimento do campo endereco da institui\u00e7\u00e3o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_pr_est.cidade_inst.value=="") {msg=msg+"Por favor informe a cidade da institui\u00e7\u00e3o.\n";}
		   if (window.document.form_pr_est.estado_inst.value=="") {msg=msg+"O preenchimento do campo Estado da institui\u00e7\u00e3o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_pr_est.cep_inst.value=="") {msg=msg+"O preenchimento do campo CEP da institui\u00e7\u00e3o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_pr_est.telefone_inst.value=="") {msg=msg+"Por favor informe o telefone da institui\u00e7\u00e3o.\n";}
		   if (window.document.form_pr_est.nome_est.value=="") {msg=msg+"O preenchimento do campo nome do(a) estudante \u00e9 obrigat\u00f3rio.\n";}	   
		   if (window.document.form_pr_est.endereco_est.value=="") {msg=msg+"O preenchimento do campo endere\u00e7o do(a) estudante \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_pr_est.cidade_est.value=="") {msg=msg+"O preenchimento do campo cidade do(a) estudante \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_pr_est.estado_est.value=="") {msg=msg+"O preenchimento do campo estado do(a) estudante \u00e9 obrigat\u00f3rio.\n";}   
		   if (window.document.form_pr_est.cep_est.value=="") {msg=msg+"O preenchimento do campo CEP do(a) estudante \u00e9 obrigat\u00f3rio.\n";}  
		   if (window.document.form_pr_est.telefone_est.value=="") {msg=msg+"O preenchimento do campo telefone do(a) estudante \u00e9 obrigat\u00f3rio.\n";}  
		   if (window.document.form_pr_est.email_est.value=="") {msg=msg+"O preenchimento do campo email do(a) estudante \u00e9 obrigat\u00f3rio.\n";}  
		   if (window.document.form_pr_est.nproduto.value=="") {msg=msg+"Por favor informe o nome do produto.\n";} 
		   if (window.document.form_pr_est.origem.value=="") {msg=msg+"Por favor informe a origem do produto.\n";} 
		   if (window.document.form_pr_est.condicao.value=="") {msg=msg+"Por favor informe a condi\u00e7\u00e3o do produto.\n";}
		   if (window.document.form_pr_est.categoria.value=="") {msg=msg+"Por favor informe a categoria do produto.\n";}
		   if (window.document.form_pr_est.finalidade.value=="") {msg=msg+"Por favor informe a finalidade do produto.\n";}
		   if (window.document.form_pr_est.diferencial.value=="") {msg=msg+"Por favor informe o diferencial do produto.\n";}
		   if (window.document.form_pr_est.especificacoes.value=="") {msg=msg+"Por favor informe as especifica\u00e7\u00f5es t\u00e9cnicas do produto.\n";}
		   if (window.document.form_pr_est.quer.checked != true) {msg=msg+"Para confirmar sua incri\u00e7\u00e3o, e necess\u00e1rio estar de acordo com o regulamento.\n";};
		   if (window.document.form_pr_est.arq_1.value == "" && window.document.form_pr_est.arq_2.value == "" && window.document.form_pr_est.arq_3.value == "") {msg=msg+"Por favor, insira ao menos dois arquivos.\n";};
		   if (window.document.form_pr_est.arq_1.value == "" && window.document.form_pr_est.arq_2.value == "" && window.document.form_pr_est.arq_3.value != "") {msg=msg+"Por favor, insira ao menos dois arquivos.\n";};
		   if (window.document.form_pr_est.arq_1.value == "" && window.document.form_pr_est.arq_2.value != "" && window.document.form_pr_est.arq_3.value == "") {msg=msg+"Por favor, insira ao menos dois arquivos.\n";};
		   if (window.document.form_pr_est.arq_1.value != "" && window.document.form_pr_est.arq_2.value == "" && window.document.form_pr_est.arq_3.value == "") {msg=msg+"Por favor, insira ao menos dois arquivos.\n";};

		   if (msg=="")
		    {document.getElementById("loader").style.display = "block"; return true;}
		   else
		    {alert(msg); return false;}
	   }
	   
	   
	   
	     function validaForm_pr_pro()
	   {
		   msg="";
		   if (window.document.form_pr_pro.razao.value=="") {msg=msg+"O preenchimento do campo Raz\u00e3o Social \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_pr_pro.cnpj.value=="") {msg=msg+"O preenchimento do campo CNPJ \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_pr_pro.nome_pro.value=="") {msg=msg+"O preenchimento do campo nome \u00e9 obrigat\u00f3rio.\n";}	
		   if (window.document.form_pr_pro.cargo.value=="") {msg=msg+"O preenchimento do campo Cargo \u00e9 obrigat\u00f3rio.\n";}	   
		   if (window.document.form_pr_pro.endereco_pro.value=="") {msg=msg+"O preenchimento do campo endere\u00e7o \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_pr_pro.cidade_pro.value=="") {msg=msg+"O preenchimento do campo cidade \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_pr_pro.estado_pro.value=="") {msg=msg+"O preenchimento do campo estado \u00e9 obrigat\u00f3rio.\n";}   
		   if (window.document.form_pr_pro.cep_pro.value=="") {msg=msg+"O preenchimento do campo CEP \u00e9 obrigat\u00f3rio.\n";}  
		   if (window.document.form_pr_pro.telefone_pro.value=="") {msg=msg+"O preenchimento do campo telefone \u00e9 obrigat\u00f3rio.\n";}  
		   if (window.document.form_pr_pro.email_pro.value=="") {msg=msg+"O preenchimento do campo email \u00e9 obrigat\u00f3rio.\n";}  
		   if (window.document.form_pr_pro.nome_designer.value=="") {msg=msg+"Por favor informe o designer da peça.\n";}	   
		   if (window.document.form_pr_pro.endereco_designer.value=="") {msg=msg+"O preenchimento do campo endere\u00e7o do designer \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_pr_pro.cidade_designer.value=="") {msg=msg+"Por favor informe a cidade do designer.\n";}
		   if (window.document.form_pr_pro.estado_designer.value=="") {msg=msg+"Por favor informe estado do designer.\n";}   
		   if (window.document.form_pr_pro.cep_designer.value=="") {msg=msg+"Por favor informe o CEP \u00e9 do designer.\n";}  
		   if (window.document.form_pr_pro.telefone_designer.value=="") {msg=msg+"Por favor informe o telefone do designer.\n";}  
		   if (window.document.form_pr_pro.email_designer.value=="") {msg=msg+"Por favor informe o email do designer.\n";}  		   
		   if (window.document.form_pr_pro.nproduto.value=="") {msg=msg+"Por favor informe o nome do produto.\n";} 
		   if (window.document.form_pr_pro.origem.value=="") {msg=msg+"Por favor informe a origem do produto.\n";} 
		   if (window.document.form_pr_pro.condicao.value=="") {msg=msg+"Por favor informe a condicao do produto.\n";}
		   if (window.document.form_pr_pro.categoria.value=="") {msg=msg+"Por favor informe a categoria do produto.\n";}
		   if (window.document.form_pr_pro.finalidade.value=="") {msg=msg+"Por favor informe a finalidade do produto.\n";}
		   if (window.document.form_pr_pro.diferencial.value=="") {msg=msg+"Por favor informe o diferencial do produto.\n";}
		   if (window.document.form_pr_pro.especificacoes.value=="") {msg=msg+"Por favor informe as especifica\u00e7\u00f5es tecnicas do produto.\n";}
		   if (window.document.form_pr_pro.quer.checked != true) {msg=msg+"Para confirmar sua incricao, e necessario estar de acordo com o regulamento.\n";};
		   
		   if (window.document.form_pr_pro.arq_1.value == "" && window.document.form_pr_pro.arq_2.value == "" && window.document.form_pr_pro.arq_3.value == "") {msg=msg+"Por favor, insira ao menos dois arquivos.\n";};
		   if (window.document.form_pr_pro.arq_1.value == "" && window.document.form_pr_pro.arq_2.value == "" && window.document.form_pr_pro.arq_3.value != "") {msg=msg+"Por favor, insira ao menos dois arquivos.\n";};
		   if (window.document.form_pr_pro.arq_1.value == "" && window.document.form_pr_pro.arq_2.value != "" && window.document.form_pr_pro.arq_3.value == "") {msg=msg+"Por favor, insira ao menos dois arquivos.\n";};
		   if (window.document.form_pr_pro.arq_1.value != "" && window.document.form_pr_pro.arq_2.value == "" && window.document.form_pr_pro.arq_3.value == "") {msg=msg+"Por favor, insira ao menos dois arquivos.\n";};

		   if (msg=="")
		    {document.getElementById("loader").style.display = "block"; return true;}
		   else
		    {alert(msg); return false;}
	   }
	   
	   
	   
	     function validaForm_gia()
	   {
		   msg="";
		   if (window.document.form_gia.nome_loja.value=="") {msg=msg+"Por favor informe o nome da sua loja.\n";}
		   if (window.document.form_gia.cnpj.value=="") {msg=msg+"Por favor informe o CNPJ da sua loja.\n";}
		   if (window.document.form_gia.endereco_loja.value=="") {msg=msg+"O preenchimento do campo endereco da loja \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_gia.cidade.value=="") {msg=msg+"Por favor informe a cidade da loja.\n";}
		   if (window.document.form_gia.estado.value=="") {msg=msg+"O preenchimento do campo Estado da loja \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_gia.cep.value=="") {msg=msg+"O preenchimento do campo CEP da loja \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_gia.telefone.value=="") {msg=msg+"Por favor informe o telefone da loja.\n";}
		   if (window.document.form_gia.contato.value=="") {msg=msg+"Por favor informe o contato da loja.\n";}	   
		   if (window.document.form_gia.email.value=="") {msg=msg+"O preenchimento do campo email \u00e9 obrigat\u00f3rio.\n";}  
		   if (window.document.form_gia.pergunta_1.value=="") {msg=msg+"Por favor responda a pergunta 1.\n";} 
		   if (window.document.form_gia.pergunta_2.value=="") {msg=msg+"Por favor responda a pergunta 2.\n";} 
		   if (window.document.form_gia.pergunta_3.value=="") {msg=msg+"Por favor responda a pergunta 3.\n";}
		   if (window.document.form_gia.pergunta_4.value=="") {msg=msg+"Por favor responda a pergunta 4.\n";}
		   if (window.document.form_gia.pergunta_5.value=="") {msg=msg+"Por favor responda a pergunta 5.\n";} 
		   if (window.document.form_gia.pergunta_6.value=="") {msg=msg+"Por favor responda a pergunta 5.\n";}
		   if (window.document.form_gia.pergunta_7.value=="") {msg=msg+"Por favor responda a pergunta 6.\n";}
		   
		   if (window.document.form_gia.arq_1.value == "" && window.document.form_gia.arq_2.value == "" && window.document.form_gia.arq_3.value == ""&& window.document.form_gia.arq_4.value == ""&& window.document.form_gia.arq_5.value == "") {msg=msg+"Por favor, insira ao menos tres arquivos.\n";};
		   
		   if (window.document.form_gia.arq_1.value !== "" && window.document.form_gia.arq_2.value == "" && window.document.form_gia.arq_3.value == ""&& window.document.form_gia.arq_4.value == ""&& window.document.form_gia.arq_5.value == "") {msg=msg+"Por favor, insira ao menos tres arquivos.\n";};
		   
		   if (window.document.form_gia.arq_1.value == "" && window.document.form_gia.arq_2.value !== "" && window.document.form_gia.arq_3.value == ""&& window.document.form_gia.arq_4.value == ""&& window.document.form_gia.arq_5.value == "") {msg=msg+"Por favor, insira ao menos tres arquivos.\n";};
		   
		   if (window.document.form_gia.arq_1.value == "" && window.document.form_gia.arq_2.value == "" && window.document.form_gia.arq_3.value !== ""&& window.document.form_gia.arq_4.value == ""&& window.document.form_gia.arq_5.value == "") {msg=msg+"Por favor, insira ao menos tres arquivos.\n";};
		   
		   if (window.document.form_gia.arq_1.value == "" && window.document.form_gia.arq_2.value == "" && window.document.form_gia.arq_3.value == ""&& window.document.form_gia.arq_4.value !== ""&& window.document.form_gia.arq_5.value !== "") {msg=msg+"Por favor, insira ao menos tres arquivos.\n";};
		   
		   if (window.document.form_gia.arq_1.value !== "" && window.document.form_gia.arq_2.value !== "" && window.document.form_gia.arq_3.value == ""&& window.document.form_gia.arq_4.value == ""&& window.document.form_gia.arq_5.value == "") {msg=msg+"Por favor, insira ao menos tres arquivos.\n";};
		   
		   if (window.document.form_gia.arq_1.value !== "" && window.document.form_gia.arq_2.value == "" && window.document.form_gia.arq_3.value !== ""&& window.document.form_gia.arq_4.value == ""&& window.document.form_gia.arq_5.value == "") {msg=msg+"Por favor, insira ao menos tres arquivos.\n";};
		   
		   if (window.document.form_gia.arq_1.value == "" && window.document.form_gia.arq_2.value !== "" && window.document.form_gia.arq_3.value !== ""&& window.document.form_gia.arq_4.value == ""&& window.document.form_gia.arq_5.value == "") {msg=msg+"Por favor, insira ao menos tres arquivos.\n";};

		   if (msg=="")
		    {document.getElementById("loader").style.display = "block"; return true;}
		   else
		    {alert(msg); return false;}
	   }
	   
	   
	   
	   
	     function validaForm_cadastro()
	   {
		   msg="";
		   
		   if (window.document.form_cadastro.cnpj.value=="") {msg=msg+"O preenchimento do campo CNPJ \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_cadastro.insc.value=="") {msg=msg+"O preenchimento do campo insc \u00e9 obrigat\u00f3rio.\n";}
		   if (window.document.form_cadastro.razao.value=="") {msg=msg+"O preenchimento do campo Raz\u00e3o \u00e9 obrigat\u00f3rio.\n";

		   if (msg=="")
		    {return true;}
		   else
		    {alert(msg); return false;}
	   }
	   


	   
	   
	   
	   
	   
	   
	   
	   }