Ol� ,

Estou com um probleminha em um c�digo fonte (abaixo) de uma p�gina
simples da web.
Eu preciso exibir a pontua��o somada em quest�es, respondidas atrav�s de

bot�es "radio".

Ocorre o seguinte erro :
Ocorreu um erro em tempo de execucao.
Linha 13
erro : "frm.resultado"  nao e um objeto

Sera que alguem pode me ajudar ? O que fa�o de errado ?

Abaixo est� o c�digo fonte completo da p�gina, como ela dever� ser
publicada.
Pode-se copiar e colar em um arquivo e execultar para testar.
Se alguem pudesse dar uma olhada, eu ficaria muito agradecido.

Atenciosamente,
Marcelo Glauco
[EMAIL PROTECTED]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">

<title>Perfil</title>
<style>
       A:hover {text-decoration: fill; color: #FF9933;}
</style>
<script language="JavaScript"><!--
 var frm = document.questionario;
 frm.resultado.value = frm.questao1.value + frm.questao2.value +
frm.questao3.value + frm.questao4.value + frm.questao5.value +
frm.questao6.value + frm.questao7.value;
 // --></script>
</head>

<body link="#336699" vlink="#336699" alink="#336699">

<p ALIGN="JUSTIFY" style="word-spacing: 0; margin:
0">&nbsp;&nbsp;&nbsp;&nbsp;</p>
<table border="0" width="73%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%">
      <p ALIGN="JUSTIFY" style="word-spacing: 0; margin: 0">Atrav�s
deste
      question�rio, n�s queremos mostrar a voc�, <b><font
color="#336699">pela
      sua capacidade de poupan�a e riscos de utiliz�-la
repentinamente</font></b>,
      qual seria o seu <b><font color="#808080">perfil de
investimento</font></b>
      segundo a nossa <a href="carteira.htm" target="_self">Carteira de
      Investimentos</a>.
      <p ALIGN="JUSTIFY" style="word-spacing: 0; margin: 0"><font
size="2">&nbsp;</font></td>
  </tr>
  <tr>
    <td width="100%">
      <hr>
    </td>
  </tr>
  <tr>
    <td width="100%">
      <p style="word-spacing: 0; margin-top: 0; margin-bottom:
0"><b>Qual a sua capacidade de assumir riscos em suas
      aplica��es?</b></p>
      <p style="word-spacing: 0; margin-top: 0; margin-bottom:
0"><b>&nbsp;&nbsp;&nbsp;</b></p>
    </td>
  </tr>
  <tr>
  <form name="questionario">
    <td width="100%">
      <p style="word-spacing: 0; margin: 0"><b>1. Qual a sua idade ?</b>

      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao1" value="4">Menos de 25
anos&nbsp;
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao1" value="3">De 25 a 35 anos
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao1" value="2">De 36 a 50 anos
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao1" value="1">Mais de 50 anos
      <p style="word-spacing: 0; margin: 0">&nbsp;

      <p style="word-spacing: 0; margin: 0"><b>2. Qual o percentual da
sua
      poupan�a em rela��o ao seu rendimento?</b>
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao2" value="4">Mais de 50%
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao2" value="2">De 25% a 50%
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao2" value="1">Menos de 25%
      <p style="word-spacing: 0; margin: 0">

      &nbsp;

      <p style="word-spacing: 0; margin: 0"><b>3. Quantos dependentes
voc� tem (mulher e/ou filhos)?</b>
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao3" value="4">Nenhum
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao3" value="3">Um
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao3" value="2">Dois
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao3" value="1">Mais de dois
      <p style="word-spacing: 0; margin: 0">&nbsp;

      <p style="word-spacing: 0; margin: 0"><b>4. Voc� tem seguro ?</b>
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao4" value="4">Sa�de, carro e vida
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao4" value="3">Sa�de e carro
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao4" value="2">Carro ou sa�de
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao4" value="1">Nenhum
      <p style="word-spacing: 0; margin: 0">
      &nbsp;
      <p style="word-spacing: 0; margin: 0">

      <b>5. Voc� mora :</b>
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao5" value="3">Com os pais
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao5" value="2">Casa pr�pria
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao5" value="2">Casa alugada
      <p style="word-spacing: 0; margin: 0">
      &nbsp;
      <p style="word-spacing: 0; margin: 0">

      <b>6. Voc� j� investiu ou pretende
      investir em a��es?</b>
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao6" value="4">Sim, mas n�o me
preocupo
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao6" value="3">Sim, mas me preocupo

      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao6" value="2">N�o, mas gostaria de

conhecer
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao6" value="-9">N�o tenho interesse

      <p style="word-spacing: 0; margin: 0">

      &nbsp;

      <p style="word-spacing: 0; margin: 0"><b>7. Em quanto tempo espera

ter que
      usar a sua poupan�a?</b>
      &nbsp;

      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao7" value="4">Mais de 5 anos
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao7" value="3">De 3 a 5 anos
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao7" value="2">De 1 a 3 anos
      <p style="word-spacing: 0; margin: 0">
      <input type="radio" name="questao7" value="-2">Menos de 1 ano
      <p style="word-spacing: 0; margin: 0">
      &nbsp;

 </tr>
  <tr>
    <td width="100%">
      <hr>
      Resultado : <input type="text" name="resultado" size="10">
      </form>
    </td>
  </tr>
  <tr>
    <td width="100%">
      <p style="word-spacing: 0; margin: 0" align="center"><b><font
color="#FF9900">Pontua��o:</font></b></p>
      <p style="word-spacing: 0; margin: 0"><b>&nbsp;&nbsp;</b></p>
      <div align="center">
        <center>
        <table border="2" width="58%" cellspacing="0" cellpadding="0"
height="62">
          <tr>
            <td width="100%" height="21">De <b> -6</b> a <b> 14</b>
pontos</td>
            <td width="43%" height="21"><i><font color="#008000"><b>
Conservador</b></font></i></td>
          </tr>
          <tr>
            <td width="100%" height="20">De <b> 15</b> a <b> 21</b>
pontos</td>
            <td width="43%" height="20"><i><b><font color="#0000FF">
Moderado</font></b></i></td>
          </tr>
          <tr>
            <td width="100%" height="21">De <b> 22</b> a <b> 27</b>
pontos</td>
            <td width="43%" height="21"><i><font color="#FF0000"><b>
Agressivo</b></font></i></td>
          </tr>
        </table>
        </center>
      </div>
      <p style="word-spacing: 0; margin: 0">&nbsp; </p>
    </td>
  </tr>
  <tr>
    <td width="100%">
      <hr>
    </td>
  </tr>
</table>
<p style="word-spacing: 0; margin: 0" align="center">&nbsp;</p>

<p style="word-spacing: 0; margin: 0" align="center">&nbsp;</p>

<p style="word-spacing: 0; margin: 0" align="center">&nbsp;</p>

</body>

</html>




    --------------------------- LISTA SOUJAVA ---------------------------
    http://www.soujava.org.br  -  Sociedade de Usu�rios Java da Sucesu-SP
    [d�vidas mais comuns: http://www.soujava.org.br/faq.htm]
    [para sair da lista: http://www.soujava.org.br/forum/cadastrados.htm]
    ---------------------------------------------------------------------

Responder a