		
		// Array that holds the Product Brands
		BrandArray = new Array(2);
		
		//This array will hold the brand ID's
		BrandArrayValue = new Array(2);
		
		// Array that holds the Product Types
		TypeArray = new Array(2);	
		
		//This array will hold the type ID's
		TypeArrayValue = new Array(2);
			
		//Set the IDCounter
		
		
		//Set the BrandCounter
		
		
		//Set the TypeCounter
			
			
			// Update the counters 		
					
			
			// Populate the Category Array
			TypeArray1 =  new Array(1);
			
			TypeArrayValue1 =  new Array(1);
			
			// If there is a Type for the selected product category then fill with the product types.
			
				TypeArray1[1] = 'Bass Fishing';				
				TypeArrayValue1[1] = '10';
				
				
				TypeArray1[2] = 'Cuddy';				
				TypeArrayValue1[2] = '13';
				
				
				TypeArray1[3] = 'Deckboat';				
				TypeArrayValue1[3] = '16';
				
				
				TypeArray1[4] = 'Fishing & Center Console';				
				TypeArrayValue1[4] = '9';
				
				
				TypeArray1[5] = 'Midcabin/Cruisers';				
				TypeArrayValue1[5] = '17';
				
				
				TypeArray1[6] = 'Project Boats';				
				TypeArrayValue1[6] = '14';
				
				
				TypeArray1[7] = 'Runabout';				
				TypeArrayValue1[7] = '12';
				
				
				TypeArray1[8] = 'Ski/Fish';				
				TypeArrayValue1[8] = '19';
				
				
				TypeArray1[9] = 'Tournament Ski';				
				TypeArrayValue1[9] = '11';
				
				
				TypeArray1[10] = 'Walleye';				
				TypeArrayValue1[10] = '18';
				
						
			
			
			// Set the counters back to 0		
				
			
			// Update the counters 		
					
			
			// Populate the Category Array
			TypeArray2 =  new Array(1);
			
			TypeArrayValue2 =  new Array(1);
			
			// If there is a Type for the selected product category then fill with the product types.
			
				TypeArray2[1] = 'Complete Lower Units';				
				TypeArrayValue2[1] = '22';
				
				
				TypeArray2[2] = 'Complete Sterndrives';				
				TypeArrayValue2[2] = '23';
				
				
				TypeArray2[3] = 'Complete Upper Units';				
				TypeArrayValue2[3] = '24';
				
						
			
			
			// Set the counters back to 0		
			
		
		
		
		//Populate the brand Array
			
			
			// Update the counters 			
					
			
			
			// Populate the Category Array
			BrandArray1 =  new Array(1);
			
			// Populate the BrandID Array
			BrandArrayValue1 =  new Array(1);
			
			// If there is a brand for the selected product category then fill with the product brands.
			
				BrandArray1[1] = 'Azura';				
				BrandArrayValue1[1] = '20';				
				
				BrandArray1[2] = 'Boston Whaler';				
				BrandArrayValue1[2] = '21';				
				
				BrandArray1[3] = 'Caprice';				
				BrandArrayValue1[3] = '30';				
				
				BrandArray1[4] = 'Celebrity';				
				BrandArrayValue1[4] = '63';				
				
				BrandArray1[5] = 'Century';				
				BrandArrayValue1[5] = '65';				
				
				BrandArray1[6] = 'Chrysler';				
				BrandArrayValue1[6] = '53';				
				
				BrandArray1[7] = 'Cobia';				
				BrandArrayValue1[7] = '62';				
				
				BrandArray1[8] = 'Columbian';				
				BrandArrayValue1[8] = '56';				
				
				BrandArray1[9] = 'CorrectCraft';				
				BrandArrayValue1[9] = '26';				
				
				BrandArray1[10] = 'Dynasty';				
				BrandArrayValue1[10] = '61';				
				
				BrandArray1[11] = 'Fabuglass';				
				BrandArrayValue1[11] = '22';				
				
				BrandArray1[12] = 'Four Winns';				
				BrandArrayValue1[12] = '55';				
				
				BrandArray1[13] = 'Galaxy';				
				BrandArrayValue1[13] = '67';				
				
				BrandArray1[14] = 'Glastron';				
				BrandArrayValue1[14] = '54';				
				
				BrandArray1[15] = 'Jason';				
				BrandArrayValue1[15] = '25';				
				
				BrandArray1[16] = 'Javelin';				
				BrandArrayValue1[16] = '52';				
				
				BrandArray1[17] = 'Johnson';				
				BrandArrayValue1[17] = '68';				
				
				BrandArray1[18] = 'Larson';				
				BrandArrayValue1[18] = '29';				
				
				BrandArray1[19] = 'Mark 1';				
				BrandArrayValue1[19] = '32';				
				
				BrandArray1[20] = 'Pursuit';				
				BrandArrayValue1[20] = '51';				
				
				BrandArray1[21] = 'Sea Ray';				
				BrandArrayValue1[21] = '31';				
				
				BrandArray1[22] = 'Sea Star';				
				BrandArrayValue1[22] = '59';				
				
				BrandArray1[23] = 'Sea Wind';				
				BrandArrayValue1[23] = '69';				
				
				BrandArray1[24] = 'Silverline';				
				BrandArrayValue1[24] = '58';				
				
				BrandArray1[25] = 'Skeeter';				
				BrandArrayValue1[25] = '24';				
				
				BrandArray1[26] = 'Sportcraft';				
				BrandArrayValue1[26] = '50';				
				
				BrandArray1[27] = 'Starcraft';				
				BrandArrayValue1[27] = '57';				
				
				BrandArray1[28] = 'Stingray';				
				BrandArrayValue1[28] = '60';				
				
				BrandArray1[29] = 'Sunray';				
				BrandArrayValue1[29] = '28';				
				
				BrandArray1[30] = 'Supra';				
				BrandArrayValue1[30] = '27';				
				
				BrandArray1[31] = 'Thundercraft';				
				BrandArrayValue1[31] = '66';				
				
				BrandArray1[32] = 'Tracker';				
				BrandArrayValue1[32] = '23';				
				
				BrandArray1[33] = 'Triton';				
				BrandArrayValue1[33] = '33';				
				
				BrandArray1[34] = 'Wellcraft';				
				BrandArrayValue1[34] = '64';				
						
			
			
			// Set the counters back to 0
				
			
			// Update the counters 			
					
			
			
			// Populate the Category Array
			BrandArray2 =  new Array(1);
			
			// Populate the BrandID Array
			BrandArrayValue2 =  new Array(1);
			
			// If there is a brand for the selected product category then fill with the product brands.
			
				BrandArray2[1] = 'Aftermarket';				
				BrandArrayValue2[1] = '76';				
				
				BrandArray2[2] = 'Mercruiser';				
				BrandArrayValue2[2] = '74';				
				
				BrandArray2[3] = 'OMC';				
				BrandArrayValue2[3] = '37';				
				
				BrandArray2[4] = 'Volvo Penta';				
				BrandArrayValue2[4] = '36';				
						
			
			
			// Set the counters back to 0
				
			
			// Update the counters 			
					
			
			
			// Populate the Category Array
			BrandArray3 =  new Array(1);
			
			// Populate the BrandID Array
			BrandArrayValue3 =  new Array(1);
			
			// If there is a brand for the selected product category then fill with the product brands.
			
				BrandArray3[1] = 'Borg Warner';				
				BrandArrayValue3[1] = '39';				
				
				BrandArray3[2] = 'Hurth';				
				BrandArrayValue3[2] = '38';				
						
			
			
			// Set the counters back to 0
				
			
			// Update the counters 			
					
			
			
			// Populate the Category Array
			BrandArray4 =  new Array(1);
			
			// Populate the BrandID Array
			BrandArrayValue4 =  new Array(1);
			
			// If there is a brand for the selected product category then fill with the product brands.
			
				BrandArray4[1] = 'Ford';				
				BrandArrayValue4[1] = '42';				
				
				BrandArray4[2] = 'GM';				
				BrandArrayValue4[2] = '41';				
				
				BrandArray4[3] = 'Mercruiser';				
				BrandArrayValue4[3] = '43';				
				
				BrandArray4[4] = 'Renault';				
				BrandArrayValue4[4] = '40';				
						
			
			
			// Set the counters back to 0
				
			
			// Update the counters 			
					
			
			
			// Populate the Category Array
			BrandArray5 =  new Array(1);
			
			// Populate the BrandID Array
			BrandArrayValue5 =  new Array(1);
			
			// If there is a brand for the selected product category then fill with the product brands.
			
				BrandArray5[1] = 'Alpha';				
				BrandArrayValue5[1] = '44';				
				
				BrandArray5[2] = 'OMC & Cobra';				
				BrandArrayValue5[2] = '45';				
				
				BrandArray5[3] = 'SX Cobra & Volvo SX';				
				BrandArrayValue5[3] = '46';				
						
			
			
			// Set the counters back to 0
				
			
			// Update the counters 			
					
			
			
			// Populate the Category Array
			BrandArray6 =  new Array(1);
			
			// Populate the BrandID Array
			BrandArrayValue6 =  new Array(1);
			
			// If there is a brand for the selected product category then fill with the product brands.
			
				BrandArray6[1] = 'Chrylser Marine';				
				BrandArrayValue6[1] = '48';				
				
				BrandArray6[2] = 'Evinrude';				
				BrandArrayValue6[2] = '71';				
				
				BrandArray6[3] = 'Ford Marine';				
				BrandArrayValue6[3] = '49';				
				
				BrandArray6[4] = 'GM';				
				BrandArrayValue6[4] = '75';				
				
				BrandArray6[5] = 'Johnson';				
				BrandArrayValue6[5] = '72';				
				
				BrandArray6[6] = 'Mercruiser';				
				BrandArrayValue6[6] = '70';				
				
				BrandArray6[7] = 'Nissan Marine';				
				BrandArrayValue6[7] = '73';				
				
				BrandArray6[8] = 'Volvo Penta';				
				BrandArrayValue6[8] = '47';				
						
			
			
			// Set the counters back to 0
			
		
		
			
		function PopulateBrands() {
			
			// Get the value of the Category Selected, the CategoryID will be the value
			//var SelectedCategory = document.myform.Category.value;
			var SelectedIndex = document.myform.Category.selectedIndex;		
			var SelectedCategory = document.myform.Category.options[SelectedIndex].value;
			
			// Get the current length of the select box
			var CurrentListlen = document.myform.Brand.length - 1;
			
			if(SelectedCategory == "ChooseOne") {
				for(j=CurrentListlen; j > 0; j--) {
					document.myform.Brand.options[j] = null;						
				}					
			}
			else {
				
				// if the current length of the select box is not 0, then delete the entries in the
				// select box.
				if(CurrentListlen != 0) {				
					for(j=CurrentListlen; j > 0; j--) {
						document.myform.Brand.options[j] = null;		
					}
				}
				
				
				// If the selected category is either a boat or Sterndrive then use the 
				// Type array
				if(SelectedCategory == 1 || SelectedCategory == 2 || SelectedCategory == 7) {
					// Get the Name of the Array that holds the types for the selected category
					var MyArray = eval("TypeArray"+SelectedCategory);					
					
					var MyArrayValue = eval("TypeArrayValue"+SelectedCategory);	
				}
				
				// If the selected category is not either a boat or Sterndrive then use the
				// Brand array
				else {
					// Get the Name of the Array that holds the brands for the selected category
					var MyArray = eval("BrandArray"+SelectedCategory);
					
					var MyArrayValue = eval("BrandArrayValue"+SelectedCategory);	
				}
				
						
				// Get the length of the array of keywords
				var MyArrayLength = MyArray.length -1;
				
				// Create a new array "Keywordarray", this array will populate the selectbox
				var Secondarray = new Array();		
				
				
				// Loop throuh the keyword array for the selected category
				for(i=1; i<=MyArrayLength; i++) {			
					Secondarray[i] =  new Option(MyArray[i], MyArrayValue[i]);				
				}				
				
							
				// Get the length of the array that will populate the select box.
				var NewLength = Secondarray.length;
							
				for(j=1; j<=(NewLength - 1); j++) {
					document.myform.Brand.options[j] = Secondarray[j];									
				}				
			}		
			
		}
		
		
		function CheckBox() {
			if(document.myform.Brand.selectedIndex == 0) {
				alert("You must select a product Brand/Type to conduct search.");
				return false;
			}	
			else if(document.myform.Category.selectedIndex == 0) {
				alert("You must select a product Brand/Type to conduct search.");
				return false;
			}	
		}
		