function ShowPicture(image,witdh,height,stayopen)
{
	xsize = witdh+40;
	ysize = height+65;
	ScreenWidth = screen.width;
	ScreenHeight = screen.height;
	xpos = 20;
	ypos = 20;
//	xpos = (ScreenWidth/2)-(xsize/2);
//	ypos = (ScreenHeight/2)-(ysize/2);
	pwin=window.open("","image","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");
	pwin.document.write ("<html><head><title>Detailansicht");
	pwin.document.write ("</title></head>");
	if (stayopen) {
        	pwin.document.write ("<body bgcolor='#AAAAAA' onload='self.focus()'>");
	} else {
        	pwin.document.write ("<body bgcolor='#AAAAAA' onload='self.focus()' onblur='self.close()'>");
	}
	pwin.document.write ("<table align='center'><tr>");
	pwin.document.write ("<td align='center' valign='top'>");
	pwin.document.write ("<table bgcolor='#AAAAAA' cellpadding='0' cellspacing='1'><tr><td align='center'>");
	pwin.document.write ("<img name='pic' src="+image+">");
	pwin.document.write ("</form></body></html>");
	pwin.document.close();
        pwin.resizeTo(xsize,ysize); 
}

