//Double Combo Box with Description Code- by Randall Wald (http://www.rwald.com)
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use


var num_of_cats = 33; // This is the number of categories, including the first, blank, category.
var open_in_newwindow = 0; // Set 1 to open links in new window, 0 for no.
var option_array = new Array(num_of_cats);

option_array[0] = new Array(new Array(0, "Any Category")); // This is the first (blank) category. Don't mess with it.


	option_array[1] = new Array(new Array(0, "Select a category instead"));
	
        	option_array[2] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(236, "SAS")
					, new Array(31, "Fibre Channel")
					, new Array(30, "SCSI")
					, new Array(29, "Serial ATA")
					, new Array(28, "Ultra ATA")
			);
        	option_array[3] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(131, "JBOD")
					, new Array(130, "RAID")
			);
        	option_array[4] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(58, "Tape Drives")
					, new Array(37, "Autoloaders")
					, new Array(38, "Libraries")
					, new Array(225, "Backup Solutions")
			);
        	option_array[5] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(223, "NAS / iSCSI")
					, new Array(33, "NAS")
					, new Array(34, "iSCSI")
					, new Array(32, "Fibre Channel SAN")
			);
        	option_array[6] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(125, "SCSI Extenders")
					, new Array(186, "SCSI Converters")
			);
        	option_array[7] = new Array(new Array(0, "Select subcategory..")
		
			);
        	option_array[8] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(194, "FC <--> FC, FCIP, IP/iSCSI")
					, new Array(201, "FC <--> IP/iSCSI, iFCP")
					, new Array(81, "FC <--> IP/iSCSI")
					, new Array(112, "FC <--> SCSI")
					, new Array(226, "IP/iSCSI to SCSI")
			);
        	option_array[9] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(227, "Fixed Device")
					, new Array(202, "Removable Drive Carriers/Frames")
			);
        	option_array[10] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(237, "SAS Host Adapters")
					, new Array(77, "iSCSI HBAs")
					, new Array(73, "SCSI Host Adapter")
					, new Array(182, "RAID Controllers")
					, new Array(44, "FC HBAs")
			);
          	option_array[11] = new Array(new Array(0, "Select a category instead"));
	
        	option_array[12] = new Array(new Array(0, "Select subcategory..")
		
			);
        	option_array[13] = new Array(new Array(0, "Select subcategory..")
		
			);
        	option_array[14] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(107, "Gigabit Ethernet")
					, new Array(106, "Fast Ethernet")
					, new Array(105, "Ethernet")
			);
        	option_array[15] = new Array(new Array(0, "Select subcategory..")
		
			);
        	option_array[16] = new Array(new Array(0, "Select subcategory..")
		
			);
        	option_array[17] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(251, "Infiniband Adapters")
					, new Array(187, "Ethernet Adapters")
			);
        	option_array[18] = new Array(new Array(0, "Select subcategory..")
		
			);
        	option_array[19] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(87, "Industrial")
					, new Array(83, "Multiport")
					, new Array(82, "Single-Port")
			);
        	option_array[20] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(56, "Managed")
			);
          	option_array[21] = new Array(new Array(0, "Select a category instead"));
	
        	option_array[22] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(191, "Fully Configured")
					, new Array(190, "Bare Bones")
			);
        	option_array[23] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(101, "Hot Swap Disk Cages")
					, new Array(95, "Motherboards")
					, new Array(192, "Chassis")
			);
          	option_array[24] = new Array(new Array(0, "Select a category instead"));
	
        	option_array[25] = new Array(new Array(0, "Select subcategory..")
		
			);
          	option_array[26] = new Array(new Array(0, "Select a category instead"));
	
        	option_array[27] = new Array(new Array(0, "Select subcategory..")
		
			);
        	option_array[28] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(170, "Copper")
					, new Array(169, "Fiber")
			);
        	option_array[29] = new Array(new Array(0, "Select subcategory..")
		
			);
        	option_array[30] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(174, "Copper Fibre Channel")
					, new Array(129, "Fiber")
					, new Array(128, "Twisted Pair Network")
					, new Array(127, "SCSI")
			);
        	option_array[31] = new Array(new Array(0, "Select subcategory..")
		
			);
        	option_array[32] = new Array(new Array(0, "Select subcategory..")
		
					, new Array(69, "UPS")
			);
          
function switch_select()

{
  for (loop = window.document.forms[1].sub_category.options.length-1; loop > 0; loop--)
  {
    window.document.forms[1].sub_category.options[loop] = null;
  }
  
  for (loop = 0; loop < option_array[window.document.forms[1].main_category.selectedIndex].length; loop++)
  {
    option = option_array[window.document.forms[1].main_category.selectedIndex][loop]
    window.document.forms[1].sub_category.options[loop] = new Option(option[1], option[0]);
  }
  
  window.document.forms[1].sub_category.selectedIndex = 0;
}
  
function switch_text()

{
  window.document.forms[1].textarea_1.value = text_array[window.document.forms[1].main_category.selectedIndex][window.document.forms[1].sub_category.selectedIndex];
}

function set_orig()

{
  window.document.forms[1].main_category.selectedIndex = 0;
  window.document.forms[1].sub_category.selectedIndex = 0;
}




