		function VisualizzaRicerca() {
			document['Selezione'].action = "elenco_ricerca_moto_nuove_usate.asp";
			document['Selezione'].submit();
		}
		
		function VisualizzaRicercaConcessionario(Tipo) {
			if (Tipo == "Nuove"){
				document['Selezione'].action = "elenco_moto_nuove_concessionario.asp";
			}else if (Tipo == "Usate"){
				document['Selezione'].action = "elenco_moto_usate_concessionario.asp";
			}
			document['Selezione'].submit();
		}
		
		function Stampa() {
			parent.principale.focus();
			window.print();
 		 }
		 
		 function CambiaImmagine(Immagine) {
			document.getElementById('ZoomImmagine').src = Immagine;
		}
		
		function MM_preloadImages() { 
			  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
			    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
			   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
		}
		
		function AnnullaErroriLogin2(NomeForm){
			document[NomeForm].elements['UserName2'].style.color = "#686762";
			document[NomeForm].elements['Password2'].style.color = "#686762";
		}
		
		function ControllaLogin2(NomeForm){
			AnnullaErroriLogin2(NomeForm);
			var UserName2 = document[NomeForm].elements['UserName2'].value;
			var Password2 = document[NomeForm].elements['Password2'].value;
			var Errore = 0;
			
			if (UserName2 == "" || UserName2 == 'Username'){
				document[NomeForm].elements['UserName2'].style.color = '#FF0000';
				document[NomeForm].elements['UserName2'].value = 'Username';
				Errore = 1;
			}
			
			if (Password2 == "" || Password2 == "Password"){
				document[NomeForm].elements['Password2'].style.color = '#FF0000';
				document[NomeForm].elements['Password2'].value = 'Password';
				Errore = 1;
			}
			
			if (Errore == 1){
				return false;
			}else{
				document[NomeForm].submit();
			}
		}