var destData = new Array()
destData = [
[ 'KTN', 999, 'Please Select a Destination'],
[ 'KTN', 'KLW', 'KLAWOCK, AK'],
[ 'KLW', 999, 'Please Select a Destination'],
[ 'KLW', 'KTN', 'KETCHIKAN INTERNATIONAL'],
[ 9999999, 99999999, 'none, none' ]
 ]

function fillItems( intStart )
{
	var fOrig = document.flight_finder.ORIG		
	var fDest = document.flight_finder.DEST					
	var a = destData					
	var b, c, d, intItem, intType

	if ( intStart > 0 )
	{
		for ( b = 0; b < a.length; b++ )
		{
			if ( a[b][1] == intStart )
			{
				intType = a[b][0];
			}
		}

		for ( c = 0; c < fOrig.length; c++ )
		{
			if ( fOrig.options[ c ].value == intType )
			{
				fOrig.selectedIndex = c;
			}
		}	
	}

	if ( intType == null )
	{
		intType = fOrig.options[ fOrig.selectedIndex ].value
	}
	fDest.options.length = 0;
	for ( d = 0; d < a.length; d++ )
	{
		if ( a[d][0] == intType )
		{
			fDest.options[ fDest.options.length ] = new Option( a[d][2], a[d][1] ); // no line-break here
		}
		if ( a[d][1] == intStart )
		{
			fDest.selectedIndex = fDest.options.length - 1;
		}
	}
}



