// ************************************************* function testCal(DIYmenuForm) { bDiam = DIYmenuForm.DIYcal.value if (bDiam >= 0.221 && bDiam < 0.230) { checkArray = new Array(0.21335, 0.060, 1.5, "Hornady-Gator 22", 0,0,0,0,0,0,0,0) boreDiam = 0.219 stdW = 55 } if (bDiam >= 0.242 && bDiam < 0.250) { checkArray = new Array(0.2315, 0.040, 1.5, "Hornady-Gator 6", 0,0,0,0,0,0,0,0) boreDiam = 0.237 stdW = 65 } if (bDiam >= 0.260 && bDiam < 0.273) { checkArray = new Array(0.252, 0.060, 1.8, "Hornady-Gator 6.5", 0.253, 0.070, 3.7,"Hornady-Gator 270",0,0,0,0) boreDiam = 0.258 stdW = 120 } if (bDiam >= 0.273 && bDiam < 0.280) { checkArray = new Array(0.253, 0.070, 3.7, "Hornady-Gator 270", 0.251,0.070,3.9,"Hornady-Gator 7",0,0,0,0) boreDiam = 0.269 stdW = 120 } if (bDiam >= 0.280 && bDiam < 0.303) { checkArray = new Array(0.2505, 0.060, 3.9, "Hornady-Gator 7", 0,0,0,0,0,0,0,0) boreDiam = 0.278 stdW = 150 } if (bDiam >= 0.303 && bDiam < 0.307) { checkArray = new Array(0.2845, 0.070, 4.5, "Hornady 30", 0.2830, 0.070,4.5,"Gator30",0,0,0,0) boreDiam = 0.297 stdW = 165 } if (bDiam >= 0.307 && bDiam < 0.317) { checkArray = new Array(0.2845, 0.060, 4.5, "Hornady30", 0.2830, 0.060, 4.5,"Gator30", 0.3015, 0.060, 4.7, "Hornady-Gator 32") boreDiam = 0.300 stdW = 165 } if (bDiam >= 0.317 && bDiam < 0.330) { checkArray = new Array(0.3015, 0.070, 4.7, "Hornady-Gator 32", 0,0,0,0,0,0,0,0) boreDiam = 0.316 stdW = 170 } if (bDiam >= 0.330 && bDiam < 0.343) { checkArray = new Array(0.3275, 0.070, 3.0, "Hornady-Gator 338", 0,0,0,0,0,0,0,0) boreDiam = 0.330 stdW = 225 } if (bDiam >= 0.343 && bDiam < 0.352) { checkArray = new Array(0.320, 0.070, 5.1, "Hornady-Gator 348", 0,0,0,0,0,0,0,0) boreDiam = 0.342 stdW = 250 } if (bDiam >= 0.352 && bDiam < 0.362) { checkArray = new Array(0.3415, 0.060, 3.3, "Hornady 35", 0.3438, 0.070, 3.4, "Gator 35", 0.353, 0.070, 3.3,"Gator 9.3mm",0,0,0,0) boreDiam = 0.348 stdW = 180 } if (bDiam >= 0.362 && bDiam < 0.373) { checkArray = new Array(0.353, 0.070, 5.9, "Hornady-Gator 375", 0.353, 0.070, 3.3, "Gator 9.3mm",0,0,0,0) boreDiam = 0.361 stdW = 240 } if (bDiam >= 0.373 && bDiam < 0.384) { checkArray = new Array(0.353, 0.070, 5.9, "Hornady-Gator 375", 0,0,0,0,0,0,0,0) boreDiam = 0.369 stdW = 250 } if (bDiam >= 0.384 && bDiam < 0.405) { checkArray = new Array(0.380, 0.070, 7.1, "Gator 40",0,0,0,0,0,0,0,0) boreDiam = 0.388 stdW = 200 } if (bDiam >= 0.405 && bDiam < 0.421) { checkArray = new Array(0.380, 0.070, 7.1, "Gator 40", 0.3925,0.070,6.8,"Hornady-Gator 416" ,0,0,0,0) boreDiam = 0.399 stdW = 240 } if (bDiam >= 0.421 && bDiam < 0.426) { checkArray = new Array(0.400, 0.060, 7.5, "Hornady-Gator 44", 0,0,0,0,0,0,0,0) boreDiam = 0.411 stdW = 250 } if (bDiam >= 0.426 && bDiam < 0.436) { checkArray = new Array(0.400, 0.060, 7.5, "Hornady-Gator 44", 0,0,0,0,0,0,0,0) boreDiam = 0.418 stdW = 280 } if (bDiam >= 0.436 && bDiam < 0.449) { checkArray = new Array(0.425, 0.070, 8.35, "Hornady-Gator 45", 0,0,0,0,0,0,0,0) boreDiam = 0.432 stdW = 300 } if (bDiam >= 0.449 && bDiam < 0.462) { checkArray = new Array(0.425, 0.070, 8.3, "Hornady-Gator 45", 0.4265,0.080,9.8,"Gator 458 Rifle",0,0,0,0) boreDiam = 0.451 stdW = 325 } if (bDiam >= 0.462 && bDiam < 0.480) { checkArray = new Array(0.4445, 0.070, 9.1, "Hornady 475", 0.445,0.080, 9.8,"Gator 475",0,0,0,0) boreDiam = 0.464 stdW = 350 } if (bDiam >= 0.480 && bDiam < 0.495) { checkArray = new Array(0.460, 0.080, 14, "Gator 500 S_W", 0.460,0.100, 15,"Hornady 50",0,0,0,0) boreDiam = 0.471 stdW = 350 } if (bDiam >= 0.495 && bDiam < 0.508) { checkArray = new Array(0.460, 0.080, 14, "Gator 500 S_W", 0.460,0.100, 15,"Hornady 50",0.469,0.100,14.5, "Gator short 50") boreDiam = 0.488 stdW = 440 } if (bDiam >= 0.508 && bDiam < 0.520) { checkArray = new Array(0.468, 0.130, 17, "Gator 50 Rifle", 0.469,0.100, 14.5,"Gator short 50",0,0,0,0) boreDiam = 0.500 stdW = 450 } if (bDiam >= 0.520) { checkArray = new Array(0,0,0,0,0,0,0,0,0,0,0,0) if (bDiam < 0.54) { boreDiam = 0.508 stdW = 500 } if (bDiam >= 0.540 && bDiam < 0.560) { boreDiam = 0.540 stdW = 500 } if (bDiam >= 0.560 && bDiam < 0.580) { boreDiam = 0.550 stdW = 500 } if (bDiam >= 0.580 && bDiam < 0.600) { checkArray = new Array(0.553, 0.13, 4.3, "Aluminum Homemade",0,0,0,0,0,0,0,0) boreDiam = 0.570 stdW = 600 } if (bDiam >= 0.600 && bDiam < 0.618) { boreDiam = 0.599 stdW = 450 } if (bDiam >= 0.618 && bDiam < 0.625) { boreDiam = 0.610 stdW = 900 } if (bDiam >= 0.625 && bDiam < 0.640) { boreDiam = 0.620 stdW = 900 } if (bDiam >= 0.640 && bDiam < 0.670) { boreDiam = 0.660 stdW = 900 } if (bDiam >= 0.670 && bDiam < 0.710) { boreDiam = 0.690 stdW = 900 } if (bDiam >= 0.710 && bDiam < 0.745) { boreDiam = 0.717 stdW = 900 } } gDiam = 0.91 * bDiam boreDiam = bDiam - 0.008 if (bDiam > 0.700) { gDiam = bDiam - 0.100 } if (bDiam < 0.520) { chDiam = checkArray[0] - 0.005 * bDiam if (chDiam < gDiam) { gDiam = chDiam } } parent.mainpage.location.href= "DIYphp.php" parent.drawIt.location.href='drawIt.htm' DIYmenuForm.DIYcal.selectedIndex = 0 }