function validateForm() {

/*
\u00e1 -> &aacute; 
\u00e9 -> &eacute; 
\u00ed -> &iacute; 
\u00f3 -> &oacute; 
\u00fa -> &uacute; 
*/

	if ($F('name').blank()) {
		alert('Debes indicar tu nombre y apellidos');
		return false;
	}
	if ($F('dni').blank()) {
		alert('Debes indicar tu DNI, NIF o pasaporte');
		return false;
	}
	if ($F('birth_date').blank()) {
		alert('Debes indicar tu fecha de nacimiento');
		return false;
	}
	if ($F('address').blank()) {
		alert('Debes indicar una direcci\u00f3n');
		return false;
	}
	if ($F('city').blank()) {
		alert('Debes indicar tu ciudad');
		return false;
	}
	if ($F('province').blank()) {
		alert('Debes indicar tu provincia');
		return false;
	}
	if ($F('postal_code').blank()) {
		alert('Debes indicar tu c\u00f3digo postal');
		return false;
	}
	if ($F('phone').blank()) {
		alert('Debes indicar un tel\u00e9fono');
		return false;
	}
	if (!isValidEmail($F('email'))) {
		alert('Introduce un e-mail v\u00e1lido');
		return false;
	}
	if ($F('car_model').blank()) {
		alert('Debes indicar tu modelo de coche');
		return false;
	}
	if ($F('plate').blank()) {
		alert('Debes indicar la matr\u00edcula de tu coche');
		return false;
	}
	if ($F('plate_date').blank()) {
		alert('Debes indicar la fecha de la matr\u00edcula de tu coche');
		return false;
	}
	return true;
}

function submitForm() {
	if (validateForm()) {
		document.register_form_general.submit()
	}
}