function caricaValoreCombo(combo,valore)
{
  for(i=0;i<combo.options.length;i++)
  {
     if (combo.options[i].value.toUpperCase()==valore.toUpperCase())
     {
       combo.selectedIndex=i;
       i=combo.options.length;
     }
  }
}

function VaiCampo(oggetto)
{
  if (oggetto.disabled==false)
  {
    if (oggetto.type=='text')
      {oggetto.select();}
    oggetto.focus();
  }
}

function data_odierna()
{
	var LocalTime;
	var Giorno;
	var Mese; 
	var Anno;
	// setto il giorno e il mese corrente	
	LocalTime = new Date();
	Giorno = (LocalTime.getDate());
	Mese = (LocalTime.getMonth() + 1);
	Anno = (LocalTime.getYear());
	
		if 
		(Mese.length = 1) {
		Mese = ("0" + Mese);
		}
		
	    if 
		(Giorno.length = 1) {
		Giorno = ("0" + Giorno);
		}
		
	Data = (Giorno + "/" + Mese + "/" + Anno)
	Data= Data.split("/");
	Data = parseInt(Data[2] + Data[1] + Data[0]);
	return Data;
}