// Versão 18/03/2008
function ValidaCaptcha(Controle,SairFoco,Obrigatorio) {
  var Retorno = true;
  Obrigatorio = ConvBool(Obrigatorio)
  Controle.title = (Trim(Controle.getAttribute("DescricaoCampo"))=='' ? Controle.id : Trim(Controle.getAttribute("DescricaoCampo"))) + '. ';
  Controle.style.background = Controle.getAttribute("CorBackGroundInicial");
  if ((Controle.disabled) || (isParentDIVDesabilitado(Controle))) return Retorno;
  if (Trim(Controle.value) == '') {
    if (Obrigatorio) {
      if (!SairFoco) {SetaFoco(Controle);}
      Controle.title = Controle.title + 'Campo deve ser digitado';
      AdicionaErroTela(Controle.title);
      Controle.style.background = Controle.getAttribute("CorBackGroundErro");
      Retorno = false;
    }
  }
  //return (SairFoco) ? SairFoco : Retorno;
  return Retorno;
}

