function showpic( bild, breite, hoehe, scroll) 
{
	if(	bild!='' && breite!='' && hoehe!='' )
	{
  	var doPopUpX = (screen.width/2)-breite;
    var doPopUpY = (screen.height/2)-hoehe;
    var pos = "left="+doPopUpX+",top="+doPopUpY;
    fenster=window.open('/viewpic.php?bild='+bild,"vorschau",'resizable=yes,location=no,menubar=no,titlebar=no,toolbar=no,scrollbars='+scroll+',width='+breite+',height='+hoehe+','+pos);
    if (fenster.closed==false) fenster.focus();
  }
}

function changebild(bild)
{
	document.getElementById("bildansicht").src = bild;
}