AS2 combobox populates another combobox

Hi,

I have two comboboxes that load from an xml file. One called “size” one called “color”. AS and xml below…

comboSize = new XML();
comboSize.ignoreWhite = true;

comboSize.onLoad=function()
{
	var props= this.firstChild.childNodes[0].attributes;
	var info = this.firstChild.childNodes[0].childNodes;	
	for (var i=0; i<info.length; i++) {
		size.addItem({label:info*.attributes.size, data:info*.attributes.size});
	}
}

comboSize.load("product_details.xml");
<?xml version="1.0" encoding="utf-8"?>
<product_info> 
	<size> 
		<item size="Small" data="Small"/> 
		<item size="Medium" data="Medium"/> 
		<item size="Large" data="Large"/>
	</size> 
	<colour> 
		<item label="Black" data="Black"/>
 		<item label="White" data="White"/>
 		<item label="Red" data="Red"/>
	</colour>		
</product_info>

These work fine, but i would now like to make one combobox dependent on the other.
i.e. When you pick “Small” in the combobox “size”, the combobox “color” would display what colors are available in that size.

Any help would be greatly appreciated!!!