window.onload=function(){
	
	var form		= document.getElementById('form_fale');
	form.onsubmit	= enviarDados;
	
}
function enviarDados(){
	
	if ( Trim( this.nome.value ) == '' ){
		
		alert( 'Nome não preenchido!' );
		this.nome.value		= '';
		if ( this.nome.focus) this.nome.focus();
		return false;
		
	} else if ( Trim( this.organizacao.value ) == '' ){
		
		alert( 'Organização não preenchido!' );
		this.organizacao.value		= '';
		if ( this.organizacao.focus) this.organizacao.focus();
		return false;
		
	} else if ( Trim( this.telefone.value ) == '' ){
		
		alert( 'Telefone não preenchido!' );
		this.telefone.value		= '';
		if ( this.telefone.focus) this.telefone.focus();
		return false;
		
	} else if ( Trim( this.email.value ) == '' ){
		
		alert( 'E-mail não preenchido!' );
		this.email.value		= '';
		if ( this.email.focus) this.email.focus();
		return false;
		
	} else if ( !validarEmail( Trim( this.email.value ) ) ){
		
		alert( 'E-mail inválido, informe um e-mail válido!' );
		if ( this.email.focus) this.email.focus();
		return false;
		
	} else if ( Trim( this.comentario.value ) == '' ){
		
		alert( 'Comentário não preenchido!' );
		this.comentario.value		= '';
		if ( this.comentario.focus) this.comentario.focus();
		return false;
		
	}
	
}