function es_numero(elemento)
{
   if(isNaN(elemento))
   {
      return false;
   }
   return true;
}

function revisar(elemento)
{
   if (elemento.actividad.selectedIndex == 0) 
   {
      alert("Debe seleccionar una actividad");
      elemento.actividad.focus();
      return false;
   }

   if(elemento.ciudad.selectedIndex == 0)
   {
      alert("Debe seleccionar una ciudad");
      elemento.ciudad.focus();
      return false;
   }

   if(elemento.cargo.selectedIndex == 0)
   {
      alert("Debe seleccionar una cargo");
      elemento.cargo.focus();
      return false;
   }

   if ( (elemento.salario.value == null) || (elemento.salario.value == "") )
   {
      alert("Debe especificar un monto salarial\nEscriba 0 si este item no es relevante en su búsqueda");
      elemento.salario.focus();
      return false;
   }

   for (i=0;i<elemento.salario.value.length;i++)
   {
     if (!es_numero(elemento.salario.value.charAt(i)))
     {
        alert("Utilice únicamente caracteres numéricos para especificar el salario. (300000 p.e.)\nEscriba 0 si este item no es relevante en su búsqueda");
        elemento.salario.focus();
        return false;
     }
   }

   if(elemento.termino.selectedIndex == 0)
   {
      alert("Debe seleccionar un tipo de término");
      elemento.termino.focus();
      return false;
   }
   return true;
}






