title: Button in Javascript code not computing equation
body: <p>I have my code all written but when I run the webpage the button simply does not compute the answer and send the string to the Monthly Payment text box.  This is a monthly payment calculator using HTML and Javascript.  I have no idea what I am doing wrong, any help is appreciated.</p>
  
  <p>I am using netbeans 8 and I get an error code everytime Chrome opens it about debugging.  I'm unsure if my code is correct and the browser just isnt running the function or if my code is incorrect.  I feel like my error is something very small.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Monthly Payment Calculator&lt;/title&gt;
          &lt;meta charset="UTF-8"&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;form name="mpForm" action=""&gt; 
                  &lt;table border="0"&gt;
                      &lt;tbody&gt;
                          &lt;tr&gt;
                              &lt;td&gt;Enter Loan:&lt;/td&gt;
                              &lt;td&gt;&lt;input id='loanAmt' type="text"  name="loanAmt" value="" /&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;br&gt;
                          &lt;tr&gt;
                          &lt;td&gt;Select Rate&lt;/td&gt;
                          &lt;td&gt;&lt;select name="Rate"&gt;
                              &lt;option value=.04&gt;3%&lt;/option&gt;
                              &lt;option value=045&gt;3.5%&lt;/option&gt;
                              &lt;option value=.05 &gt;4%&lt;/option&gt;
                              &lt;option value=.055&gt;4.5%&lt;/option&gt;
                              &lt;option value=.06&gt;5%&lt;/option&gt;
                              &lt;option value=.055&gt;5.5%&lt;/option&gt;
                              &lt;option value=.06&gt;6%&lt;/option&gt;
                              &lt;/select&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;Select Year&lt;/td&gt;
                              &lt;td&gt;&lt;input type="radio" name="Year" value=10 /&gt;10 year&lt;br&gt;
                              &lt;input type="radio" name="Year" value=15 /&gt;15 year&lt;br&gt;
                              &lt;input type="radio" name="Year" value=30 /&gt;30 year&lt;br&gt;
                              &lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;Monthly Payment: &lt;/td&gt;
                              &lt;td&gt;&lt;input type="text" name="MP"  /&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;&lt;input type="button" value=“computeMP" name="btnCompute" onClick=“computeMP()" /&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                  &lt;/tbody&gt;
              &lt;/table&gt; 
          &lt;/form&gt;
  &lt;script&gt;
  function computeMP(){
  myLoan=parseFloat(document.mpForm.loanAmt.value);
  myRate=parseFloat(document.mpForm.Rate.options[document.mpForm.Rate.selectedIndex].value);
  if (document.mpForm.Year[0].checked)
      {myYear=10;}
  else if (document.mpForm.Year[1].checked)
      {myYear=15;}
  else
      {myYear=30;}
  MP=(Loan * (myRate/12))/1-Math.pow(1+(myRate/12),-12*myYear));
  document.mpForm.mp.value=MP.toString(); 
  }
  &lt;/script&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I expect the output to solve the equation as outlined in the MP variable</p>