title: Conflict between Mootools and a pure JS script
body: <p>I am stuck with a pure JS script that should be included in Joomla (1.7, Mootools 1.3.2) </p>
  
  <p>and raises a conflict with this library while working perfectly outside it.</p>
  
  <p>Examples :</p>
  
  <ul>
  <li><p>no Mootools
  <a href="http://jsfiddle.net/2W87v/" rel="nofollow">http://jsfiddle.net/2W87v/</a></p></li>
  <li><p>with Mootools
  <a href="http://jsfiddle.net/2W87v/1/" rel="nofollow">http://jsfiddle.net/2W87v/1/</a></p></li>
  </ul>
  
  <p>Firebug error around line 133 :</p>
  
  <pre><code>document.getElementById("pu_" + champs[i]) is null
  </code></pre>
  
  <p>I tried all kinds of solutions, renaming certain variables, using $ instead of document.getElementById, wrapping each function around an anonymous function. To no avail.</p>
  
  <p>If someone could point in the right direction, I'd be very grateful.</p>