function validar(theForm)
{
if (theForm.Nombre.value == "")
{
alert("Please fill in your first name.");
theForm.Nombre.focus();
return (false);
}
if (theForm.Nombre.value.length < 3)
{
alert("Please write at least 3 characters for your first name.");
theForm.Nombre.focus();
return (false);
}
if (theForm.Apellidos.value == "")
{
alert("Please fill in your last name.");
theForm.Apellidos.focus();
return (false);
}
if (theForm.Apellidos.value.length < 3)
{
alert("Your last name must contain at least 3 characters.");
theForm.Apellidos.focus();
return (false);
}
if (theForm.email.value == "")
{
alert("Please fill in your e-mail address.");
theForm.email.focus();
return (false);
}
if (theForm.email.value.length < 7)
{
alert("Please write at least 7 characters for your e-mail address.");
theForm.email.focus();
return (false);
}
if (theForm.Pais.value == "")
{
alert("Please fill in your country.");
theForm.Pais.focus();
return (false);
}
if (theForm.Pais.value.length < 2)
{
alert("Please write at least 2 characters for your country.");
theForm.Pais.focus();
return (false);
}
return (true);
}

