title: Adding Javascript/HTML Form functionality to an 'html item' in COGNOS Report Studio v10
body: <p>Below is the code that I would like to insert into my COGNOS report using an html item;</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  
  function openWindow()
  {
  windowObject = window.open('http://www.google.com/','_blank','width=400,height=700,status=yes,resizable=yes,scrollbars=yes');
  windowObject.focus();//gives focus to window
  }
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;FORM METHOD="LINK" ONSUBMIT="openWindow()"&gt;
  &lt;INPUT TYPE="submit" VALUE="Info"&gt;
  &lt;/FORM&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>If I copy and paste this into an html item within COGNOS Report Studio odd things happen and it doesn't work.  Any ideas how I can get it to work properly?  Thanks in advance for your help!</p>