function popup (url)
{ 
	var new_window="foto.php?foto=" + url;
	var window_layout;
	foto = new Image();
	foto.src = url;
	breite = foto.width + 10;
	hoehe = foto.height + 10;
	window_layout= "width=" + breite + ",height=" + hoehe + ",toolbar=0,directories=0,menubar=0,status=0,resizable=0,scrollbars=0";
	window.open(new_window, 'Foto', window_layout)
}
