<!-- 

// Apertura popup
function newwindow(URL,titolo,impostazioni)
{ 
  larghezza = 600
  altezza = 450
  margineSx = (screen.width - larghezza)/2
  margineTop = (screen.height - altezza)/2  
  //handle = window.open(URL,'definizione','width='+larghezza+',height='+altezza+',resizable=yes,scrollbars=yes,left='+ margineSx+',top='+margineTop);
  handle = window.open(URL,titolo,impostazioni+',left='+ margineSx+',top='+margineTop);
  handle.focus();
} 

function newwindowC(URL,larghezza,altezza)
{   
  margineSx = (screen.width - larghezza)/2
  margineTop = (screen.height - altezza)/2  
  handle = window.open(URL,'definizione','width='+larghezza+',height='+altezza+',resizable=yes,scrollbars=yes,left='+ margineSx+',top='+margineTop);  
  handle.focus();
} 

function newwindowMax(URL,titolo,impostazioni)
{   
  larghezza = screen.width - 15;
  altezza = screen.height - 40;
  handle = window.open(URL,titolo,'width='+ larghezza + ',height=' + altezza + ',resizable=yes,scrollbars=yes,left=0,top=0'+impostazioni);  
  handle.focus();
} 


// Visualizza/nasconde la form di ricerca Avanzata
function avanzate(stato) {
	if (document.all) {
		document.all.opzAvanzate.style.display = stato
		if (stato == '') {
			document.all.linkAvanzate.style.display = 'none';
			document.all.linkBase.style.display = '';
		}
		else  {
			document.all.linkAvanzate.style.display = '';
			document.all.linkBase.style.display = 'none';
		}
		
	}
	if (document.getElementById) {
		document.getElementById("opzAvanzate").style.display = stato
		if (stato == '') {
			document.getElementById("linkAvanzate").style.display = 'none';
			document.getElementById("linkBase").style.display = '';
		}
		else  {
			document.getElementById("linkAvanzate").style.display = '';
			document.getElementById("linkBase").style.display = 'none';
		}
	}
}

// Funzione utilizzata per aprire la versione stampabile
// della pagina
// Per netscape l'url non va encodato ma va lasciato in chiaro
function loadPrintPage(Url, UrlNN) {
	
  strUrl = Url
  			
  ns=(document.layers);	
  dom=document.getElementById?true:false			
  
  if ((ns) && (!dom)) strUrl = UrlNN
  
  width=700
  height=500
    
  valleft = (screen.width - width)/2
  valtop = 50	//(screen.height- height)/2
  //'definizione<% = Trim(Second(Now) & Minute(Now)) %>'
  handle = window.open(strUrl,'definizione','width=' + width + ', height=' + height + ', left=' + valleft + ', top=' + valtop + ', resizable=yes , scrollbars=yes, menubar=yes, location=yes');
  handle.focus();		

}

// Funzione usata per aprire la pagina (Spedisci ad un amico)
function loadSpedisciAmico(Url, UrlNN) {

	strUrl = Url
  			
  ns=(document.layers);	
  dom=document.getElementById?true:false			
  
  if ((ns) && (!dom)) strUrl = UrlNN
  
  width=430
  height=340
    
  valleft = (screen.width - width)/2
  valtop = (screen.height- height)/2
  
  handle = window.open(strUrl,'InviaAdAmico','width=' + width + ', height=' + height + ', left=' + valleft + ', top=' + valtop + ', resizable=no , scrollbars=yes, menubar=no, location=no');
  handle.focus();		
	
}
// -->