function doChange(srcE, targetId)
{
    var val = srcE.options[srcE.selectedIndex].value;
    var targetE = document.getElementById(targetId);
    //alert(val);
    removeAll(targetE);
    if(val == 'Apple')
    {
        addOption('-6', targetE);
        addOption('-40 powder', targetE);
    }
    else if(val == 'Asparagus, Green')
    {
        addOption('-60 powder', targetE);
    }
    else if(val == 'Asparagus, White')
    {
        addOption('-60 powder', targetE);
    }
    else if(val == 'Beans, Green')
    {
        addOption('Cross Cut', targetE);
        addOption('1/4"', targetE);
        addOption('-6', targetE);
        addOption('-40 powder', targetE);
    }
    else if(val == 'Beets, Red')
    {
        addOption('-60 powder', targetE);
    }
    else if(val == 'Bell Peppers, Red')
    {
        addOption('Strips', targetE);
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('1/4"', targetE);
        addOption('1/8"', targetE);
        addOption('-8+40', targetE);
        addOption('-10+40', targetE);
        addOption('-16+40', targetE);
        addOption('-20+60', targetE);
        addOption('-40 powder', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Bell Peppers, Green')
    {
        addOption('Strips', targetE);
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('1/4"', targetE);
        addOption('1/8"', targetE);
        addOption('-8+40', targetE);
        addOption('-10+40', targetE);
        addOption('-16+40', targetE);
        addOption('-20+60', targetE);
        addOption('-40 powder', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Bell Peppers, Red/Green Mix')
    {
        addOption('Strips', targetE);
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('1/4"', targetE);
        addOption('1/8"', targetE);
        addOption('-8+40', targetE);
        addOption('-10+40', targetE);
        addOption('-16+40', targetE);
        addOption('-20+60', targetE);
        addOption('-40 powder', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Bell Peppers, Field Run')
    {
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('1/4"', targetE);
        addOption('1/8"', targetE);
        addOption('-8+40', targetE);
        addOption('-10+40', targetE);
        addOption('-16+40', targetE);
        addOption('-20+60', targetE);
        addOption('-40 powder', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Blueberries')
    {
        addOption('Strips', targetE);
        addOption('-6', targetE);
        addOption('-40 powder', targetE);
    }
    else if(val == 'Broccoli')
    {
        addOption('Florets', targetE);
        addOption('Beads', targetE);
        addOption('¾"', targetE); 
        addOption('3/8"', targetE); 
        addOption('1/4"', targetE); 
        addOption('-60 powder', targetE);
    }

    else if(val == 'Cabbage, White')
    {
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('-8+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Cabbage, Savory')
    {
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('-8+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Carrot')
    {
        addOption('Cross Cut', targetE);
        addOption('Shoestring', targetE);
        addOption('Strips', targetE);
        addOption('Flakes', targetE);
        addOption('3/4"', targetE);
        addOption('3/8"', targetE);
        addOption('1/4"', targetE);
        addOption('1/8"', targetE);
        addOption('-8+40', targetE);
        addOption('-10+40', targetE);
        addOption('-20+40', targetE);
        addOption('-20+60', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Carrot, B-grade')
    {
        addOption('Flakes', targetE);
        addOption('-6 granules', targetE);
        addOption('powder -40', targetE);
    }
    else if(val == 'Carrot, Puff Dried')
    {
        addOption('Flakes', targetE);
        addOption('3/4"', targetE);
        addOption('3/8"', targetE);
        addOption('1/4"', targetE);
    }
    else if(val == 'Cauliflower')
    {
        addOption('Florets', targetE);
        addOption('-8+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Celery Stalk')
    {
        addOption('Cross Cut & Canners Cut', targetE);
    }
    else if(val == 'Celery Stalk & Leaf')
    {
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('-10+40', targetE);
        addOption('-40 powder', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Celery Root')
    {
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('-8+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Chervil')
    {
        addOption('Flakes', targetE);
    }
    else if(val == 'Chile Peppers, Green')
    {
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('1/4"', targetE);
        addOption('-8+40', targetE);
        addOption('-40 powder', targetE);
    }
    else if(val == 'Chives')
    {
        addOption('Rings', targetE);
        addOption('-8+40', targetE);
        addOption('-20+60', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Cilantro')
    {
        addOption('Flakes', targetE);
        addOption('-10+50', targetE);
        addOption('-40 powder', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Corn')
    {
        addOption('Whole', targetE);
        addOption('-6', targetE);
    }
    else if(val == 'Cranberries')
    {
        addOption('-6', targetE);
        addOption('-40 powder', targetE);
    }
    else if(val == 'Dill')
    {
        addOption('Whole', targetE);
        addOption('-60', targetE);
    }
    else if(val == 'Garlic')
    {
        addOption('Chopped', targetE);
        addOption('Minced', targetE);
        addOption('-8+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Horseradish')
    {
        addOption('-16+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Jalapeno Pepper, Green')
    {
        addOption('Cross Cut', targetE);
        addOption('Flakes', targetE);
        addOption('1/4"', targetE);
        addOption('-8+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Jalapeno Pepper, Red')
    {
        addOption('Cross Cut', targetE);
        addOption('Flakes', targetE);
        addOption('1/4"', targetE);
        addOption('-8+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Leeks, Green')
    {
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('1/4"', targetE);
        addOption('-10+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Leeks, Green/White Mix')
    {
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('1/4"', targetE);
        addOption('-10+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Lemon Peel')
    {
        addOption('-8+40', targetE);
        addOption('-10+40', targetE);
        addOption('-16+40', targetE);
        addOption('-40 powder', targetE);
    }
    else if(val == 'Lime Peel')
    {
        addOption('-8+40', targetE);
        addOption('-10+40', targetE);
        addOption('-40 powder', targetE);
    }
    else if(val == 'Mushrooms, Champignon')
    {
        addOption('Slices', targetE);
        addOption('Kibbled', targetE);
        addOption('-8+40', targetE);
        addOption('-60 powder ', targetE);
    }
    else if(val == 'Mushrooms, Boletus Luteus')
    {
        addOption('Kibbled', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Mushrooms, Mixed European')
    {
        addOption('Kibbled', targetE);
    }
    else if(val == 'Mushrooms, Porcini')
    {
        addOption('Slices', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Onions, White')
    {
        addOption('Chopped', targetE);
        addOption('Minced', targetE);
        addOption('-8+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Onions, Green')
    {
        addOption('Flakes', targetE);
        addOption('-8+40', targetE);
        addOption('-20+60', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Onions, Green/White Mix')
    {
        addOption('Rings', targetE);
    }
    else if(val == 'Orange Peel')
    {
        addOption('1/4"', targetE);
        addOption('-8+40', targetE);
        addOption('-10+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Parsley')
    {
        addOption('Flakes', targetE);
        addOption('-10+30', targetE);
        addOption('-20+60', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Peas')
    {
        addOption('Whole', targetE);
        addOption('-10+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Peas, B-grade')
    {
        addOption('Whole', targetE);
        addOption('-10+40', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Potatoes')
    {
        addOption('¾"', targetE);
        addOption('3/8"', targetE);
        addOption('-10+40', targetE);
        addOption('-40 powder', targetE);
    }
    else if(val == 'Pumpkin')
    {
        addOption('3/8"', targetE);
        addOption('-40 powder', targetE);
    }
    else if(val == 'Shallots')
    {
        addOption('1/4"', targetE);
        addOption('1/8"', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Spinach')
    {
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('-60 powder', targetE);
    }
    else if(val == 'Spinach, B-grade')
    {
        addOption('Powder -60', targetE);
    }
    else if(val == 'Sweet Potato')
    {
        addOption('3/8"', targetE);
        addOption('-40 powder', targetE);
    }
    else if(val == 'Tomato')
    {
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('1/4"', targetE);
        addOption('1/8"', targetE);
        addOption('-8+40', targetE);
        addOption('-10+40', targetE);
        addOption('-16+40', targetE);
        addOption('-20+40', targetE);
        addOption('-20+60', targetE);
        addOption('-40 powder', targetE);
    }
    else if(val == 'Tomato, Spray Dried')
    {
        addOption('Powder -40', targetE);
    }
    else if(val == 'Tomato, Sun Dried')
    {
        addOption('Strips', targetE);
        addOption('Flakes', targetE);
        addOption('1/4"', targetE);
        addOption('1/8"', targetE);
        addOption('-40 powder', targetE);
    }
    else if(val == 'Vegetable Blends')
    {
        addOption('3/8"', targetE);
        addOption('-8+40', targetE);
        addOption('-40 powder', targetE);
    }
    else if(val == 'Zucchini')
    {
        addOption('Cross Cut', targetE);
        addOption('Flakes', targetE);
        addOption('3/8"', targetE);
        addOption('-60 powder', targetE);
    }
}
 
function addOption(value, e)
{
    var o = new Option(value);
    try
    {
        e.add(o);
    }
    catch(ee)
    {
        e.add(o, null);
    }
}
 
function removeAll(e)
{
    for(var i = 0, limit = e.options.length; i < limit - 1; ++i)
    {
        e.remove(1);
    }
}
