window.___gcfg = {lang: 'pt-BR'};

  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();

function Verifica()
	{
		
		if(!document.form1.cidades[0].checked && !document.form1.cidades[1].checked && !document.form1.cidades[2].checked && !document.form1.cidades[3].checked && !document.form1.cidades[4].checked )
		{
			alert('Selecione a Cidade mais proxima');
			return false;
		}
		else
		if(document.form1.Nome.value == "")
		{
			alert('Preencha o campo Nome');
			return false;
		}
		else
		if(document.form1.EMAIL.value == "")
		{
			alert('Preencha o campo Email');
			return false;
		}
		else
		if (document.form1.EMAIL.value.indexOf("@") < 1)
  		{
    		alert('Email inv\u00E1lido');
			return false;
 		}
		else
		return true;
		
	}
	
	


function Apaga(id, valor)
	{
		if(document.getElementById(id).value == valor)
			document.getElementById(id).value = "";		  
	}
function Mostra(id, valor)
	{
		if(document.getElementById(id).value == "")
			document.getElementById(id).value = valor;
	}

function SomenteNumero(e)
	{
		var tecla=(window.event)?event.keyCode:e.which;   
		if((tecla>47 && tecla<58)) return true;
		else{
				if (tecla==8 || tecla==0) return true;
				else  return false;
			}
	}
	
function VerificaContato()
	{
		
		
		if(document.formCadastro1.filial.selectedIndex == 0)
		{
			alert("Selecione uma Filial");
			return false;
		}
		else
		if(document.formCadastro1.nome.value == "Nome" || document.formCadastro1.nome.value == "")
		{
		
			alert("campo Nome e de preenchimento obrigatorio")
			return false;
		}
		else
		if(document.formCadastro1.email.value == "E-mail" || document.formCadastro1.email.value == "")
		{
			alert("campo E-mail e de preenchimento obrigatorio")
			return false;
		}
		else
		if (document.formCadastro1.email.value.indexOf("@") < 1)
		{
			alert('Email inv\u00E1lido');
			document.formCadastro1.email.focus();
			return false;
		}
		else
		  return true;
	}
	
	

	
