var maxLength = 19;var termLength = 13;rotors_option= new Array;var rotors_length = rotors_option.length;centrifuge_option= new Array;centrifuge_option[0] = "5810/5810R";centrifuge_option[1] = "5804/5804R";centrifuge_option[2] = "5702/5702R/5702RH";centrifuge_option[3] = "5424";centrifuge_option[4] = "5418";centrifuge_option[5] = "5417C/5417R";centrifuge_option[6] = "5415D/5415R";centrifuge_option[7] = "5415C/5402*";centrifuge_option[8] = "5410";centrifuge_option[9] = "Minispin";centrifuge_option[10] = "Minispin Plus";centrifuge_option[11] = "5417*";centrifuge_option[12] = "5416/5403*";centrifuge_option[13] = "5415";centrifuge_option[14] = "5414";centrifuge_option[15] = "5413";centrifuge_option[16] = "5412";centrifuge_option[17] = "5411";centrifuge_option[18] = "3200";function get_options(){rotors_option.length = 0;centrifuge_selected = document.calculator.cent.selectedIndex;if (centrifuge_selected == null) return;if (centrifuge_selected == 0){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5810/5810R ------------------------------------------------------");rotors_option[1] = new Option(" - 30-place fixed-angle rotor for 1.5-2.0 ml Tubes");rotors_option[2] = new Option(" - 30-place Aerosol-tight fixed-angle rotor for 1.5-2.0 ml tubes");rotors_option[3] = new Option(" - 6x85 ml High-speed fixed-angle rotor");rotors_option[4] = new Option(" - Horizontal Drum rotor");rotors_option[5] = new Option(" - Microplate rotor with two buckets");rotors_option[6] = new Option(" - Deepwell swing-bucket rotor with two buckets");rotors_option[7] = new Option(" - Swing-bucket rotor with four 100 ml buckets");rotors_option[8] = new Option(" - High-capacity swing-bucket rotor with four 250 ml buckets");rotors_option[9] = new Option(" - High-capacity microplate rotor with four buckets");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 9.5;my_radius[2] = 9.5;my_radius[3] = 11.5;my_radius[4] = 7.5;my_radius[5] = 12.6;my_radius[6] = 14.7;my_radius[7] = 16.1;my_radius[8] = 18.0;my_radius[9] = 15.4;termLength = 10;}if (centrifuge_selected == 1){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5804/5804R ------------------------------------------------------");rotors_option[1] = new Option(" - 30-place fixed-angle rotor for 1.5-2.0 ml Tubes");rotors_option[2] = new Option(" - 30-place Aerosol-tight fixed-angle rotor for 1.5-2.0 ml tubes");rotors_option[3] = new Option(" - 6x85 ml High-speed fixed-angle rotor");rotors_option[4] = new Option(" - Horizontal Drum rotor");rotors_option[5] = new Option(" - Microplate rotor with two buckets");rotors_option[6] = new Option(" - Deepwell swing-bucket rotor with two buckets");rotors_option[7] = new Option(" - Swing-bucket rotor with four 100 ml buckets");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 9.5;my_radius[2] = 9.5;my_radius[3] = 11.5;my_radius[4] = 7.5;my_radius[5] = 12.6;my_radius[6] = 14.7;my_radius[7] = 16.1;termLength = 8;}if (centrifuge_selected == 2){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5702/5702R/5702RH ----------------------------------------------");rotors_option[1] = new Option(" - 4 x 85 ml Swing-bucket rotor w/round buckets");rotors_option[2] = new Option(" - 4 x 85 ml Swing-bucket rotor w/square buckets");rotors_option[3] = new Option(" - 8 x 15 ml Swing-bucket rotor");rotors_option[4] = new Option(" - 30-place 15 ml Fixed-angle rotor");rotors_option[5] = new Option(" - 24-place Micro rotor");rotors_option[6] = new Option(" - 18-place Cryovial rotor");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 13.7;my_radius[2] = 12.7;my_radius[3] = 12.8;my_radius[4] = 12.7;my_radius[5] = 8.2;my_radius[6] = 9.1;termLength = 7;}if (centrifuge_selected == 3){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5424 -----------------------------------------------------------");rotors_option[1] = new Option(" - 24-place Aerosol-tight fixed-angle rotor for 1.5-2.0 ml tubes");rotors_option[2] = new Option(" - 18-place Miniprep spin column rotor");rotors_option[3] = new Option(" - 4 x 8-tube Strip PCR rotor");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 8.4;my_radius[2] = 7.2;my_radius[3] = 7.4;termLength = 4;}if (centrifuge_selected == 4){rotors_option= new Array;rotors_option[0] = new Option("Rotor for 5418 ------------------------------------------------------------");rotors_option[1] = new Option(" - 18-place Aerosol-tight fixed-angle rotor for 1.5-2.0 ml tubes");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 7.7;termLength = 2;}if (centrifuge_selected == 5){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5417C/5417R* ----------------------------------------------------");rotors_option[1] = new Option(" - 30-place fixed-angle rotor for 1.5-2.0 ml tubes");rotors_option[2] = new Option(" - 30-place Aerosol-tight fixed-angle rotor for 1.5-2.0 ml tubes");rotors_option[3] = new Option(" - High-speed Aerosol-tight 24-place rotor for 1.5-2.0 ml tubes");rotors_option[4] = new Option(" - 8-place Swing-bucket rotor for 1.5-2.0 ml tubes");rotors_option[5] = new Option(" - PCR-strip rotor");rotors_option[6] = new Option(" - 24-place Aerosol-tight fixed-angle rotor for 1.5-2.0 ml tubes");rotors_option[7] = new Option(" - 12-place Swing-bucket rotor for 1.5-2.0 ml tubes");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 9.5;my_radius[2] = 9.5;my_radius[3] = 8.3;my_radius[4] = 9.5;my_radius[5] = 9.5;my_radius[6] = 9.5;my_radius[7] = 10.5;termLength = 8;}if (centrifuge_selected == 6){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5415D/5415R -----------------------------------------------------");rotors_option[1] = new Option(" - 24-place Fixed-angle rotor for 1.5-2.0 ml tubes");rotors_option[2] = new Option(" - 36-place Fixed-angle rotor for 0.5 ml tubes");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 8.3;my_radius[2] = 8.3;termLength = 3;}if (centrifuge_selected == 7){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5415C/5402* -----------------------------------------------------");rotors_option[1] = new Option(" - 18-place Fixed-angle rotor for 1.5-2.0 ml tubes");rotors_option[2] = new Option(" - 24-place Fixed-angle rotor for 0.5 ml tubes");rotors_option[3] = new Option(" - 30-place Fixed-angle rotor for 0.25-0.4 ml tubes");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 7.3;my_radius[2] = 7.3;my_radius[3] = 7.3;termLength = 4;}if (centrifuge_selected == 8){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5410 ------------------------------------------------------------");rotors_option[1] = new Option(" - 12-place Fixed-angle rotor for 1.5-2.0 ml tubes");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 5.8;termLength = 2;}if (centrifuge_selected == 9){rotors_option= new Array;rotors_option[0] = new Option("Rotors for Minispin --------------------------------------------------------");rotors_option[1] = new Option(" - 12-place Fixed-angle rotor for 1.5-2.0 ml tubes");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 6.0;termLength = 2;}if (centrifuge_selected == 10){rotors_option= new Array;rotors_option[0] = new Option("Rotors for Minispin Plus ---------------------------------------------------");rotors_option[1] = new Option(" - 12-place Fixed-angle rotor for 1.5-2.0 ml tubes");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 6.0;termLength = 2;}if (centrifuge_selected == 11){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5417* -----------------------------------------------------------");rotors_option[1] = new Option(" - 24-place Fixed-angle rotor for 1.5-2.0 ml tubes");rotors_option[2] = new Option(" - 24-place Aerosol-tight fixed-angle rotor for 1.5-2.0 ml tubes");rotors_option[3] = new Option(" - 12-place Swing bucket rotor for 1.5-2.0 ml tubes");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 9.5;my_radius[2] = 9.5;my_radius[3] = 10.5;termLength = 4;}if (centrifuge_selected == 12){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5416/5403* ------------------------------------------------------");rotors_option[1] = new Option(" - 4x100mL Swing bucket rotor");rotors_option[2] = new Option(" - 24-place Fixed-angle rotor for 1.5-2.0 ml tubes");rotors_option[3] = new Option(" - 12x10mL Fixed-angle rotor");rotors_option[4] = new Option(" - 12x15mL Fixed-angle rotor");rotors_option[5] = new Option(" - 6x50mL Fixed angle rotor");rotors_option[6] = new Option(" - 6x85mL Fixed-angle rotor");rotors_option[7] = new Option(" - Microplate rotor with two buckets");rotors_option[8] = new Option(" - Horizontal Drum rotor");rotors_option[9] = new Option(" - Swing-bucket rotor for 15 ml conical tubes");rotors_option[10] = new Option(" - 45 Swing bucket rotor for 15 and 50 ml conical tubes");rotors_option[11] = new Option(" - Hematocrit rotor for capillary tubes");rotors_option[12] = new Option(" - Swing bucket cytology rotor");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 14.8;my_radius[2] = 9.2;my_radius[3] = 8.5;my_radius[4] = 10.0;my_radius[5] = 9.5;my_radius[6] = 10.2;my_radius[7] = 11.0;my_radius[8] = 7.5;my_radius[9] = 13.0;my_radius[10] = 14.7;my_radius[11] = 8.3;my_radius[12] = 10.9;termLength = 13;}if (centrifuge_selected == 13){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5415 ------------------------------------------------------------");rotors_option[1] = new Option(" - 18-place Fixed-angle rotor for 1.5-2.0 ml tubes");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 7.3;termLength = 2;}if (centrifuge_selected == 14){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5414 ------------------------------------------------------------");rotors_option[1] = new Option(" - 12-place Fixed-angle rotor for 1.5-2.0 ml tubes");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 6.2;termLength = 2;}if (centrifuge_selected == 15){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5413 ------------------------------------------------------------");rotors_option[1] = new Option(" - 40-place Horizontal rotor for 1.5-2.0 ml tubes");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 6.0;termLength = 2;}if (centrifuge_selected == 16){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5412 ------------------------------------------------------------");rotors_option[1] = new Option(" - 12-place Fixed-angle rotor for 1.5-2.0 ml tubes");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 6.2;termLength = 2;}if (centrifuge_selected == 17){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 5411 ------------------------------------------------------------");rotors_option[1] = new Option(" - 48-place Horizontal Drum rotor");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 6.0;termLength = 2;}if (centrifuge_selected == 18){rotors_option= new Array;rotors_option[0] = new Option("Rotors for 3200 ------------------------------------------------------------");rotors_option[1] = new Option(" - 12-place Fixed-angle rotor for 1.5-2.0 ml tubes");my_radius = new Array;my_radius[0] = 0;my_radius[1] = 4.8;termLength = 2;}tot = rotors_option.length;for (i = rotors_length; i > 0; i--){ document.calculator.rotors.options[i] = null; }for (i = 0; i < tot; i++){ document.calculator.rotors.options[i] = rotors_option[i]; }document.calculator.rotors.options[0].selected = true;rotors_length = rotors_option.length;}