<!--

function popup(url,width,height)
	{
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,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) {
	if(immagine!='')
		PrendiElementoDaId('immagine_top').innerHTML = '<img src="layout/upload/' + immagine + '" alt="" title="" />';
	}

function visualizza_flash(imagen,my_width,my_height)
	{
	 if(typeof(imagepop)!='undefined')
	 	imagepop.close();

	imagepop=window.open('popflash.php?image='+imagen+'&width='+my_width+'&height='+my_height,'imagepop','status=no,menubars=no,width='+my_width+',height='+my_height+',resize=no,scrollbars=no,top=70,left=70')
		 imagepop.focus();
	}

//-->
