<!--
// crea un oggetto con due proprietà
// id_txt   -campo  text della combo
// val_txt  -campo value della combo
function data_combo(id_txt,val_txt)
{
  this.idtxt  = id_txt;
  this.valtxt = val_txt;
  return this;
}

function setOptionText(the_select, the_array)
{
  the_select.length=the_array.length;
  for (j=0; j < the_array.length; j++) {
    the_select.options[j] = new Option(the_array[j].idtxt,the_array[j].valtxt);
    }
}

function setCountryOptions(zone_value,field_country)
{
  var the_array = eval("CountryZone"+zone_value);
  setOptionText(field_country,the_array);
}

function setIvaOptions(zone_value,field_info,field_select)
{
  var the_num = eval ("IvaInfoRows"+zone_value);
  field_info.rows = the_num;
  var the_text = eval ("IvaInfoValue"+zone_value);
  field_info.value = the_text;
  var the_array = eval("IvaSelect"+zone_value);
  setOptionText(field_select,the_array);
}

function setOneOptionBlur(field_sel)
{
  if (field_sel.length == 1) {
    field_sel.blur();
  }
}
//-->


