What I would suggest is going about this with creating a popup window that uses $_GET variables to load the content dynamically verses telling it what to load when you make the window.
This can be done like so:
CODE
var newwindow;
function popup(immge)
{
url = "http://www.example.com/index.php?view="+image;
newwindow=window.open(url,'name','height=400,width=200');
if (window.focus) {newwindow.focus()}
}
Where url is what is being opened, name is the window title, and width/height are self explanitory.
Now, what I would do is something like so for the image popup:
CODE
<tr><td><center><a href="#" onClick="popup('.$rows[5]).'"><img src="'.$rows[4].'"></a></center></td></tr>
Which would tell it what the main imaeg url is, then you could query for the rest of the information (description) from a database and output it. Either that or you could go about placing both the image url and description in the url (but browsers normally hae a 2k size limit on the url so if it is a long description this may not work (or if ther is html, or line breaks or a number of other things.
Hope that helps.