Loading centred popup with dynamic content?

Hi,
Im trying to extend the photo gallery ive been making so that users can click for an enlarged image and have a “print friendly” window…
I realise there is an internal print function in flash but my client is unhappy with my implementation of that and would rather the use of the browsers internal File>Print functionality. …I figured I could pass the image url and title to a popup window (using kirupa’s centred popup tute)…But alas simply opening the image isn’t enough… I need to have the image centred (within a table) with text underneath (simple description of image)…and the window sized appropriately for the whole content :wink:

How would I do this? Im quiet good at PHP, so I figured the solution is somewhere around passing the img url, title and description as variables in the querystring to a php file. But im puzzled as how to achieve this as well as the centred popup affect…

Kirupa’s centred popup proto…


Movieclip.prototype.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) { 
	getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",top='+((screen.height/2)-(" + h/2 + "))+',left='+((screen.width/2)-(" + w/2 + "))+'" + "')}else{myWin.focus();};void(0);", "_self","GET");
}

What ive been looking at…(this of course is the url paramater of the function above)


address = "php/print.php?url="+galleryNode.attributes.directory+"/"+imageNode.attributes.jpegURL+"&title="+imageNode.attributes.title;