function popUpFoto(url) {
	var foto = new Image;
	foto.src = url;
		
	foto.onload = function() {
		window.open('fotos.php?f='+url, '', 'width='+foto.width+',height='+foto.height+',scrollbars=no');
	}

}