function completed(field, name){
	var retorno;
	if (field.val().trim()!=''){
		retorno=true;
	}else{
		$('.alert.bg-danger span').html('O campo '+name+' deve ser preenchido');
		$('.alert.bg-danger').show('fast');
		field.focus();
		retorno=false;
	}
	return retorno;
}
//Function that checks if the field is empty
Function that checks if the field is empty
Function that checks if the field is empty
function completed(field, name){
	var retorno;
	if (field.val().trim()!=''){
		retorno=true;
	}else{
		$('.alert.bg-danger span').html('O campo '+name+' deve ser preenchido');
		$('.alert.bg-danger').show('fast');
		field.focus();
		retorno=false;
	}
	return retorno;
}
function completed ( field , name ) { var retorno ; if ( field . val ( ) . trim ( ) != '' ) { retorno = true ; } else { $ ( '.alert.bg-danger span' ) . html ( 'O campo ' + name + ' deve ser preenchido' ) ; $ ( '.alert.bg-danger' ) . show ( 'fast' ) ; field . focus ( ) ; retorno = false ; } return retorno ; }
Function that checks if the field is empty
Function that checks if the field is empty