title: javascript function not work in IE11
body: <p>This is script working in Google chrome, but not in IE 11, why?:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  window.onload = function () {
  var ammount = document.getElementById('ammount');
  var price = document.getElementById('price');
  var vatrate = document.getElementById('vatrate');
  };
  
  function UpdateTotal() {
      var total = parseFloat(price.value) * parseFloat(ammount.value); 
      var totalvat = (parseFloat(price.value) * parseFloat(ammount.value))*(1+(parseFloat(vatrate.value)/100));
      parseFloat(document.getElementById('mezisoucet').value = total);
      parseFloat(document.getElementById('mezisoucetdph').value = totalvat);
  };
  &lt;/script&gt;      
  
  
  
            &lt;form method="post" action=""&gt;
  
            &lt;td&gt;&lt;input type="date" name="date" value="2014-02-24"&gt;&lt;/td&gt;
  
            &lt;td&gt;
              &lt;input type="text" name="name" value="" autofocus="autofocus"&gt;
              &lt;br&gt;
              &lt;input type="text" name="description" value=""&gt;
            &lt;/td&gt;
            &lt;td&gt;&lt;input type="text" name="sku" value="" style="width: 100%;"&gt;&lt;/td&gt;
            &lt;td&gt;&lt;input type="text" name="ammount" id="ammount" value="1" onchange="UpdateTotal()" style="width: 100%; text-align: right;"&gt;&lt;/td&gt;
            &lt;td&gt;&lt;input type="text" name="mu" value="piece" style="width: 100%; "&gt;&lt;/td&gt;
            &lt;td&gt;&lt;input type="text" name="price" id="price" onchange="UpdateTotal()" value="" style="width: 100%; text-align: right;"&gt;&lt;/td&gt;
            &lt;td&gt;&lt;input type="text" name="mezisoucet" id="mezisoucet" readonly="" value="" style="width: 100%; "&gt;&lt;/td&gt;
            &lt;td&gt;
            &lt;select name="vatrate" id="vatrate" class="selectinput" style="width: 100%;" onchange="UpdateTotal()"&gt;
                &lt;option value="21"&gt;21 %&lt;/option&gt;
                &lt;option value="15"&gt;15 %&lt;/option&gt;
                &lt;option value="0" selected=""&gt;0 %&lt;/option&gt;
            &lt;/select&gt;
            &lt;/td&gt;
            &lt;td&gt;&lt;input type="text" name="mezisoucetdph" id="mezisoucetdph" readonly="" value="" style="width: 100%; text-align: right;"&gt;&lt;/td&gt;
            &lt;td style="padding: 0px; vertical-align: middle; text-align: center;"&gt;
            &lt;input type="image" src="./img/ico/1385010425_save.png" name="addOrderreceivedwwwItem" value="Save" title="Save"&gt;
            &lt;/td&gt; 
  </code></pre>
  
  <p>In Google Chrome okay, in IE11 debuger error: "Object price is not defined" ..?</p>