<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Edited by C. Kevin Provance for TPA Software.  May 01, 2002 -->

<!-- usage: <A HREF="javascript:Expand('path_to_img')" BORDER="0"><IMG SRC="path_to_img" BORDER="0"></A>

function Expand(img){
	foto1= new Image();
	foto1.src=(img);
  	Controlla(img);
}

function Controlla(img){
	if((foto1.width!=0)&&(foto1.height!=0)){
		viewFoto(img);
  	}
  	else{
    		funzione="Controlla('"+img+"')";
    		intervallo=setTimeout(funzione,20);
  	}
}

function viewFoto(img){
  	largh=foto1.width+20;
  	altez=foto1.height+20;
  	stringa="width="+largh+",height="+altez;
  	finestra=window.open(img,"",stringa);
}
