title: Javascript stops working with form tag
body: <p>I have searched for this answer and implemented a few things I found on SO and other places to no avail. I have several javascript functions that work perfectly until I wrap the whole thing in a form. Then some functions work and others do not. My jQuery is still working. </p>
  
  <p>I have tried renaming functions and ensuring I have ; at the end of all of my functions. I have used the console, and each function that doeas not work is throwing the "Uncaught TypeError: object is not a function" error. </p>
  
  <p>Here is one of the not working HTML:</p>
  
  <pre><code>                &lt;td class="tableData"&gt;&lt;input type="text" id="teamContact" class="readonly" onfocus="teamContact();" readonly /&gt;&lt;/td&gt;
  </code></pre>
  
  <p>And the JS to go with it:</p>
  
  <pre><code> function teamContact() {
   var singleContact = (document.getElementById('contactTotalSingle').value);
   var numberLO = (document.getElementById('numberOfLO').value);
   var teamTotal = (singleContact * numberLO);
   document.getElementById('teamContact').value = (teamTotal).toFixed(2);
  </code></pre>
  
  <p>}</p>
  
  <p>And a bit of the WORKING HTML:</p>
  
  <pre><code>                &lt;td class="tableData"&gt;&lt;input type="text" id="contactRate" class="contactRate"  onchange="calculateSingleContactRate();"/&gt;&lt;/td&gt;
              &lt;td class="tableData"&gt;&lt;input type="text" id="contactTotalSingle" class="readonly" readonly/&gt;&lt;/td&gt;
  </code></pre>
  
  <p>And It's working JS:</p>
  
  <pre><code> function calculateSingleContactRate() {
  var contactRate = (document.getElementById('contactRate').value);
  var contactPercent = (contactRate / 100);
  var leads = (document.getElementById('setSingle').innerHTML);
  var contactTotalSingle = (contactPercent * leads);
  document.getElementById('contactTotalSingle').value = (contactTotalSingle).toFixed(2);
  </code></pre>
  
  <p>} </p>
  
  <p>It all works when it is not between form tags, and stops working when it is in the form tags. I know it is probably something stupid, but I cannot find it. </p>
  
  <p>Let me know if you need more info or code...</p>