<!--

function popup(url,width,height)
	{
	width=(width+20);
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,navigation toolbar=no,status=no, top=0, left=0');
	Win.focus() ;
	}


function PrendiElementoDaId(id_elemento)
	{
	var elemento;
	if(document.getElementById)
		elemento = document.getElementById(id_elemento);
	else
		elemento = document.all[id_elemento];
	return elemento;
	}

	
	
function visualizza_img(immagine,width,height) {
	if(immagine!='')
		PrendiElementoDaId('immagine_top').innerHTML = '<a href="javascript:popup(\'popimage.php?image=layout/upload/' + immagine + '\', ' + width + ', ' + height + ')"><img src="imagemagic.php?dim=2&immagine=' + immagine + '" alt="" title="" /></a>';

		//PrendiElementoDaId('immagine_top').innerHTML = '<img src="imagemagic.php?dim=2&immagine=' + immagine + '" alt="" title="" />';
		//PrendiElementoDaId('immagine_top').innerHTML = '<img src="layout/upload/' + immagine + '" width="' + width + '" height="' + height + '" alt="" title="" />';
	}


function Apri(str,nome,width,height) {
    window.open(str, nome, 'width='+width+',height='+height+',scrollbars=no,status=no,location=no,toolbar=no');
}

//-->

