function validar(form){
	var emailRegEx = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	var numericoRegEx = /^\d*$/;
	if (form.nombre.value == "") {
		form.nombre.focus();
		alert("El campo 'Nombre' es obligatorio");
		return false;
	}
	if (form.apellido1.value == "") {
		form.apellido1.focus();
		alert("El campo 'Apellido 1' es obligatorio");
		return false;
	}
	if (form.apellido2.value == "") {
		form.apellido2.focus();
		alert("El campo 'Apellido 2' es obligatorio");
		return false;
	}
	if(form.email.value == "") {
		form.email.focus();
		alert("El campo 'E-mail' es obligatorio!");
		return false;
	} else {
		if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(form.email.value)){
			form.email.focus();
			form.email.value = "";
			alert("Debe ingresar un E-mail v\u00E1lido.");
			return false;
		}
	}
	/*if (form.numero_nrc.value == "") {
		form.numero_nrc.focus();
		alert("El campo 'Socio NRC' es obligatorio");
		return false;
	}*/
	//tiene que haber centro y dia-hora
	/*if (form.select_centro.value == "") {
		form.select_centro.focus();
		alert("Seleccione un centro");
		return false;
	}*/
	if (form.dia.value == "") {
		form.dia.focus();
		alert("Escoja una cita");
		return false;
	}
	return true;
}