
var iArrayMax = 200
var aDropdown = new Array(iArrayMax)


var iArrayMax = LoadArrays()


function sElement(sParentId,sValue,sDescription)
{	
	this.ParentId = sParentId
	this.Id = sValue
	this.Description = sDescription
}

function bCascadeDrop(oDDsource,oDDdest)
{
	var iX
	var sText
	var iY= 0
	var sOptionId
	var sOptionDesc
	var iStartPos
		
	sText = oDDsource.options[oDDsource.selectedIndex].value 
	if (sText != '')
	{
		oDDdest.options.length = 0                
		
		for (iX=0; iX<=iArrayMax; iX++) 
		{		
			if(sText == Array[iX].ParentId)
			{
			sOptionId = Array[iX].Id
			sOptionDesc= Array[iX].Description
			oDDdest.options[iY] = new Option (sOptionDesc,sOptionId)	
			iY = iY +1		
			}	
		}	
	}	
}
