

function cambia()
 {


  valore1 = "BOLZANO";
  valore2 = "ATESINA";
  valore3 = "MERANO";
  valore4 = "VENOSTA";
  valore5 = "ISARCO";
  valore6 = "TURES";
  valore7 = "ROSENGARTEN";
  valore8 = "SCILIAR";
  valore9 = "BADIA";
  valore10= "PUSTERIA";
  valore11= "ALTAPUSTERIA";
  valore12= "GARDENA";
  valore13= "MERANERLAND";

  conta=0;
  for(i=1;i<=13;i++){
   stringa=eval("valore"+i);
   value=eval("form."+stringa+".value");
   if(value!=""){
    conta++;
    //alert(conta);
      }
   }

  if (conta <= 1)
  {
   for(i=1;i<=13;i++)
    {
      stringa=eval("valore"+i);
      value=eval("form."+stringa+".value");
       if (value=="")
        {disable=eval("form."+stringa);
         disable.disabled=true;}
    }
   }
   else{
   alert("Sie können nur eine Ortschaft pro Anfrage wählen!");
   attiva();
   }
  }

function attiva()
 {
 
form.BOLZANO.disabled=false;
form.ATESINA.disabled=false;
form.MERANO.disabled=false;
form.VENOSTA.disabled=false;
form.ISARCO.disabled=false;
form.TURES.disabled=false;
form.ROSENGARTEN.disabled=false;
form.SCILIAR.disabled=false;
form.BADIA.disabled=false;
form.PUSTERIA.disabled=false;
form.ALTAPUSTERIA.disabled=false;
form.GARDENA.disabled=false;
form.MERANERLAND.disabled=false;


form.BOLZANO.selectedIndex=0;
form.ATESINA.selectedIndex=0;
form.MERANO.selectedIndex=0;
form.VENOSTA.selectedIndex=0;
form.ISARCO.selectedIndex=0;
form.TURES.selectedIndex=0;
form.ROSENGARTEN.selectedIndex=0;
form.SCILIAR.selectedIndex=0;
form.BADIA.selectedIndex=0;
form.PUSTERIA.selectedIndex=0;
form.ALTAPUSTERIA.selectedIndex=0;
form.GARDENA.selectedIndex=0;
form.MERANERLAND.selectedIndex=0;

 }

 function annulla_data(campo)
  {
  if (campo==1)
   {
  form.GIORNO_ARRIVO.value="";
  form.MESE_ARRIVO.value="";
  form.ANNO_ARRIVO.value="";
  form.GIORNO_PARTENZA.value="";
  form.MESE_PARTENZA.value="";
  form.ANNO_PARTENZA.value="";
  }
 if (campo==2)
   {
  form.GIORNO_ARRIVO2.value="";
  form.MESE_ARRIVO2.value="";
  form.ANNO_ARRIVO2.value="";
  form.GIORNO_PARTENZA2.value="";
  form.MESE_PARTENZA2.value="";
  form.ANNO_PARTENZA2.value="";
  }
  }