Search the document for an element with a style name?
<p>Is there a way to search the DOM for an element with a particular stylename class? Something like:</p>

<pre><code>var node = document.findByClassName("foo");
</code></pre>

<p>if so, will this be extremely slow if my page has like 2000 elements in it or so?</p>

<p>Thanks</p>
