I have not had a lot to do with JavaScript but remembered your post when I was here
http://www.cambourne.net/photos/.
Anthony
<SCRIPT language="javascript">
<!--
var putItThere = null;
var chasm = screen.availWidth;
var mount = screen.availHeight; //chasm and mount help calculate the center of the screen
function popupwindow (URL,popupWidth,popupHeight) {
if (popupWidth > chasm) {
popupWidth = chasm - 10;
}
if (popupHeight > mount) {
popupHeight = mount - 40;
}
putItThere = window.open(URL,"myPopWindow","width=" + popupWidth + ",height=" + popupHeight + ",toolbar=no,directories=no,location=no,status=no, menubar=no,resizable=yes,scrollbars=no,left=" + ((chasm - popupWidth - 10) * .5) + ",top=" + ((mount - popupHeight - 30) * .5) + ",screenX=" + ((chasm - popupWidth - 10) * .5) + ",screenY=" + ((mount - popupHeight - 30) * .5));
}
// -->
</SCRIPT>