Is there a reason to not use a shorthand for document.getElementById?
<p>I wrote something that uses <code>document.getElementById</code> a lot so I was wondering if instead I should just make a function like:</p>

<pre><code>function gid (id) {
return document.getElementById(id);
}
</code></pre>

<p>and then just call it like:</p>

<pre><code>alert(gid("test").innerText);
</code></pre>
