<!--	

	function CercaComuneByProvincia(destinazione) {					 
		 document.cercaComuneProv.method = "post";
		 document.cercaComuneProv.action = destinazione; 
		 document.cercaComuneProv.submit();	
	}

	function CercaComuneByNome(destinazione) {					 
		 document.cercaComuneName.method = "post";
		 document.cercaComuneName.action = destinazione; 
		 document.cercaComuneName.submit();	
	}

	function InviaContenuti(destinazione) {					 
		 document.gestioneContenuti.method = "post";
		 document.gestioneContenuti.action = destinazione; 
		 document.gestioneContenuti.submit();	
	}

	function InviaBarraLocalita(destinazione) {					 
		 document.gestioneBarraLocalita.method = "post";
		 document.gestioneBarraLocalita.action = destinazione; 
		 document.gestioneBarraLocalita.submit();	
	}

	function InviaConfigurazione(destinazione) {					 
		 document.configurazione.method = "post";
		 document.configurazione.action = destinazione; 
		 document.configurazione.submit();	
	}

	function listbox_moveacross(sourceID, destID) {
		var src = document.getElementById(sourceID);
		var dest = document.getElementById(destID);	
		for(var count=0; count < src.options.length; count++) {	
			if(src.options[count].selected == true) {
					var option = src.options[count];	
					var newOption = document.createElement("option");
					newOption.value = option.value;
					newOption.text = option.text;
					newOption.selected = true;
					try {
							 dest.add(newOption, null); //Standard
							 src.remove(count, null);
					 }catch(error) {
							 dest.add(newOption); // IE only
							 src.remove(count);
					 }
					count--;	
			}	
		}	
	}
	
	MyUtil = new Object();
	MyUtil.selectFilterData = new Object();
	MyUtil.selectFilter = function(selectId, filter) {
		
		if(filter.length == 1){
			return;
		}
		
	    var list = document.getElementById(selectId);
	    if(!MyUtil.selectFilterData[selectId]) { //if we don't have a list of all the options, cache them now'
	        MyUtil.selectFilterData[selectId] = new Array();
	        for(var i = 0; i < list.options.length; i++) MyUtil.selectFilterData[selectId][i] = list.options[i];
	    }
	    list.options.length = 0; //remove all elements from the list
	    for(var i = 0; i < MyUtil.selectFilterData[selectId].length; i++) { //add elements from cache if they match filter
	        var o = MyUtil.selectFilterData[selectId][i];
	        if(o.text.toLowerCase().indexOf(filter.toLowerCase()) >= 0) list.add(o, null);
	    }	    
	}

	function confrontaOption(idA,idB){
	    var selectFieldA = document.getElementById(idA);
	    var selectFieldB = document.getElementById(idB);
	    
	    var optionsLengthA = selectFieldA.options.length;
	    var optionsLengthB = selectFieldB.options.length;
	    
	    for(var i = 0; i < optionsLengthA; i++){   	        	
	    	 for(var k = 0; k < optionsLengthB; k++){ 	    		 
	    		 if(selectFieldA.options[i].value == selectFieldB.options[k].value){
	    			 selectFieldA.options.remove(i); 
	    		 }	        		 
	    	 }
	    }	        
	}
	
	function SelezionaTutto(sel) {
		 var a = document.getElementById(sel);		 
		 for(var i=0; i<a.length; i++) {
			 a.options[i].selected = true;
		 }
		
	}
	
	function isInt(obj) {		
		if (isNaN(obj.value)){
			alert("Attenzione! Il numero non è un intero!");
			obj.value="";
			obj.focus();
		}
		else if (String(obj.value).indexOf(".") != (-1)){
			alert("Attenzione! Il numero non è un intero!");
			obj.value="";
			obj.focus();
		}
	}
	
	function carattereAlfanumerico(campo,stringa)
	{
	   var regExp=/^[a-zA-Z0-9_&]+$/;
	   if(stringa != ""){
		   if(regExp.test(stringa)==false){
			   alert("Puoi inserire solo caratteri alfanumerici con aggiunta di & e _");
			   campo.value="";
			   campo.focus();
		   }
	   }
	}
	
	function isUrl(obj) {
		obj.value = obj.value.replace(" ","_");		
	}
	
	function getProvinceByCodRegione(){
		var number = document.cercaMail.codRegione.selectedIndex;	
		document.cercaMail.method = "post";
		document.cercaMail.action = document.cercaMail.codRegione.options[number].value;
		document.forms.cercaMail.submit();	 
	}
	
	function CercaMail(destinazione) {					 
		 document.cercaMail.method = "post";
		 document.cercaMail.action = destinazione; 
		 document.cercaMail.submit();	
	}
	
	 //-->
