<!-- Begin

var arrayItems = new Array();

arrayItems[0] = new Array();
arrayItems[0][0] = "Seleccione Modelo";

arrayItems[1] = new Array();
arrayItems[1][0] = "EAN 8";
arrayItems[1][1] = "EAN 13";
arrayItems[1][2] = "EAN 13 Truncado";
arrayItems[1][3] = "EAN 13+2";
arrayItems[1][4] = "EAN 13+5";
arrayItems[1][5] = "EAN 128";

arrayItems[2] = new Array();
arrayItems[2][0] = "UPC-E";
arrayItems[2][1] = "UPC-A";

arrayItems[3] = new Array();
arrayItems[3][0] = "ISBN";
arrayItems[3][1] = "ISBN+2";
arrayItems[3][2] = "ISBN+5";


function selectChange(control, controlToPopulate)
{
  // Empty the second drop down box of any choices
  for (var q=controlToPopulate.options.length;q>=0;q--)
	controlToPopulate.options[q]=null;

  //if (control.name == "firstChoice") {
    // Empty the third drop down box of any choices
    //for (var q=myChoices.thirdChoice.options.length;q>=0;q--) myChoices.thirdChoice.options[q] = null;
  //}

  // ADD Default Choice - in case there are no values
  var opcionDefecto = new Option( "Seleccione Modelo ", 0 )
  controlToPopulate.options[0] = opcionDefecto

  // Now loop through the array of individual items
  // Any containing the same child id are added to
  // the second dropdown box

  var items = arrayItems[control.value]
  if (items != null) {
    for ( x = 0 ; x < items.length  ; x++ )
    {

        var opcion = new Option(items[x], x )
        controlToPopulate.options[x] = opcion
    }
  }
}
function selectChange2()
{
	indexProducto = myChoices.firstChoice.value
	indexModelo   = myChoices.secondChoice.value

	if ( (indexProducto != 0) && (indexModelo != 0) )
        {	
		myChoices.modelo.value = arrayItems[indexProducto][indexModelo];		
        }
}

//  End -->