title: Javascript Error in FireFox Not in IE and Chrome
body: <p>I use the following function for decimal validation.the textbox only allow to enter numbers and .(dot) symbol only.It was working fine in IE and Chrome.My problem is I get <strong>event is not defined error</strong>.How to solve this?I have the lot of textbox validation.so i Create the decimal validation as common its like,</p>
  
  <pre><code>//Call the Function
                               $('.decimalValidate').live('keypress',function(){
                                    var decimalid=$(this).attr("id");
                                    var decimalval=$('#'+decimalid).val();
                                    var decimalvalidate=ApplyDecimalFilter(decimalval);
                                    if(decimalvalidate == false)
                                    return false;
                               });
  </code></pre>
  
  <p>//Function for Decimal validation.It allows only one . symbol.everything works fine on IE and Chrome</p>
  
  <pre><code>function ApplyDecimalFilter(id)
      {
          try {
                return NewDecimalFilter(id, event);
  
          } catch (e) {
              alert(e.message);
          }
      }
  
  function NewDecimalFilter(o, event) {
  
          if (event.keyCode &gt; 47 &amp;&amp; event.keyCode &lt; 58) {
              return true;
          }
          if ((event.keyCode == 8 || event.keyCode == 46) &amp;&amp; o.indexOf('.') == -1)  {
              return true;
          }
          return false;
      }
  </code></pre>
  
  <p>And i use this decimalValidate class in text box like as,</p>
  
  <pre><code>input type="text" id="InputLoanAmount" class="decimalValidate" style="width:100px"
  </code></pre>