var product_categoryA = new Array("100"); var product_typeA = new Array("100"); var bus_typeA = new Array("30"); var bus_compatibilityA = new Array("30"); product_categoryA[0] = new Array(2); product_categoryA[0][0] = '1'; product_categoryA[0][1] = 'SATA RAID HBA'; product_categoryA[1] = new Array(2); product_categoryA[1][0] = '2'; product_categoryA[1][1] = 'Accessories'; product_categoryA[2] = new Array(2); product_categoryA[2][0] = '7'; product_categoryA[2][1] = 'SAS RAID'; product_typeA[0] = new Array(4); product_typeA[0][0] = '1'; product_typeA[0][1] = 'External RAID Series'; product_typeA[0][2] = '1'; product_typeA[0][3] = '2'; product_typeA[1] = new Array(4); product_typeA[1][0] = '3'; product_typeA[1][1] = 'Hybrid RAID Series'; product_typeA[1][2] = '1'; product_typeA[1][3] = '2'; product_typeA[2] = new Array(4); product_typeA[2][0] = '2'; product_typeA[2][1] = 'Internal RAID Series'; product_typeA[2][2] = '1'; product_typeA[2][3] = '2'; product_typeA[3] = new Array(4); product_typeA[3][0] = '4'; product_typeA[3][1] = 'Cables'; product_typeA[3][2] = '2'; product_typeA[3][3] = '1'; product_typeA[4] = new Array(4); product_typeA[4][0] = '8'; product_typeA[4][1] = 'External Series'; product_typeA[4][2] = '7'; product_typeA[4][3] = '2'; product_typeA[5] = new Array(4); product_typeA[5][0] = '7'; product_typeA[5][1] = 'Internal Series'; product_typeA[5][2] = '7'; product_typeA[5][3] = '2'; bus_typeA[0] = new Array(2); bus_typeA[0][0] = '0'; bus_typeA[0][1] = 'Select Bus Type'; bus_typeA[1] = new Array(2); bus_typeA[1][0] = '1'; bus_typeA[1][1] = 'PCI'; bus_typeA[2] = new Array(2); bus_typeA[2][0] = '2'; bus_typeA[2][1] = 'PCI-X'; bus_typeA[3] = new Array(2); bus_typeA[3][0] = '3'; bus_typeA[3][1] = 'PCI-Express'; bus_compatibilityA[0] = new Array(2); bus_compatibilityA[0][0] = '0'; bus_compatibilityA[0][1] = 'Select Macintosh System'; bus_compatibilityA[1] = new Array(2); bus_compatibilityA[1][0] = '7'; bus_compatibilityA[1][1] = 'All'; bus_compatibilityA[2] = new Array(2); bus_compatibilityA[2][0] = '4'; bus_compatibilityA[2][1] = 'Mac pro(PCI-e) Intel'; bus_compatibilityA[3] = new Array(2); bus_compatibilityA[3][0] = '6'; bus_compatibilityA[3][1] = 'Xserve (PCI-e) Intel'; bus_compatibilityA[4] = new Array(2); bus_compatibilityA[4][0] = '3'; bus_compatibilityA[4][1] = 'Power Mac G5(PCI-e) ppc'; bus_compatibilityA[5] = new Array(2); bus_compatibilityA[5][0] = '2'; bus_compatibilityA[5][1] = 'Power Mac G5(PCI-x) ppc'; bus_compatibilityA[6] = new Array(2); bus_compatibilityA[6][0] = '5'; bus_compatibilityA[6][1] = 'Xserve (PCI-x) ppc'; bus_compatibilityA[7] = new Array(2); bus_compatibilityA[7][0] = '1'; bus_compatibilityA[7][1] = 'G4'; var product_category = document.form_category.select1; var product_type = document.form_category.select2; var bus_type = document.form_category.select3; var compatibility = document.form_compatibility.select1; //var port_type = document.form_product_name.search1; var port_count = document.form_product_name.search2; //var product_category = document.getElementById("product_category"); //var product_type = document.getElementById("product_type"); //var bus_type = document.getElementById("bus_type"); //var compatibility = document.getElementById("compatibility"); /*function onport_type() { port_count.options.length = 0; var opt = document.createElement("option"); opt.text='Number of Hard Drives'; opt.value=''; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); if(port_type.value == 'Internal') { var opt = document.createElement("option"); opt.text='up to 2 Hard Drives'; opt.value='up to 2 Hard Drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); var opt = document.createElement("option"); opt.text='up to 4 Hard Drives'; opt.value='up to 4 Hard Drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); var opt = document.createElement("option"); opt.text='up to 8 Hard Drives'; opt.value='up to 8 Hard Drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); var opt = document.createElement("option"); opt.text='up to 16 Hard Drives'; opt.value='up to 16 Hard Drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); } if(port_type.value == 'External Port Multiplier') { var opt = document.createElement("option"); opt.text='5-10 Hard Drives'; opt.value='5-10 Hard Drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); var opt = document.createElement("option"); opt.text='10-20 Hard Drives'; opt.value='10-20 Hard Drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); var opt = document.createElement("option"); opt.text='25-32 Hard Drives'; opt.value='25-32 Hard Drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); } if(port_type.value == 'External Point to Point') { var opt = document.createElement("option"); opt.text='1-2 Hard Drives'; opt.value='1-2 Hard Drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); var opt = document.createElement("option"); opt.text='2-4 Hard Drives'; opt.value='2-4 Hard Drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); var opt = document.createElement("option"); opt.text='4-8 Hard Drives'; opt.value='4-8 Hard Drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); } if(port_type.value == 'External Multilane') { var opt = document.createElement("option"); opt.text='1-4 Hard Drives'; opt.value='1-4 Hard Drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); var opt = document.createElement("option"); opt.text='4-8 Hard Drives'; opt.value='4-8 Hard Drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); } if(port_type.value == 'Hybrid') { var opt = document.createElement("option"); opt.text='Up to 2 Int. + 2 Ext. drives'; opt.value='Up to 2 Int. + 2 Ext. drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); var opt = document.createElement("option"); opt.text='Up to 4 Int. + 4 Ext. drives'; opt.value='Up to 4 Int. + 4 Ext. drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); var opt = document.createElement("option"); opt.text='Up to 10 Int. + 10 Ext. drives'; opt.value='Up to 10 Int. + 10 Ext. drives'; if(navigator.userAgent.indexOf("Safari")!=-1) port_count.add(opt); else port_count.options.add(opt); } }; */ function oncompatibility() { window.location = 'categories.php?compatibility='+compatibility.value; }; function onbus_type() { window.location = 'categories.php?category='+product_category.value+'&type='+product_type.value+'&bus_type='+bus_type.value; }; function onproduct_type() { if(product_type.value > 0) { for(var i=0; i 0) { product_type.style.visibility=""; product_type.options.length = 0; var opt = document.createElement("option"); opt.text='Select Type'; opt.value=0; if(navigator.userAgent.indexOf("Safari")!=-1) product_type.add(opt); else product_type.options.add(opt); if(product_category.value == 3) { var opt = document.createElement("option"); opt.text='All'; opt.value=-1; if(navigator.userAgent.indexOf("Safari")!=-1) product_type.add(opt); else product_type.options.add(opt); } for(var i=0; i