dovrei mettere il nome della foto come <title> (senza l'estenzione):


<HTML>
<HEAD>

<script language='javascript'>
var arrTemp=self.location.href.split("?");
var picUrl = (arrTemp.length>0)?arrTemp[1]:"";
var NS = (navigator.appName=="Netscape")?true:false;

function FitPic() {
iWidth = (NS)?window.innerWidth:document.body.clientWidth;
iHeight = (NS)?window.innerHeight:document.body.clientHeight ;
iWidth = document.images[0].width - iWidth;
iHeight = document.images[0].height - iHeight;
window.resizeBy(iWidth, iHeight);
self.focus();
};
</script>
</HEAD>
<BODY bgcolor="#ffffff" onload='FitPic();' topmargin="0"
marginheight="0" leftmargin="0" marginwidth="0">
<script language='javascript'>
var picName = (picUrl); <--- tipo var picName = (picUrl - ".jpg");
document.write( "<TITLE>'" + picName + "'</title>" + "[img]" + picUrl + "[/img]" ); </script>
</script>
</BODY>
</HTML>