function showPhoto(src){
    w = window.open ('','w','toolbar=no,location=no,directories=no,status=no,menubar=no,width=400,height=400,scrollbars=no,resizable=yes');
    w.document.write('<html>');
    w.document.write('<head>');
    w.document.write('<script language="JavaScript">');
    w.document.write('function resizeWindow(){');
    w.document.write('  window.moveTo(0,0);');
    //w.document.write('  dx = 0;');
    //w.document.write('  dy = 0;');

    w.document.write('  dx = 12;');
    w.document.write('  dy = 51;');
    w.document.write('  if (navigator.appName==\'Opera\'){');
    w.document.write('      dx = 10;');
    w.document.write('      dy = 42;');
    w.document.write('  }');
    w.document.write('  if (navigator.appName==\'Netscape\'){');
    w.document.write('      dx = 8;');
    w.document.write('      dy = 52;');
    w.document.write('  }');

    w.document.write('  window.resizeTo(document.images["photo"].width+dx,document.images["photo"].height+dy);');
    //w.document.write('  document.write(document.images["photo"].width);');
    //w.document.write('  document.write(\' - \');');
    //w.document.write('  document.write(document.images["photo"].height);');
    w.document.write('}');

    w.document.write('</script>');
    w.document.write('</head>');
    
    w.document.write('<body style="margin: 0px;padding: 0px;border: none;clear: none;float: none;white-space: 0px;">');
    w.document.write('<a href="JavaScript:self.close()"><img border="0" id="photo" src="'+src+'" onload="javascript:resizeWindow();"></a>')
    w.document.write('</body>');
    w.document.write('</html>');
    w.document.close();
}

