// JavaScript Document

function showimage(ref,name)
{
filename = 'pic_popup.php?type=' + name + '&id=' + ref;
x = 1
y = 1
var win = window.open (filename,'image','width='+ x +',height=' + y +',location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,top=10,left=10');
var doc = win.document;
doc.open();
doc.write('<html>\n<head>\n<title>'+name+'</title>\n\n');
doc.write('<scr'+'ipt type="text/javascript">\n');
doc.write('function anpassen()');
doc.write('{\n');
doc.write('breite=document.images[0].width+30;\n');
doc.write('hoehe=document.images[0].height+120;\n');
doc.write('self.resizeTo(breite,hoehe);\n');
doc.write('self.moveTo((screen.width-breite)/2,(screen.height-hoehe)/2);\n');

doc.write('}');
doc.write('\n</scr'+'ipt>\n');
doc.write('<link href="styles_0406.css" rel="stylesheet" type="text/css">\n');
doc.write('</head>\n');
doc.write('<body topmargin="2" leftmargin="2" maginwidth="2" marginheight="2" onload="anpassen()">\n');
doc.write('\n');
doc.write('<p>\n');
doc.write('<center><a href="javascript:self.close();"><img src="'+ ref +'" alt="'+ name +'" border=0></a>\n'
);
doc.write('<br>\n');
doc.write('<a>'+name+'</a><br><BR>\n');
doc.write('Klick auf der Foto um das <a href="javascript:self.close();">Fenster zu schliessen</a></center></p>\n');
doc.write('</body>\n</html>');
doc.close();
}