
function changeAttributeMenu(rb,att)
{
// Get the variables to work with
	var i = rb.value;
	eval('var data = attrib_'+i+';');
	var form = rb.form;
	var len = form.elements.length;
	var menu;
	var att1 = att+'[]';
	for (var x=0; x<len; x++)
	{
		if (form.elements[x].name == att || form.elements[x].name == att1) menu = form.elements[x];
	}

// Populate the menu with the attributes that go with the selection
	var count = 0;
	for (i in data)
	{
		menu.options[count] = new Option(data[i],i);
		count++;
	}
	menu.length = count;
	menu.selected = -1;
	menu.selectedIndex = -1;
}
