javascript know when you're clicking on the first cell of a table row
<p>I have a table displaying tabular data in the form of a report.  I am trying to make it so when you click anywhere on the row, it navigates to a more detailed view of that particular item.</p>

<p><strong>HTML (from PHP)</strong></p>

<pre><code>'&lt;tr onClick="ViewItem(this, '.$ItemNum.')"&gt;'.
    '&lt;td&gt;&lt;input type="checkbox" name="chk_'.$ItemNum.'" /&gt;&lt;/td&gt;'.
    '&lt;td&gt;a&lt;/td&gt;'.
    '&lt;td&gt;b&lt;/td&gt;'.
    '&lt;td&gt;c&lt;/td&gt;'.
'&lt;/tr&gt;'
</code></pre>

<p><strong>Javascript</strong></p>

<pre><code>function ViewItem(elThisRow, ItemNum)
{
    // If first &lt;td&gt; was clicked, return
    // ?

    // Otherwise, navigate to item
    window.location="/viewitem.php?i=" + ItemNum;
}
</code></pre>

<p>Well the clicking and navigation part works fine, but the only thing is, the first  has a checkbox control there.</p>

<p>So right now, I cannot really use the checkbox because the page will navigate away when I click it :(</p>

<p>Is there any way to figure out which cell was clicked, so I can prevent it from navigating if it's the first cell?</p>

<p>Thank you</p>
