scusa ma cosi non mi funziona
codice:
function handleChange1(newDisplay)
{
	var StateSelect, CategoriaSelect, NumEntries, i
    StateSelect = document.getElementById("categoria")
    CategoriaSelect = document.getElementById("articolo")
	


  for (i = CategoriaSelect.length; i > 1; i--)
  {
    CategoriaSelect.options[i-1] = null
  }
if (!Array.prototype.indexOf)
{
  Array.prototype.indexOf = function(elt /*, from*/)
  {
    var len = this.length;

    var from = Number(arguments[1]) || 0;
    from = (from < 0)
         ? Math.ceil(from)
         : Math.floor(from);
    if (from < 0)
      from += len;

    for (; from < len; from++)
    {
      if (from in this &&
          this[from] === elt)
        return from;
    }
    return -1;
  };
}
	alert('Oggetto newDisplay: ' + newDisplay + ' newDisplay: ' + newDisplay.length);
	alert(arrcategoria[arrcategoria.indexOf(newDisplay)]);

  if (newDisplay.length >= 0)
  {
    NumEntries = newDisplay.length
    for (i = 1; i <= NumEntries; i++)
    {
      //CategoriaSelect.options[i] = new Option(([newDisplay])[i-1],([0])[i-1])
      CategoriaSelect.options[i] = new Option(arrcategoria[arrcategoria.indexOf(newDisplay)],(arrcategoria[newDisplay])[i-1])
    }
  }
  CategoriaSelect.selectedIndex = 1

}