var popUpWin=0;
function imgpopup(id, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }

	if (document.all) {
		width+=20;
		height+=30;
		}
	else {
		width+=18;
		height+=20;
		}


  popUpWin = open('/galeriebild.php?id='+id, 'popUpWin', 'dependent=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=bo,width='+width+',height='+height+',left=100, top=100,screenX=100,screenY=100');
}