	var intMakeIndex, intYearIndex, intModelIndex
	
	strDefMake = "Ford";
	//strDefYear = "2002";
	strDefModel = "Crown Victoria";
	
	function IDC_Loader()
		{
		PopulateMake();
		}
		
	function PopulateMake()
		{
		with(document.step1)
			{
			for(var i = 0; AutoMakeName[i] != null; i++) 
				{
				make.options[i].text = AutoMakeName[i];
				if (AutoMakeName[i] == strDefMake) intMakeIndex = i;
				make.options[i].value = AutoMakeNumber[i];
				}
			make.options.length = i;
			make.options.selectedIndex = intMakeIndex;
			PopulateYear();
			}
		}
	
	function PopulateYear()
		{
		intYearCount = 0
		with(document.step1)
			{
			year.options.length = 1;
			for(var i = 0; Years[i] != null; i++) 
				{
				if (AutoModels[make.options.selectedIndex][Years[i]] != null)
					{
					if (year.options.length <= intYearCount) year.options.length = intYearCount + 1;
					if (Years[i] == strDefYear) intYearIndex = intYearCount;
					year.options[intYearCount].text = Years[i];
					year.options[intYearCount].value = Years[i];
					intYearCount = intYearCount + 1;
					}
				}
			year.options.length = intYearCount;
			year.options.selectedIndex = intYearIndex;
			PopulateModel();
			}
		}
			
	function PopulateModel()
		{
		with(document.step1)
			{
			intCounter = 0
			intModelIndex = 0
			intYear = year.options[year.selectedIndex].value;
			for(var i = 1; AutoModels[make.options.selectedIndex][intYear][i] != "_"; i=i+2) 
				{
				if (model.options.length <= intCounter) model.options.length = intCounter + 1;
				if (AutoModels[make.options.selectedIndex][intYear][i] == strDefModel && make.options[make.selectedIndex].text == strDefMake) intModelIndex = intCounter
				model.options[intCounter].text = AutoModels[make.options.selectedIndex][intYear][i];
				model.options[intCounter].value = AutoModels[make.options.selectedIndex][intYear][i + 1];
				intCounter = intCounter + 1
				}
			model.options.length = intCounter;
			model.options.selectedIndex = intModelIndex;
			}
		}