title: uncaught typeerror undefined is not a function in javascript
body: <p>The following function sets the following error: "uncaught typeerror undefined is not a function javascript" worked fine before , now fails  =(  Helpme please!</p>
  
  <pre><code>$('longitud-grados').addEvent('change', function(event){
          var lg = $('longitud-grados').value;
          var lm = $('longitud-minutos').value;
          var ls = $('longitud-segundos').value;
  
          if((lg &gt; 117) || (lg &lt; 86)) $('longitud-grados').value = '';
  
          if(lg != '' &amp;&amp; lm != '' &amp;&amp; ls != ''){
              c = new Coordenada();
              l = c.gms2dec(lg, lm, ls, 'w');
              $('longitud').value = l.decimal;
          }
      });
  </code></pre>