function Validar(solicitud)
{
  if (solicitud.paterno.value == '')
  {
    alert('El campo APELLIDO PATERNO no puede estar vacío.');
    solicitud.paterno.focus();
    return(false);
  }
  if (solicitud.materno.value == '')
  {
    alert('El campo APELLIDO MATERNO no puede estar vacío.');
    solicitud.materno.focus();
    return(false);
  }
  if (solicitud.nombre.value == '')
  {
    alert('El campo NOMBRE no puede estar vacío.');
    solicitud.nombre.focus();
    return(false);
  }
  if (solicitud.id_especialidad.value == 'nada')
  {
   alert('Debe seleccionar una especialidad.');
   solicitud.id_especialidad.focus();
   return(false);
  }
  if (solicitud.telefono.value == '')
  {
    alert('El campo TELEFONO no puede estar vacío.');
    solicitud.telefono.focus();
    return(false);
  }
  if (solicitud.mail.value == '')
  {
    alert('El campo CORREO ELECTRONICO no puede estar vacío.');
    solicitud.mail.focus();
    return(false);
  }
  if (solicitud.calle.value == '')
  {
    alert('El campo CALLE no puede estar vacío.');
    solicitud.calle.focus();
    return(false);
  }
  if (solicitud.numero.value == '')
  {
    alert('El campo NUMERO no puede estar vacío.');
    solicitud.numero.focus();
    return(false);
  }
  if (solicitud.colonia.value == '')
  {
    alert('El campo COLONIA no puede estar vacío.');
    solicitud.colonia.focus();
    return(false);
  }
  if (solicitud.cp.value == '')
  {
    alert('El campo CODIGO POSTAL no puede estar vacío.');
    solicitud.cp.focus();
    return(false);
  }
  if (solicitud.municipio.value == '')
  {
    alert('El campo DELEGACION O MUNICIPIO no puede estar vacío.');
    solicitud.municipio.focus();
    return(false);
  }
  if (solicitud.ciudad.value == '')
  {
    alert('El campo CIUDAD O POBLACION no puede estar vacío.');
    solicitud.ciudad.focus();
    return(false);
  }

  mexico = solicitud.id_pais[0].checked;
  if ( mexico == true )
  {
   if (solicitud.id_estado.value == 'nada')
   {
    alert('Debe seleccionar un estado.');
    solicitud.id_estado.focus();
    return(false);
   }
  }
  else
  {
   if (solicitud.otro_pais.value == '')
   {
    alert('El campo PAÍS no puede estar vacío.');
    solicitud.otro_pais.focus();
    return(false);
   }
  }

  
}

