function form_submit() {

	if (check_cadastro()){
		
		document.getElementById("cadastro").submit();
	}
	
}

function check_cadastro() {

	if (document.forms[0].ds_nome.value == '') {
		alert("Atenção, é necessário preencher o nome.");
		return false;
	} 
	
	if (document.forms[0].ds_email.value == '') {
		alert("Atenção, é necessário preencher o email.");
		return false;
	} 
	
	return true;

}