function validar(){
	
	if (document.getElementById("nomf1").value == ""){
		alert("Debe introducir el nombre y apellidos de la persona buscada");
		document.getElementById("nomf1").style.backgroundColor = "#FFA07A";
		return false;
	}
	
	if (document.getElementById("fnacf1").value == ""){
		alert("Debe introducir la fecha de nacimiento o edad aproximada");
		document.getElementById("fnacf1").style.backgroundColor = "#FFA07A";
		return false;
	}	
	
	if (document.getElementById("nacf1").value == ""){
		alert("Debe introducir la nacionalidad");
		document.getElementById("nacf1").style.backgroundColor = "#FFA07A";
		return false;
	}		
		
	if (document.getElementById("dirf1").value == ""){
		alert("Debe introducir la dirección de la persona buscada");
		document.getElementById("dirf1").style.backgroundColor = "#FFA07A";
		return false;
	}	
	
	if (document.getElementById("fecconf1").value == ""){
		alert("Debe introducir la última fecha de contacto");
		document.getElementById("fecconf1").style.backgroundColor = "#FFA07A";
		return false;
	}
	
	if (document.getElementById("tfnof1").value == ""){
		alert("Debe introducir el teléfono de la persona buscada");
		document.getElementById("tfnof1").style.backgroundColor = "#FFA07A";
		return false;
	}	
	
	if (document.getElementById("nomf2").value == ""){
		alert("Debe introducir su nombre y apellidos");
		document.getElementById("nomf2").style.backgroundColor = "#FFA07A";
		return false;
	}	
	
	if (document.getElementById("parentf2").value == ""){
	alert("Debe introducir su grado de parentesco con la persona buscada");
	document.getElementById("parentf2").style.backgroundColor = "#FFA07A";
	return false;
	}
	
	if (document.getElementById("dirf2").value == ""){
	alert("Debe introducir su dirección completa");
	document.getElementById("dirf2").style.backgroundColor = "#FFA07A";
	return false;
	}	
	
	if (document.getElementById("tfnof1").value == ""){
	alert("Debe introducir su teléfono");
	document.getElementById("tfnof1").style.backgroundColor = "#FFA07A";
	return false;
	}		
	
	return true;
	
}

function cambiarColorDatos(campo){

var	elCampo = campo.name;

		if (eval("document.form1." + elCampo).value != "")
		{
			eval("document.form1." + elCampo).style.backgroundColor = "#FFFFFF";
		}

}
