function resetAllForms (windowOrLayer) {
  if (!windowOrLayer)
    windowOrLayer = window;
  for (var f = 0; f < document.forms.length; f++)
    windowOrLayer.document.forms[f].reset();
  if (document.layers)
    for (var l = 0; l < windowOrLayer.document.layers.length; l++)
      resetAllForms(windowOrLayer.document.layers[l]);
}

myTRADtext = new Array();
myTRADtext[1] = "First Dollar";
myTRADtext[2] = "First Dollar with Master Medical (MM) Option 1";
myTRADtext[3] = "First Dollar with Master Medical Option 2";
myTRADtext[4] = "Comprehensive Major Medical (CMM) - Plan 2";
myTRADtext[5] = "Comprehensive Major Medical (CMM) - Plan 3";
myTRADtext[6] = "Comprehensive Major Medical (CMM) - Plan 4";
myTRADtext[7] = "Comprehensive Major Medical (CMM) - Plan 7";
myTRADtext[8] = "Medicare Supplemental - Option 2+1";
myTRADtext[9] = " ";
myTRADtext[10] = " ";

myTRADvalue = new Array();
myTRADvalue[1] = "/agent/secure/pdf/first_dollar.pdf";
myTRADvalue[2] = "/agent/secure/pdf/first_dollar_master_medical_1.pdf";
myTRADvalue[3] = "/agent/secure/pdf/first_dollar_master_medical_5.pdf";
myTRADvalue[4] = "/agent/secure/pdf/bmtcmm_plan2.pdf";
myTRADvalue[5] = "/agent/secure/pdf/bmtcmm_plan3.pdf";
myTRADvalue[6] = "/agent/secure/pdf/bmtcmm_plan4.pdf";
myTRADvalue[7] = "/agent/secure/pdf/bmtcmm_plan7.pdf";
myTRADvalue[8] = "/agent/secure/pdf/bcbs21-mm65.pdf";
myTRADvalue[9] = "/agent/secure/index.shtml";
myTRADvalue[10] = "/agent/secure/index.shtml";

myPPOtext = new Array();
myPPOtext[1] = "Community Blue - Plan 1";
myPPOtext[2] = "Community Blue - Plan 2";
myPPOtext[3] = "Community Blue - Plan 3";
myPPOtext[4] = "Community Blue - Plan 4";
myPPOtext[5] = "Community Blue - Plan 10";
myPPOtext[6] = "Community Blue - Plan 12";
myPPOtext[7] = "Blue Value Option - Plan 2";
myPPOtext[8] = "Blue Value Option - Plan 6";
myPPOtext[9] = "Healthy Blue - Plan 80";
myPPOtext[10] = "Healthy Blue - Plan  70";

myPPOvalue = new Array();
myPPOvalue[1] = "/agent/secure/pdf/cb01.pdf";
myPPOvalue[2] = "/agent/secure/pdf/cb02.pdf";
myPPOvalue[3] = "/agent/secure/pdf/cb03.pdf";
myPPOvalue[4] = "/agent/secure/pdf/cb04.pdf";
myPPOvalue[5] = "/agent/secure/pdf/cb10.pdf";
myPPOvalue[6] = "/agent/secure/pdf/cb12.pdf";
myPPOvalue[7] = "/agent/secure/pdf/bvo_02.pdf";
myPPOvalue[8] = "/agent/secure/pdf/bvo_06.pdf";
myPPOvalue[9] = "/agent/secure/pdf/healthy_blue80_ppo.pdf";
myPPOvalue[10] = "/agent/secure/pdf/healthy_blue70_ppo.pdf";

myHSAtext = new Array();
myHSAtext[1] = "Blue HSA 1000 - CMM-PPO";
myHSAtext[2] = "Blue HSA 2500 - CMM-PPO";
myHSAtext[3] = "Blue HSA 1000 with preventive benefits - CMM-PPO";
myHSAtext[4] = "Blue HSA 2500 with preventive benefits - CMM-PPO";
myHSAtext[5] = "Blue HSA 2000 - BVO-PPO";
myHSAtext[6] = " ";
myHSAtext[7] = " ";
myHSAtext[8] = " ";
myHSAtext[9] = " ";
myHSAtext[10] = " ";

myHSAvalue = new Array();
myHSAvalue[1] = "/agent/secure/pdf/hsa1000_cmm_ppo.pdf";
myHSAvalue[2] = "/agent/secure/pdf/hsa2500_cmmppo.pdf";
myHSAvalue[3] = "/agent/secure/pdf/hsa1000_cmm_ppo_prevcare.pdf";
myHSAvalue[4] = "/agent/secure/pdf/hsa2500_cmm_ppo_prevcare.pdf";
myHSAvalue[5] = "/agent/secure/pdf/hsa_bvo2000.pdf";
myHSAvalue[6] = "/agent/secure/index.shtml";
myHSAvalue[7] = "/agent/secure/index.shtml";
myHSAvalue[8] = "/agent/secure/index.shtml";
myHSAvalue[9] = "/agent/secure/index.shtml";
myHSAvalue[10] = "/agent/secure/index.shtml";

myPOStext = new Array();
myPOStext[1] = "Blue Choice - Plan 3";
myPOStext[2] = "Blue Choice - Plan 4";
myPOStext[3] = "Blue Choice - Plan 7";
myPOStext[4] = "Blue Choice - Plan 9 (with built-in Rx plan)";
myPOStext[5] = " ";
myPOStext[6] = " ";
myPOStext[7] = " ";
myPOStext[8] = " ";
myPOStext[9] = " ";
myPOStext[10] = " ";

myPOSvalue = new Array();
myPOSvalue[1] = "/agent/secure/pdf/bc03.pdf";
myPOSvalue[2] = "/agent/secure/pdf/bc04.pdf";
myPOSvalue[3] = "/agent/secure/pdf/bc07.pdf";
myPOSvalue[4] = "/agent/secure/pdf/bc09.pdf";
myPOSvalue[5] = "/agent/secure/index.shtml";
myPOSvalue[6] = "/agent/secure/index.shtml";
myPOSvalue[7] = "/agent/secure/index.shtml";
myPOSvalue[8] = "/agent/secure/index.shtml";
myPOSvalue[9] = "/agent/secure/index.shtml";
myPOSvalue[10] = "/agent/secure/index.shtml";

myBCNtext = new Array();
myBCNtext[1] = "Package A";
myBCNtext[2] = "Package E";
myBCNtext[3] = "Package I";
myBCNtext[4] = "Package J";
myBCNtext[5] = "Basic";
myBCNtext[6] = "Deductible Plan - Package 1";
myBCNtext[7] = "Deductible Plan - Package 2";
myBCNtext[8] = "Deductible Plan - Package 3";
myBCNtext[9] = "Self Referral Option - Plan 1";
myBCNtext[10] = "Self Referral Option - Plan 2";

myBCNvalue = new Array();
myBCNvalue[1] = "/agent/secure/pdf/bcna.pdf";
myBCNvalue[2] = "/agent/secure/pdf/bcne.pdf";
myBCNvalue[3] = "/agent/secure/pdf/bcni.pdf";
myBCNvalue[4] = "/agent/secure/pdf/bcnj.pdf";
myBCNvalue[5] = "/agent/secure/pdf/bcnbasic.pdf";
myBCNvalue[6] = "/agent/secure/pdf/bcn_package_deductible1.pdf";
myBCNvalue[7] = "/agent/secure/pdf/bcn_package_deductible2.pdf";
myBCNvalue[8] = "/agent/secure/pdf/bcn_package_deductible3.pdf";
myBCNvalue[9] = "/agent/secure/pdf/bcn_be_sro_pkg1.pdf";
myBCNvalue[10] = "/agent/secure/pdf/bcn_be_sro_pkg2.pdf";

myRXtext = new Array();
myRXtext[1] = "BCBSM - $10/$20";
myRXtext[2] = "BCBSM - $10/$40";
myRXtext[3] = "BCBSM - $10/$60*";
myRXtext[4] = "BCBSM - $15/$30";
myRXtext[5] = "BCBSM - $15/$50*";
myRXtext[6] = "BCBSM - $15/$30/$60";
myRXtext[7] = "BCBSM - 50%";
myRXtext[8] = "BCBSM - Blue Advantage";
myRXtext[9] = " ";
myRXtext[10] = " ";

myRXvalue = new Array();
myRXvalue[1] = "/agent/secure/pdf/bprx10g20b.pdf";
myRXvalue[2] = "/agent/secure/pdf/bprx10g40b.pdf";
myRXvalue[3] = "/agent/secure/pdf/bprx10g60b.pdf";
myRXvalue[4] = "/agent/secure/pdf/bprx15g30b.pdf";
myRXvalue[5] = "/agent/secure/pdf/bprx15g50b.pdf";
myRXvalue[6] = "/agent/secure/pdf/bprx_ttc.pdf";
myRXvalue[7] = "/agent/secure/pdf/bprx50per.pdf";
myRXvalue[8] = "/agent/secure/pdf/bprxad.pdf";
myRXvalue[9] = "/agent/secure/index.shtml";
myRXvalue[10] = "/agent/secure/index.shtml";

myDENTALtext = new Array();
myDENTALtext[1] = "Traditional Plus - Plan 1";
myDENTALtext[2] = "Traditional Plus - Plan 2";
myDENTALtext[3] = "Traditional Plus - Plan 3";
myDENTALtext[4] = "Traditional Plus - Plan 4";
myDENTALtext[5] = "Community Dental - Plan 1";
myDENTALtext[6] = "Community Dental - Plan 2";
myDENTALtext[7] = "Community Dental - Plan 3";
myDENTALtext[8] = "Exclusive Dental - Plan 1";
myDENTALtext[9] = "Exclusive Dental - Plan 2";
myDENTALtext[10] = "Exclusive Dental - Plan 3";

myDENTALvalue = new Array();
myDENTALvalue[1] = "/agent/secure/pdf/dent01.pdf";
myDENTALvalue[2] = "/agent/secure/pdf/dent02.pdf";
myDENTALvalue[3] = "/agent/secure/pdf/dent03.pdf";
myDENTALvalue[4] = "/agent/secure/pdf/dent04.pdf";
myDENTALvalue[5] = "/agent/secure/pdf/cdent01.pdf";
myDENTALvalue[6] = "/agent/secure/pdf/cdent02.pdf";
myDENTALvalue[7] = "/agent/secure/pdf/cdent03.pdf";
myDENTALvalue[8] = "/agent/secure/pdf/edent01.pdf";
myDENTALvalue[9] = "/agent/secure/pdf/edent02.pdf";
myDENTALvalue[10] = "/agent/secure/pdf/edent03.pdf";

myVISIONtext = new Array();
myVISIONtext[1] = "Blue Vision 12";
myVISIONtext[2] = "Blue Vision 24";
myVISIONtext[3] = " ";
myVISIONtext[4] = " ";
myVISIONtext[5] = " ";
myVISIONtext[6] = " ";
myVISIONtext[7] = " ";
myVISIONtext[8] = " ";
myVISIONtext[9] = " ";
myVISIONtext[10] = " ";

myVISIONvalue = new Array();
myVISIONvalue[1] = "/agent/secure/pdf/vsp12.pdf";
myVISIONvalue[2] = "/agent/secure/pdf/vsp24.pdf";
myVISIONvalue[3] = "/agent/secure/index.shtml";
myVISIONvalue[4] = "/agent/secure/index.shtml";
myVISIONvalue[5] = "/agent/secure/index.shtml";
myVISIONvalue[6] = "/agent/secure/index.shtml";
myVISIONvalue[7] = "/agent/secure/index.shtml";
myVISIONvalue[8] = "/agent/secure/index.shtml";
myVISIONvalue[9] = "/agent/secure/index.shtml";
myVISIONvalue[10] = "/agent/secure/index.shtml";

myONEtext = new Array();
myONEtext[1] = "Comprehensive Major Medical (CMM) - Plan 4 with Prescription Drugs";
myONEtext[2] = "Community Blue - Plan 8";
myONEtext[3] = " ";
myONEtext[4] = " ";
myONEtext[5] = " ";
myONEtext[6] = " ";
myONEtext[7] = " ";
myONEtext[8] = " ";
myONEtext[9] = " ";
myONEtext[10] = " ";

myONEvalue = new Array();
myONEvalue[1] = "/agent/secure/pdf/bmtcmm_pd.pdf";
myONEvalue[2] = "/agent/secure/pdf/cb08.pdf";
myONEvalue[3] = "/agent/secure/index.shtml";
myONEvalue[4] = "/agent/secure/index.shtml";
myONEvalue[5] = "/agent/secure/index.shtml";
myONEvalue[6] = "/agent/secure/index.shtml";
myONEvalue[7] = "/agent/secure/index.shtml";
myONEvalue[8] = "/agent/secure/index.shtml";
myONEvalue[9] = "/agent/secure/index.shtml";
myONEvalue[10] = "/agent/secure/index.shtml";

function selectPlatform(){
var num = document.myform.platform.selectedIndex;
if (num == 1) {populateSite(myTRADtext, myTRADvalue);}
if (num == 2) {populateSite(myPPOtext, myPPOvalue);}
if (num == 3) {populateSite(myHSAtext, myHSAvalue);}
if (num == 4) {populateSite(myPOStext, myPOSvalue);}
if (num == 5) {populateSite(myBCNtext, myBCNvalue);}
if (num == 6) {populateSite(myRXtext, myRXvalue);}
if (num == 7) {populateSite(myDENTALtext, myDENTALvalue);}
if (num == 8) {populateSite(myVISIONtext, myVISIONvalue);}
if (num == 9) {populateSite(myONEtext, myONEvalue);}
}

function populateSite(mySitestext, mySitesvalue){
document.myform.site.selectedIndex = 0;
document.myform.site.options[0].text = "Select specific benefit plan";
for (count = 1; count < mySitestext.length; count ++){
document.myform.site.options[count].text = mySitestext[count];
document.myform.site.options[count].value = mySitesvalue[count];
}
}

function selectSite(){
var num = document.myform.site.selectedIndex;
document.location.href = document.myform.site.options[num].value;
}
