function Resultado(Numero) {
   if (Numero == "0") {
      JanelaResultado = window.open("/enqueteresultados.jsp","JanelaResultado","width=460,height=350,scrollbars=yes");
      JanelaResultado.focus();
   } else {
      JanelaResultado = window.open("/enquete.jsp?id=" + Numero,"JanelaResultado","width=460,height=350,scrollbars=yes");
      JanelaResultado.focus();   
   }
}
function Votar(Numero,Quantidade) {
   Resposta = "";
   for (x = 0; x < Quantidade; x++) {
      if (document.frmEnquete.OpcaoEnquete[x].checked) {
         Resposta = document.frmEnquete.OpcaoEnquete[x].value;
      }
   }
   if (Resposta.length > 0) {
      JanelaVotar = window.open("/enquetevotar.jsp?Resposta=" + Resposta + "&id=" + Numero,"JanelaVotar","width=460,height=350,scrollbars=yes");
      JanelaVotar.focus();   
   } else {
      alert("Escolha uma Resposta para votar nesta Enquete!");   
   }
}