var carrierArray = new Array(); // item format: [Carrier ID, Carrier Name] var productsArray = new Array(); // item format: [Product ID, Product Name, Carrier ID] carrierArray = [[2, "AIG American General"],[5, "Allianz of North America"],[7, "American Equity"],[144, "Athene - Liberty Life Insurance Company"],[18, "Banner Life"],[29, "Fidelity & Guaranty Life"],[30, "Fidelity & Guaranty Life of NY"],[99, "ForeThought"],[142, "Genworth Life and Annuity Insurance Company"],[33, "Great American Life"],[42, "ING-USA"],[51, "John Hancock"],[111, "Life Insurance Company of the Southwest"],[49, "Lincoln Financial Network"],[65, "Met Life"],[68, "NACOLAH"],[119, "NACOLAH Life"],[69, "National Western Life"],[79, "OneAmerica State Life"],[74, "Presidential Life"],[139, "Protective Life"],[143, "Security Benefit "],[136, "Sentinel Security Life"],[82, "Transamerica"],[85, "United of Omaha"],[89, "West Coast Life"]]; productsArray = [[705, "7 MYG",144],[92, "Accumulator Five",69],[386, "Advantage Gold (Index 6-07) (5% Bonus)",7],[347, "American Valor II - 5% Bonus",33],[577, "Annuity Care",79],[578, "Annuity Care II",79],[584, "Benefit Gold (ICC10 Index-110)",7],[465, "Bonus 5 (FPDA) Index 3-07-WA only",7],[685, "Bonus Advantage",99],[355, "Bonus Gold (Index 1-07) (10% Bonus)",7],[110, "Bonus Gold (Index-1-05) DE Only - 10% Bonus",7],[323, "Charter Series (5%/10% Bonus)",68],[427, "Destination Income 15",99],[626, "Endurance Elite",5],[625, "Endurance Plus",5],[403, "Envoy 9",42],[308, "FG Guarantee-Platinum 3",29],[83, "FG Guarantee-Platinum 5",29],[553, "FG Guarantee-Platinum 7",29],[309, "FG Guarantee-Plus 3",29],[146, "FG Guarantee-Plus 5 ",29],[554, "FG Guarantee-Plus 7",29],[145, "FG Immediate-Income",29],[422, "FG Index-Accelerator 10",29],[418, "FG Index-Accelerator 7",29],[688, "FG Index-Accumulator Plus 10",29],[689, "FG Index-Accumulator Plus 14",29],[395, "FG Index-Choice 9",29],[312, "FG NYIndex-Choice-10 (2% Bonus)",30],[311, "FG NYIndex-Safety 7",30],[676, "FG Prosperity Elite 10",29],[659, "FG Prosperity Elite 14",29],[675, "FG Prosperity Elite 7",29],[180, "FPDA-10 (2% Bonus)",7],[437, "Global 8",2],[424, "Global Bonus",2],[557, "Global Lookback",69],[443, "Guarantee 5 (SPDA-MYGA)",7],[540, "Guarantee 7 (SPDA-MYGA)",7],[341, "Guarantee Choice",42],[448, "Guaranteed Destinations (WA Only)",99],[687, "Heritage Gold",7],[124, "HorizonIndex (4% Bonus)",2],[23, "HorizonMYG (4% Bonus)",2],[25, "HorizonPlus (6% Bonus)",2],[310, "HorizonSelect",2],[29, "Immediate Annuity",7],[648, "Impact 10",69],[647, "Impact 7",69],[686, "Impact 7s",69],[454, "Income 125",99],[178, "Income Access",85],[570, "Index Bonus 115",99],[354, "Integrity Gold (Index 5-07)",7],[579, "Legacy Care",79],[590, "Legacy Single Premium Whole Life",119],[707, "Lighthouse Select",143],[120, "MasterDex 5 Plus (5% Bonus)",5],[667, "MasterDex Plus",5],[149, "MasterDex X (6% Bonus)",5],[31, "N.A. Income (SPIA)",68],[621, "NA Performance Choice 12 Plus",68],[622, "NA Performance Choice 8 Plus",68],[404, "NA Ten",68],[53, "New Directions 6",49],[52, "New Directions 8",49],[9, "No-Load Flex",74],[294, "OptiChoice 5",49],[296, "OptiChoice 7",49],[295, "OptiChoice 9",49],[50, "OptiPoint 10 (5% Bonus)",49],[51, "OptiPoint 8 (4% Bonus)",49],[674, "Personal Choice Annuity",136],[41, "Platinum Income",2],[324, "Precision Series (5%/10% Bonus)",68],[462, "Premier Eagle 10 (10% Bonus)",7],[463, "Premier Eagle 12 (8% Bonus)",7],[91, "Prevail Seven",69],[627, "Pro VI",5],[93, "Protector One",69],[474, "RetireFive",111],[475, "RetireFour",111],[455, "Retirement Gold",7],[531, "RetireOne",111],[532, "RetireTwo",111],[583, "Safe Return",33],[2, "Secure 4",74],[38, "Secure 5",74],[3, "Secure 6",74],[539, "Secure Income 125",99],[293, "Secure Index Five",42],[291, "Secure Index Opportunities Plus",42],[369, "Secure Index Outlook",42],[292, "Secure Index Seven",42],[703, "SecureLiving Index 10 Plus",142],[704, "SecureLiving Index 7",142],[472, "SecurePlus Accumulator 5",111],[468, "SecurePlus Gold",111],[670, "SecurePlus Marquee 10",111],[669, "SecurePlus Marquee 3",111],[464, "SecurePlus Platinum",111],[530, "SecurePlus Silver",111],[30, "Single Premium Immediate Annuity",49],[628, "Single Premium Immediate Elite",5],[137, "SPIA",42],[349, "SPIA",33],[5, "SPIA",74],[188, "Ultra Classic",69],[186, "Ultra Future",69],[177, "Ultra Income",85],[606, "Ultra Value",69],[385, "VisionMaximizer (5% Bonus)",2]]; function initCalculator(x) { var carrierForm = document.calculatorForm.carrier; var newOption; // add the carriers if (x==1) { newOption = document.createElement("OPTION"); carrierForm.options.add(newOption); newOption.innerText = "American Equity"; newOption.value = 7; newOption = document.createElement("OPTION"); carrierForm.options.add(newOption); newOption.innerText = "ForeThought"; newOption.value = 99; // enabled 8/24/11 ... disabled 1/4/12 //newOption = document.createElement("OPTION"); //carrierForm.options.add(newOption); //newOption.innerText = "ForeThought Bonus Advantage"; //newOption.value = 132; newOption = document.createElement("OPTION"); carrierForm.options.add(newOption); newOption.innerText = "Great American"; newOption.value = 33; newOption = document.createElement("OPTION"); carrierForm.options.add(newOption); newOption.innerText = "Sentinel Secutity Life"; newOption.value = 136; } else { for (var i = 0; i < carrierArray.length; i++) { newOption = document.createElement("OPTION"); carrierForm.options.add(newOption); newOption.innerText = carrierArray[i][1]; // carrier name newOption.value = carrierArray[i][0]; // carrier id } } } function updateProducts() { var productForm = document.calculatorForm.product; var carrierForm = document.calculatorForm.carrier; // first clear all current products while (productForm.length > 1) productForm.remove(1); // add the current list of products based on the selected carrier id. if the carrier id // is -1 then return. var carrierID = parseInt(carrierForm[carrierForm.selectedIndex].value, 10); if (carrierID < 0) return; var newOption; // traverse the productsArray and add all products with a carrier id that matches for (var i = 0; i < productsArray.length; i++) { if (productsArray[i][2] == carrierID) { newOption = document.createElement("OPTION"); productForm.options.add(newOption); newOption.innerText = productsArray[i][1]; // product name newOption.value = productsArray[i][0]; // product id } } productForm.disabled = false; } function selectProduct() { document.calculatorForm.sales.disabled = false; document.calculatorForm.bhcNeeded.disabled = false; }