
//funzione per i moduli di ricerca su aree  viaggi
function auto_search(targ,selObj,restore){ 
 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
 if (restore) selObj.selectedIndex=0;
}

//funzione per aprire i link esterni in una nuova finestra
	function nuova_finestra(pagina) {
		window.open(pagina,'Galleria','scrollbars=yes,resizable=yes,status=no,width=900,height=600,location=yes,toolbar=yes');
		}



//funzione per aprire una finestra centrata
	
function apriPopupCentrata(nome, titolo, lar, alt, feat){
        var wdt = screen.width;
        var hgt = screen.height;
        var x = Math.round( (wdt / 2) - (lar / 2) );
        var y = Math.round( (hgt / 2) - (alt / 2) );
        window.open(nome, titolo, 'width=' + lar + ',height=' + alt + ',left=' + x + ',screenX=' + x + ',top=' + y + ',screenY=' + y + ',' + feat); 
}


//funzione per l'ingrandimento delle immagini in una pop up 		

function apri(url_foto,des_foto){
		addr="/include/fullsize.htm?"+url_foto+"&amp;"+escape(des_foto)
		alt=350
		lar=500
		rszb=(document.layers)?1:0;
		props='height='+alt+',width='+lar+',top='+parseInt((screen.availHeight-alt)/2)+',left='+parseInt((screen.availWidth-lar)/2)+',scrollbars=0,resizable='+rszb+',toolbar=0,menubar=0,location=0,status=0';
		window.open(addr,'_blank',props);
	}

