Getting client ID in javascript
<p>I am trying to fix someone else's code and I have lines like this throughout my javascript -</p>

<pre><code>var dataDiv = document.getElementById("ctl00_cpMain_tcMainTabs_tResBDetails_tcDetailTabs_tBDetail_bmrDetailDataDiv")
</code></pre>

<p>What is the preferred syntax?</p>

<p>FYI, this is a jQuery enabled web application.</p>
