function zoom(picture,maxsz)
{
	var  foto,trg,w,h,ratio;
	
	foto = new Image();
	foto.src = picture;

	w = foto.width;
	h = foto.height;

	ratio = MinorFrom( (maxsz/w),(maxsz/h) );

	w = parseInt(w*ratio);
	h = parseInt(h*ratio);

	if (isnumber(w))
	{
		trg = open('about:blank','nu','toolbar=no,scrollbar=no,width=' + w + ',height=' + h  );
		trg.document.write("<head><title>::Foto::</title></head><body rightmargin=0 leftmargin=0 topmargin=0><img src=\"" + picture + "\" width=" + w + " height=" + h + " border=\"0\">");
	}
}


function zoompre(picture,maxsz,w,h)
{
	ratio = MinorFrom( (maxsz/w),(maxsz/h) );
	w = parseInt(w*ratio);
	h = parseInt(h*ratio);
	trg = open('about:blank','nu','toolbar=no,scrollbar=no,width=' + w + ',height=' + h  );
	trg.document.write("<head><title>::Foto::</title></head><body rightmargin=0 leftmargin=0 topmargin=0><img src=\"" + picture + "\" width=" + w + " height=" + h + " border=\"0\">");
}


