function FrontPage_Form1_Validator(theForm)
{

  if (theForm.nomeform.value.length < 6)
  {
    alert("Por favor, digite pelo menos 6 caracteres no campo \"Nome Completo\".");
    theForm.nomeform.focus();
    return (false);
  }

  if (theForm.nomeform.value.length > 150)
  {
    alert("Por favor, digite no maximo 150 caracteres no campo \"Nome Completo\".");
    theForm.nomeform.focus();
    return (false);
  }

  if (theForm.cpf.value.length < 1 && theForm.cnpj.value.length < 1)
  {
    alert("Por favor, preencha o campo \"CPF\" ou \"CNPJ\".");
    theForm.cpf.focus();
    return (false);
  }


 
  return (true);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


// INICIALIZA JS DA PAGINA 

(function($)
{
	$(function()
	{
		$('input:text').setMask();
	}
);

})(jQuery);


$(function() {
	$('.ban_mask').show(); //exibe a div pai
	$('.ban_mask').cycle({
		fx:        'cover',
       	delay:    -2000,
		before: function(curr, next, opts) {
			opts.animOut.opacity = 0;
		},
		timeout: 3500,
		speed: 800,
		next:   '.next',
		prev:   '.previous'
	});
});
