title: Pass php variable though open.window
body: <p>I'm pretty new to javascript so please excuse this question if it seems pretty nooby.  I am writing an online calendar to book engineer's jobs so we need to be able to look at the calendar whilst looking at and editing individual jobs.  After much deliberation I decided the best way to do this is by opening the jobs in a new window using window.open.  However, I would like to pass the job id via the url in order to pass it to the new window but for love nor money I can't work it out or find a solution.  Here is my code so far</p>
  
  <pre><code>function open_win() 
  {
      window.open('job_detail.php', '_blank','toolbar=0,location=no,menubar=0,height=400,width=400,left=200, top=300');
  
  }
  
  &lt;a href="#" onclick="open_win()" &gt;&lt;? echo $row['name']; ?&gt;&lt;/a&gt;
  </code></pre>
  
  <p>The $row['name'] is the value of the link and the value I want to pass will be held in $row['id'] or $job_id.  I just can't work out where to put it so it passes on.</p>
  
  <p>Any help will be greatly appreciated</p>