title: add a class to a table row onclick
body: <p>I want to add a class to a table row onclick: </p>
  
  <pre><code>&lt;tr class="gradeA " onclick="window.location.href='games/BG-1001.php'; obj.className='diagram-popup';" &gt;
  </code></pre>
  
  <p>...</p>
  
  <pre><code>&lt;!--Another Pop-up for diagram--&gt;
  &lt;script src="js/jquery.popupWindow-min.js" &gt;&lt;/script&gt; 
  &lt;script&gt;
      $('.diagram-popup').popupWindow({centerBrowser:1, height:560, width:1024});
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I do this? The <code>obj.className='diagram-popup';</code> syntax appears to be wrong.</p>