{"size": 457, "ext": "js", "max_stars_repo_path": "java-web-9/WebContent/scripts/validador.js", "max_stars_repo_name": "Biz1999/java-web", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "java-web-9/WebContent/scripts/validador.js", "max_issues_repo_name": "Biz1999/java-web", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "java-web-9/WebContent/scripts/validador.js", "max_forks_repo_name": "Biz1999/java-web", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.8695652174, "max_line_length": 41, "alphanum_fraction": 0.6170678337}
/**
 * Validação Usuário
 * @author aless
 */

function Validar(){
	let nome = frmUsuario.nome.value;
	let phone = frmUsuario.phone.value;
	let email = frmUsuario.email.value;
	if (nome === ""){
		alert('Preencha o campo Nome!');
		frmUsuario.nome.focus();
		return false;
	}
	else if (phone === ""){
		alert('Preencha o campo Phone!');
		frmUsuario.phone.focus();
		return false;
	}else{
		document.forms["frmUsuario"].submit();
	}
}
