title: Multiple lines in onClick?
body: <p>I have a link and I need it to do two thing when it's clicked. First, it tracks the h it using the google tracking code, and the next is that it opens a new window.</p>
  
  <p>I tried:</p>
  
  <pre><code>onclick="javascript: pageTracker._trackPageview('/Ads/MMA_Front_Page.com'); window.open(this.href, '_blank'); return false;"
  </code></pre>
  
  <p>But it didn't work, it didn't open a new window.</p>
  
  <p>Did I do something wrong with the code or do I need to create a javascript method and call that?</p>
  
  <p>Thanks</p>
  
  <p>Edit: I am trying with functions, but it wont work. Can you help me please?</p>
  
  <p>Here is the function:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function openAd(adType) {
          pageTracker._trackPageview(adType);
          window.open(this.href, '_blank');
          return false;
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>And the part where i call it:</p>
  
  <pre><code>onclick="openAd('/Ads/MMA_Front_Page.com')"
  </code></pre>
  
  <p>It seems only the first part is working "pageTracker._trackPageview(adType);" and the rest is being ignored.</p>