title: href with onclick javascript pop-up
body: <p>i have this javascript:</p>
  
  <pre><code>&lt;SCRIPT LANGUAGE="JavaScript"&gt;
  &lt;!-- 
  
  // Generated at http://www.csgnetwork.com/puhtmlwincodegen.html 
  function popUp(URL) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=400,left = 283,top = -16');");
  
  }
  
  // --&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>i want to use an href with a javascript popup function but its not working.
  here is my code</p>
  
  <pre><code> &lt;?php
      echo "&lt;a href = '#' onClick='javascript:popUp('editdelete.php?emoticon_text=$emoticon_text&amp;id=$id')'&gt;&lt;img src='update.png'&gt;&lt;/a&gt;";
      ?&gt;
  </code></pre>
  
  <p>but its not working</p>
  
  <p>(the $emoticon_text and the $id will be passed to the pop up window using $_GET function.)</p>
  
  <p>thanks</p>