// JavaScript Document


function contato()
{
nome = document.contatos.nome.value
mail = document.contatos.email.value
cidade = document.contatos.cidade.value
assun = document.contatos.assunto.value
msg = document.contatos.mensagem.value

	if(nome.length == "")
	{
		alert('Preecha o Campo Nome')
		return false
	}
	if(mail.length == "")
	{
		alert('Informe seu E-mail')
		return false
	}
	if(cidade.length == "")
	{
		alert('Informe a Cidade')
		return false
	}
	if(assun.length == "")
	{
		alert('Indique o Assunto')
		return false
	}
	if(msg.length == "")
	{
		alert('Escreva sua Mensagem')
		return false
	}
	else
	{
		return true	
	}
		

}



///////////////////////// -------------------------------------

function promocao()
{
vid = document.promocoes.CPR_descricao.value

	if(vid.length == "")
	{
		alert('Preecha o Campo de Informações')
		return false
	}
	else
	{
		return true	
	}
		

}



//////////////////// -------------------------------------

function mapa()
{
vid = document.mapas.CMP_caminho.value

	if(vid.length == "")
	{
		alert('Informe o Caminho de Incorporação Fornecido pelo Google Mapas')
		return false
	}
	else
	{
		return true	
	}
		

}


////////////////////////// ---------------------------------

function addvideos()
{
vid = document.videos.CVD_caminho.value

	if(vid.length == "")
	{
		alert('Informe o Caminho de Incorporação Fornecido pelo YouTube')
		return false
	}
	else
	{
		return true	
	}
		

}


//////////////// -------------------------

function altsenha()
{

email=document.senha.CLI_email.value
antiga=document.senha.antiga.value
nova=document.senha.nova.value
conf=document.senha.confirma.value

if (email.length == "")
	{
		alert("Preencha o Campo Login/E-mail")	
		return false
	}
if (antiga.length == "")
	{
		alert("Preencha o Campo Senha Atual")	
		return false
	}
if (nova.length == "")
	{
		alert("Preencha o Campo Nova Senha")	
		return false
	}
if (conf.length == "")
	{
		alert("Preencha o Campo Confirma")	
		return false
	}
else
	{
		return true	
	}

}


/////////////////// -----------------------

function clientes()
{
nome=document.conta.CLI_nome.value
atividade=document.conta.CLI_atividade.value
ende=document.conta.CLI_endereco.value
bairro=document.conta.CLI_bairro.value
cidade=document.conta.CLI_cidade.value
tel=document.conta.CLI_telefone.value
key=document.conta.CLI_keywords.value


if (nome.length == "")
	{
		alert("Preencha o Campo Nome")	
		return false
	}
if (atividade.length == "")
	{
		alert("Preencha o Campo Atividade")	
		return false
	}
if (ende.length == "")
	{
		alert("Preencha o Campo Endereço")	
		return false
	}
if (bairro.length == "")
	{
		alert("Preencha o Campo Bairro")	
		return false
	}
if (cidade.length == "")
	{
		alert("Preencha o Campo Cidade")	
		return false
	}
if (key.length == "")
	{
		alert("Preencha o Campo Palavras Chavess")	
		return false
	}
else
	{
		return true	
	}

}



//////////////////// ---------------------------


function patrocinio()
{
img = document.patro.image.value

	if(img.length == "")
	{
		alert('Informe um arquivo do Tipo Imagem. Exemplos: jpg, bmp, png, gif ou wmf')
		return false
	}
	else
	{
		return true	
	}
		

}


///////////////////////////////// ---------------------


function certificados()
{
img = document.certificado.image.value

	if(img.length == "")
	{
		alert('Informe um arquivo do Tipo Imagem. Exemplos: jpg, bmp, png, gif ou wmf')
		return false
	}
	else
	{
		return true	
	}
		

}


////////////////////////// -------------------------------

function imagens()
{
img = document.fotos.image.value

	if(img.length == "")
	{
		alert('Informe um arquivo do Tipo Imagem. Exemplos: jpg, bmp, png, gif ou wmf')
		return false
	}
	else
	{
		return true	
	}
		

}


//////////////////// -----------------------------------


function logotipo()
{
img = document.logo.image.value

	if(img.length == "")
	{
		alert('Informe um arquivo do Tipo Imagem. Exemplos: jpg, bmp, png, gif ou wmf')
		return false
	}
	else
	{
		return true	
	}
		

}


//////////////////////////////// ------------------------------


function infocli()
{
info = document.informacao.info.value

	if(info.length == "")
	{
		alert('Você não pode Cadastrar Informações em Branco ou Nulas')
		return false
	}
	else
	{
		return true	
	}
		

}