<!--

	var idSelect_Italia = "AreaItalia";
	var idSelect_Europa = "AreaEuropa";

	var areaScelta = "1";
	/* 1 = Italia, 0 = Europa */


// funzione che mostra o nasconde uno dei due select per le spese di spedizione

	function FiltraSelectSpedizione( Radio )
	{
		if ( Radio.value == 1 )
		{
			document.getElementById( idSelect_Italia ).style.display = "";
			document.getElementById( idSelect_Europa ).style.display = "none";
			areaScelta = 1;
		}
		else if ( Radio.value == 0 )
		{
			document.getElementById( idSelect_Italia ).style.display = "none";
			document.getElementById( idSelect_Europa ).style.display = "";
			areaScelta = 0;
		}
		else
		{
			document.getElementById( idSelect_Italia ).style.display = "none";
			document.getElementById( idSelect_Europa ).style.display = "none";
			areaScelta = 2;
		}
	}


/*
 * Funzione che filtra il select  della spedizione in modo da visualizzare solo una opzione
 */

//sniffing del browser
	var Browsers = Array( "MSIE", "Firefox" );
	var BrowserCorrente = "Firefox";
	
	for( i= 0; i< Browsers.length; i++ )
		{
			
			if ( navigator.userAgent.indexOf( Browsers[ i ] ) != -1 )
				{	BrowserCorrente = Browsers[ i ]; }
		}

//init select
	var CopiaSelect = document.createElement( "select" );
				CopiaSelect.id = "bufferSelect";

	function FiltraSelect( SelectFiltro, IdSelectDaFiltrare )
		{
			var SelectDaFiltrare = document.getElementById( IdSelectDaFiltrare );
			if( SelectDaFiltrare )
				{
				//controllo se la copia è stata inizializzata: viene eseguito solo una volta
					if( CopiaSelect.length == 0 )
						{
							for( Indice = 0; Indice < SelectDaFiltrare.length; Indice++ )
								{
									var OptionOriginale = SelectDaFiltrare.item( Indice );
									if( OptionOriginale )
										{
											var OptionTemp = document.createElement( "option" );
												OptionTemp.value = OptionOriginale.value;
												OptionTemp.title = OptionOriginale.title;
												OptionTemp.text = OptionOriginale.text;
											if( BrowserCorrente == "MSIE" )
												{ CopiaSelect.add( OptionTemp );	}
											else
												{	CopiaSelect.add( OptionTemp, null );	}
										}
								}
						}

				//inizio a filtrare la select: rimuovo tutte le opzioni correnti e in secondo momento ricarico quelle di default.

					while ( SelectDaFiltrare.length > 0 )		{	SelectDaFiltrare.remove(0);	}

					var Filtro =  SelectFiltro;

				//visualizzo nella select solo i campi select con il title uguale a quella filtrata
							for( Indice = 0; Indice < CopiaSelect.length; Indice++ )
								{
									OptionOriginale = CopiaSelect.item( Indice );
									if( OptionOriginale.title == Filtro || Filtro == "" ||  OptionOriginale.title == "" )
										{
											OptionTemp = document.createElement( "option" );
												OptionTemp.title = OptionOriginale.title;
												OptionTemp.text = OptionOriginale.text;
												OptionTemp.value = OptionOriginale.value;
											
											if( BrowserCorrente == "MSIE" )
												{	SelectDaFiltrare.add( OptionTemp );	}
											else
												{	SelectDaFiltrare.add( OptionTemp, null );	}
										}
								}
				}
		}


//-->