here is the code I'm using...
in the MAIN page:
<a href="#" onClick="window.open('news_link.php?newsid=<? echo $pid ?>',
'Max','toolbar=no,width=425,height=350,menubar=no,scrollbars=yes,resizable=yes');return false">Full Story</a>
now I view source and see that the field is populated correctly with the right ID number
the POPUP page:
include ("includes/functions.php");
$result = query_db("select * from news where id = $newsid");
$num_rows = mysql_numrows($result);