function verificaForm() {
	var nome					= document.getElementById("nome");		
	var endereco				= document.getElementById("endereco");
	var cep						= document.getElementById("cep");
	var estado					= document.getElementById("estado");	
	var cidade					= document.getElementById("cidade");	
	var telefone1				= document.getElementById("telefone1");
	var telefone2				= document.getElementById("telefone2");
	var email					= document.getElementById("email");	
	var senhaCliente			= document.getElementById("senha");
	var confirmacaoSenha		= document.getElementById("confirmarSenha");
		
	erroObrigatorio = false;	
	virgulaObrigatorio = "";
	mensagemObrigatorio = "O(s) campo(s) ";
	erroIncorreto = false;	
	virgulaIncorreto = "";
	mensagemIncorreto = "O(s) campo(s) ";
	
	if(nome.value.trim() == ""){
		mensagemObrigatorio += "Nome";
		virgulaObrigatorio = ", ";		
		erroObrigatorio = true;
	}	
	
	if(endereco.value == ""){
		mensagemObrigatorio += virgulaObrigatorio + "Endereço";		
		virgulaObrigatorio = ", ";		
		erroObrigatorio = true;
	}	
	
	if(cep.value == ""){
		mensagemObrigatorio += virgulaObrigatorio + "CEP";		
		virgulaObrigatorio = ", ";		
		erroObrigatorio = true;
	}
	else if(cep.value.length < 10) {
		mensagemIncorreto += virgulaIncorreto + "CEP";		
		virgulaIncorreto = ", ";		
		erroIncorreto = true;		
	}	
	
	if(estado.value == "0"){
		mensagemObrigatorio += virgulaObrigatorio + "Estado";		
		virgulaObrigatorio = ", ";		
		erroObrigatorio = true;
	}	
			
	if(cidade.value == "0"){
		mensagemObrigatorio += virgulaObrigatorio + "Cidade";		
		virgulaObrigatorio = ", ";		
		erroObrigatorio = true;
	}	
	
	if(telefone1.value == ""){
		mensagemObrigatorio += virgulaObrigatorio + "Telefone 1";		
		virgulaObrigatorio = ", ";		
		erroObrigatorio = true;
	} else if(telefone1.value.length < 14){
		mensagemIncorreto += virgulaIncorreto + "Telefone 1";		
		virgulaIncorreto = ", ";		
		erroIncorreto = true;
	}
	
	if(telefone2.value != "" && telefone2.value.length < 14){
		mensagemIncorreto += virgulaIncorreto + "Telefone 2";		
		virgulaIncorreto = ", ";		
		erroIncorreto = true;
	} 	
	
	if(email.value == ""){
		mensagemObrigatorio += virgulaObrigatorio + "E-mail";		
		virgulaObrigatorio = ", ";		
		erroObrigatorio = true;
	}
	else if(!isEmail(email.value)){
		mensagemObrigatorio += virgulaObrigatorio + "E-mail";		
		virgulaObrigatorio = ", ";		
		erroObrigatorio = true;
	}
		
	if(senhaCliente.value == ""){
		mensagemObrigatorio += virgulaObrigatorio + "Senha";		
		virgulaObrigatorio = ", ";		
		erroObrigatorio = true;
	}
		
	if(confirmacaoSenha.value == ""){
		mensagemObrigatorio += virgulaObrigatorio + "Confirmar senha";		
		virgulaObrigatorio = ", ";		
		erroObrigatorio = true;
	}	
	
	if(confirmacaoSenha.value != "" && senhaCliente.value != "" &&
		confirmacaoSenha.value != senhaCliente.value){		
		alert("A senha não confere com a confirmação de senha!");		
		return false;
	}
	
	if (erroObrigatorio) {		
		alert(mensagemObrigatorio + " é(são) obrigatório(s)!");
		return false;				
	}
	
	if (erroIncorreto) {		
		alert(mensagemIncorreto + " está(ão) preenchido(s) incorretamente!");
		return false;				
	}
	
	document.getElementById("formCadastro").submit();	
	
}

function excluirCliente(){
	ocultar();
    ocultarMensagemConfirmacao();
    
    mensagem = PAINEL_UCMSG[21].replace(/%%%OBJETO%%%/g, "Cliente");
    
    mostraMensagemConfirmacao(mensagem, "document.getElementById('alterarCliente').submit()");
}
