title: Magento. Add to cart not working in Internet Explorer
body: <p>Magento product details page has button "add to cart"  which not working in IE (I tested on different versions)
  Button:</p>
  
  <pre><code> &lt;button type="button" title="Add to Cart" class="button btn-cart" onclick="productAddToCartForm.submit(this)"&gt;&lt;span&gt;&lt;span&gt;Add to Cart&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;
  </code></pre>
  
  <p>Code in product page:</p>
  
  <pre><code>var productAddToCartForm = new VarienForm('product_addtocart_form');
  productAddToCartForm.submit = function (button, url) {
      if (this.validator.validate()) {
          var form = this.form;
          var oldUrl = form.action;
          if (url) {
              form.action = url;
          }
          var e = null;
          try {
              this.form.submit();
          } catch (e) {}
          this.form.action = oldUrl;
          if (e) {
              throw e;
          }
          if (button &amp;&amp; button != 'undefined') {
              button.disabled = true;
          }
      }
  }.bind(productAddToCartForm);
  </code></pre>
  
  <p>Also called script from /media/js/d9d0df2fe59a334949de96f1603a1a9b.js</p>
  
  <pre><code>document.observe("dom:loaded", function () {
      replaceDelUrls();
      replaceAddUrls();
      //Event.observe($('j2t-overlay'), 'click', hideJ2tOverlay);
      var cartInt = setInterval(function () {
          if (typeof productAddToCartForm != 'undefined') {
              if ($('j2t-overlay')) {
                  Event.observe($('j2t-overlay'), 'click', hideJ2tOverlay);
              }
              productAddToCartForm.submit = function (url) {
                  if (this.validator &amp;&amp; this.validator.validate()) {
                      sendcart('', 'form');
                      clearInterval(cartInt);
                  }
                  return false;
              }
          } else {
              clearInterval(cartInt);
          }
      }, 500);
  });
  </code></pre>
  
  <p>How I could fix this error?
  I use magento 1.7.2 </p>