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"],[7, "American Equity"],[99, "ForeThought"],[33, "Great American Life"],[42, "ING-USA"],[111, "Life Insurance Company of the Southwest"],[49, "Lincoln Financial Network"],[68, "NACOLAH"],[69, "National Western Life"],[29, "Old Mutual Financial Network"],[30, "OMFN of NY"],[79, "OneAmerica State Life"],[74, "Presidential Life"],[80, "Sun Life Financial"],[85, "United of Omaha"]]; productsArray = [[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],[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],[155, "Classic 5 (1%,2% Bonus)",49],[156, "Classic 7 (2%,3% Bonus)",49],[389, "Destination 6",99],[388, "Destination Income",99],[427, "Destination Income 15",99],[402, "Envoy 6",42],[403, "Envoy 9",42],[11, "FPDA-1 (2% Bonus) OR only",7],[180, "FPDA-10 (2% Bonus)",7],[190, "FPDA-11 (6% Bonus)",7],[330, "FPDA-12",7],[436, "Global 6",2],[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],[410, "Guaranteed Destinations",99],[448, "Guaranteed Destinations (WA Only)",99],[538, "HorizonChoice",2],[124, "HorizonIndex (4% Bonus)",2],[23, "HorizonMYG (4% Bonus)",2],[25, "HorizonPlus (6% Bonus)",2],[310, "HorizonSelect",2],[29, "Immediate Annuity",7],[454, "Income 125",99],[178, "Income Access",85],[356, "Income Gold (Index 3-07) 5% Bonus",7],[570, "Index Bonus 115",99],[354, "Integrity Gold (Index 5-07)",7],[100, "Keyport Value",80],[579, "Legacy Care",79],[31, "N.A. Income (SPIA)",68],[404, "NA Ten",68],[53, "New Directions 6",49],[52, "New Directions 8",49],[9, "No-Load Flex",74],[308, "OMGuarantee-Platinum 3",29],[83, "OMGuarantee-Platinum 5",29],[553, "OMGuarantee-Platinum 7",29],[309, "OMGuarantee-Plus 3",29],[146, "OMGuarantee-Plus 5 ",29],[554, "OMGuarantee-Plus 7",29],[145, "OMImmediate-Income",29],[422, "OMIndex-Accelerator 10",29],[418, "OMIndex-Accelerator 7",29],[203, "OMIndex-Escalator 10",29],[193, "OMIndex-Escalator 6",29],[201, "OMIndex-Escalator 8",29],[336, "OMIndex-Safety 10",29],[335, "OMIndex-Safety 7",29],[395, "OMIndex-Spectrum 9",29],[311, "OMNYIndex-Safety 7",30],[312, "OMNYIndex-Spectrum-10 (2% Bonus)",30],[294, "OptiChoice 5",49],[296, "OptiChoice 7",49],[295, "OptiChoice 9",49],[50, "OptiPoint 10 (3% Bonus)",49],[49, "OptiPoint 12 (4% Bonus)",49],[51, "OptiPoint 8 (2% Bonus)",49],[41, "Platinum Income",2],[324, "Precision Series (5%/10% Bonus)",68],[462, "Premier Eagle 10 (10% Bonus)",7],[463, "Premier Eagle 12 (10% Bonus)",7],[93, "Protector One",69],[474, "RetireFive",111],[475, "RetireFour",111],[455, "Retirement Gold",7],[531, "RetireOne",111],[532, "RetireTwo",111],[2, "Secure 4",74],[38, "Secure 5",74],[3, "Secure 6",74],[571, "Secure Bonus 115",99],[588, "Secure Bonus 115 Plus",99],[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],[472, "SecurePlus Accumulator 5",111],[468, "SecurePlus Gold",111],[464, "SecurePlus Platinum",111],[546, "SecurePlus Premier 10",111],[458, "SecurePlus Premier 3",111],[459, "SecurePlus Premier 8",111],[457, "SecurePlus Saver",111],[456, "SecurePlus SaverSelect",111],[530, "SecurePlus Silver",111],[30, "Single Premium Immediate Annuity",49],[304, "Single Premium Immediate Annuity",80],[137, "SPIA",42],[349, "SPIA",33],[5, "SPIA",74],[188, "Ultra Classic",69],[186, "Ultra Future",69],[177, "Ultra Income",85],[385, "VisionMaximizer (5% Bonus)",2]]; function initCalculator() { var carrierForm = document.calculatorForm.carrier; var newOption; // add the carriers 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; }