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] = '2'; product_categoryA[0][1] = 'Accessories'; product_categoryA[1] = new Array(2); product_categoryA[1][0] = '19'; product_categoryA[1][1] = 'USB 3.0'; product_categoryA[2] = new Array(2); product_categoryA[2][0] = '21'; product_categoryA[2][1] = 'SAS 3Gb/s'; product_categoryA[3] = new Array(2); product_categoryA[3][0] = '22'; product_categoryA[3][1] = 'SAS 6Gb/s'; product_categoryA[4] = new Array(2); product_categoryA[4][0] = '23'; product_categoryA[4][1] = 'eSATA 6Gb/s'; product_categoryA[5] = new Array(2); product_categoryA[5][0] = '24'; product_categoryA[5][1] = 'SATA 3Gb/s'; product_categoryA[6] = new Array(2); product_categoryA[6][0] = '28'; product_categoryA[6][1] = 'Rocket EJ'; product_categoryA[7] = new Array(2); product_categoryA[7][0] = '31'; product_categoryA[7][1] = 'eSATA 3Gb/s'; product_typeA[0] = new Array(4); product_typeA[0][0] = '4'; product_typeA[0][1] = 'Cables'; product_typeA[0][2] = '2'; product_typeA[0][3] = '1'; product_typeA[1] = new Array(4); product_typeA[1][0] = '17'; product_typeA[1][1] = 'External Series'; product_typeA[1][2] = '19'; product_typeA[1][3] = '2'; product_typeA[2] = new Array(4); product_typeA[2][0] = '8'; product_typeA[2][1] = 'External Series'; product_typeA[2][2] = '21'; product_typeA[2][3] = '2'; product_typeA[3] = new Array(4); product_typeA[3][0] = '7'; product_typeA[3][1] = 'Internal Series'; product_typeA[3][2] = '21'; product_typeA[3][3] = '2'; product_typeA[4] = new Array(4); product_typeA[4][0] = '13'; product_typeA[4][1] = 'External Series'; product_typeA[4][2] = '22'; product_typeA[4][3] = '2'; product_typeA[5] = new Array(4); product_typeA[5][0] = '12'; product_typeA[5][1] = 'Internal Series'; product_typeA[5][2] = '22'; product_typeA[5][3] = '2'; product_typeA[6] = new Array(4); product_typeA[6][0] = '1'; product_typeA[6][1] = 'External Series'; product_typeA[6][2] = '23'; product_typeA[6][3] = '2'; product_typeA[7] = new Array(4); product_typeA[7][0] = '2'; product_typeA[7][1] = 'Internal Series'; product_typeA[7][2] = '23'; product_typeA[7][3] = '2'; product_typeA[8] = new Array(4); product_typeA[8][0] = '15'; product_typeA[8][1] = 'External Series'; product_typeA[8][2] = '24'; product_typeA[8][3] = '2'; product_typeA[9] = new Array(4); product_typeA[9][0] = '14'; product_typeA[9][1] = 'Internal Series'; product_typeA[9][2] = '24'; product_typeA[9][3] = '2'; product_typeA[10] = new Array(4); product_typeA[10][0] = '11'; product_typeA[10][1] = 'External JBOD'; product_typeA[10][2] = '28'; product_typeA[10][3] = '1'; product_typeA[11] = new Array(4); product_typeA[11][0] = '19'; product_typeA[11][1] = 'SAS Expander'; product_typeA[11][2] = '28'; product_typeA[11][3] = '1'; 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] = '0'; bus_compatibilityA[1][1] = 'All'; bus_compatibilityA[2] = new Array(2); bus_compatibilityA[2][0] = '18'; bus_compatibilityA[2][1] = 'Mac OS X Lion'; bus_compatibilityA[3] = new Array(2); bus_compatibilityA[3][0] = '11'; bus_compatibilityA[3][1] = 'Mac Pro 2010 (Westmere)'; bus_compatibilityA[4] = new Array(2); bus_compatibilityA[4][0] = '10'; bus_compatibilityA[4][1] = 'Snow Leopard'; bus_compatibilityA[5] = new Array(2); bus_compatibilityA[5][0] = '9'; bus_compatibilityA[5][1] = 'Mac Pro 2009 (Nehalem)'; bus_compatibilityA[6] = new Array(2); bus_compatibilityA[6][0] = '8'; bus_compatibilityA[6][1] = 'Mac Pro 2006~2008 (Intel)'; bus_compatibilityA[7] = new Array(2); bus_compatibilityA[7][0] = '4'; bus_compatibilityA[7][1] = 'Xserve (PCI-e) Nehalem'; bus_compatibilityA[8] = new Array(2); bus_compatibilityA[8][0] = '6'; bus_compatibilityA[8][1] = 'Xserve (PCI-e) Intel'; bus_compatibilityA[9] = new Array(2); bus_compatibilityA[9][0] = '5'; bus_compatibilityA[9][1] = 'Xserve (PCI-x) ppc'; bus_compatibilityA[10] = new Array(2); bus_compatibilityA[10][0] = '3'; bus_compatibilityA[10][1] = 'Power Mac G5(PCI-e) ppc'; bus_compatibilityA[11] = new Array(2); bus_compatibilityA[11][0] = '2'; bus_compatibilityA[11][1] = 'Power Mac G5(PCI-x) ppc'; bus_compatibilityA[12] = new Array(2); bus_compatibilityA[12][0] = '1'; bus_compatibilityA[12][1] = 'Power Mac 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