	function loadManufacturers(str_id,id2){
		//str_id = hash delimited string vehicleCategoryID#vehicleClassID
		//id2 = Existing Manufacturer ID
		var a = str_id.split("#")
		int_catId = a[0]
		int_classId = a[1]
		document.forms[0].int_VehicleClassID.value = int_classId;
		//Does a categoryID for this category exist in array?
		var booMatch = false
		for (valuex in CategoryID){
			if (CategoryID[valuex] == int_catId){
				booMatch = true;
			}
		}
		//if category does have vehicles then loop through array and populate select manufacturer drop down
		if (booMatch == true){
			//enable the select manufacturer select box
			document.forms[0].vehicle_manufacturer.disabled=false;
			//Create a new option
			document.forms[0].vehicle_manufacturer.options[0] = new Option("Please select a Manufacturer","0");
			document.forms[0].vehicle_manufacturer.options.length = 1;
			//Disable the select model select box
			document.forms[0].vehicle_model.options.length = 0;
			document.forms[0].vehicle_model.options[0] = new Option("Unknown","null");
			document.forms[0].vehicle_model.disabled=true;
			var intCounter = 1;
			//Loop through CategoryID array to find all matching items with passed category ID
			for (valuex in CategoryID){
				if (CategoryID[valuex] == int_catId){
					//Create new option in select menu for the current vehicle manufacturer
					document.forms[0].vehicle_manufacturer.options[intCounter] = new Option(SelectName[valuex],SelectID[valuex]);
					if (SelectID[valuex] == id2){
						document.forms[0].vehicle_manufacturer.selectedIndex = intCounter;
					}
					if (SelectID[valuex] == id2){
						document.forms[0].vehicle_manufacturer.selectedIndex = intCounter;
					}
				intCounter = intCounter + 1;
				}
			}
		}
		else{
			//No records for this vehicle type, disable all select boxes
			document.forms[0].vehicle_manufacturer.options.length = 0;
			document.forms[0].vehicle_manufacturer.options[0] = new Option("Unknown","null");
			document.forms[0].vehicle_manufacturer.disabled=true;
			document.forms[0].vehicle_model.options.length = 0;
			document.forms[0].vehicle_model.options[0] = new Option("Unknown","null");
			document.forms[0].vehicle_model.disabled=true;
		}
	}
	
	function loadModels(id,id2,blnDisabled){
		//id = Manufacturer ID
		//id2 = Existing Model ID
		//enable the select model select box
		if (id!=0){
			document.forms[0].vehicle_model.disabled=false;
			//Create a new option
			document.forms[0].vehicle_model.options[0] = new Option("Please select a Model","0");
			document.forms[0].vehicle_model.options.length = 1;
			var intCounter = 1;
			//Loop through ParentID array and pick out all models for the passed manufacturer
			for (valuex in ParentID){
				if (ParentID[valuex] == id){
					document.forms[0].vehicle_model.options[intCounter] = new Option(SelectName[valuex],SelectID[valuex]);
					if (SelectID[valuex] == id2){
						document.forms[0].vehicle_model.selectedIndex = intCounter;
					}
					intCounter = intCounter + 1;
				}
			}
			//If no models exist then set to Unknown
			if(document.forms[0].vehicle_model.options.length == 1){
				document.forms[0].vehicle_model.options.length = 0;
				document.forms[0].vehicle_model.options[0] = new Option("Unknown","null");
				document.forms[0].vehicle_model.disabled=true;
			}
			else{
				//Add 'Other' option
				document.forms[0].vehicle_model.options[intCounter] = new Option("other","");
				if (id2==0){
					document.forms[0].vehicle_model.selectedIndex = intCounter;
				}
			}
		}
		if (blnDisabled=="True"){
			document.forms[0].vehicle_manufacturer.disabled=true;
			document.forms[0].vehicle_model.disabled=true;
		}
	}