// FUNCTIONS RELATED TO DROP DOWN


var array1 = null;
var array2 = null;
var	prefix_link = null;
var hmo = new Array();
hmo[0] = 'HMO Blue $10 OV';  <!-- goes to hmo-blue-quick-start.html -->
hmo[1] = 'HMO Blue "Value Plus"';  <!-- goes to hmo-blue-quick-start.html -->
hmo[2] = 'HMO Preferences w/$600';  <!-- goes to hmo-blue-quick-start.html -->
hmo[3] = 'HMO Blue Preferences w/$350';  <!-- goes to hmo-blue-quick-start.html -->
hmo[4] = 'HMO Blue "Enhanced Value"';  <!-- goes to hmo-blue-quick-start.html -->
hmo[5] = 'HMO Blue "Value" w/Rx';  <!-- goes to hmo-blue-quick-start.html -->
hmo[6] = 'HMO Blue "Premier Value"';  <!-- goes to hmo-blue-quick-start.html -->
hmo[7] = 'HMO Blue $1000 Calendar Year Deductible';  <!-- goes to hmo-blue-quick-start.html -->
hmo[8] = 'HMO Blue $2000 Calendar Year Deductible';  <!-- goes to hmo-blue-quick-start.html -->
hmo[9] = 'HMO Blue "Basic Value"';  <!-- goes to hmo-blue-quick-start.html -->
hmo[10] = 'HMO Blue w/Basic Rx';  <!-- goes to hmo-blue-quick-start.html -->
hmo[11] = 'HMO Blue $1000 Plan Year Deductible';  <!-- goes to hmo-blue-quick-start.html -->
hmo[12] = 'HMO Blue $2000 Plan Year Deductible';  <!-- goes to hmo-blue-quick-start.html -->
hmo[13] = 'HMO Blue Premium';  <!-- goes to hmo-blue-quick-start.html -->
hmo[14] = 'HMO Blue Basic Value';  <!-- goes to hmo-blue-quick-start.html -->
hmo[15] = 'HMO Blue $500 Deductible';  <!-- goes to hmo-blue-quick-start.html -->
hmo[16] = 'HMO Blue Options';  <!-- goes to hmo-blue-quick-start.html -->
hmo[17] = 'HMO Blue Options v2'; <!-- goes to hmo-blue-options-v2-quick-start.html -->
hmo[18] = 'Open Access HMO - Access Blue "Value Plus"'; <!-- goes to access-blue-quick-start.html -->
hmo[19] = 'Open Access HMO - Access Blue "Enhanced Value"'; <!-- goes to access-blue-quick-start.html -->
hmo[20] = 'Open Access HMO - Access Blue Saver'; <!-- goes to access-blue-quick-start.html -->
hmo[21] = 'Open Access HMO - Access Blue Basic'; <!-- goes to access-blue-quick-start.html -->
hmo[22] = 'Open Access HMO - Access Blue Basic $2000'; <!-- goes to access-blue-quick-start.html -->
hmo[23] = 'Access Blue Enhanced Value w/ Basic Rx'; <!-- goes to access-blue-quick-start.html -->
hmo[24] = 'HMO Blue New England $10 Copay Plan'; <!-- goes to hmo-blue-new-england-quick-start.html -->
hmo[25] = 'HMO Blue New England "Value Plus"'; <!-- goes to hmo-blue-new-england-quick-start.html -->
hmo[26] = 'HMO Blue New England "Options"'; <!-- goes to hmo-blue-new-england-quick-start.html -->
hmo[27] = 'HMO Blue New England "Enhanced Value"'; <!-- goes to hmo-blue-new-england-quick-start.html -->
hmo[28] = 'HMO Blue New England "Value" w/Rx'; <!-- goes to hmo-blue-new-england-quick-start.html -->
hmo[29] = 'HMO Blue New England $1000 Deductible - Calendar Year'; <!-- goes to hmo-blue-new-england-quick-start.html -->
hmo[30] = 'HMO Blue New England $1000 Deductible - Plan Year'; <!-- goes to hmo-blue-new-england-quick-start.html -->
hmo[31] = 'HMO Blue New England "Premier Value"'; <!-- goes to hmo-blue-new-england-quick-start.html -->
hmo[32] = 'HMO Blue New England $500 Deductible'; <!-- goes to hmo-blue-new-england-quick-start.html -->
hmo[33] = 'HMO Blue New England Options v2'; <!-- goes to hmo-blue-new-england-options-v2-quick-start.html -->
	
	var hmo_descriptions = new Array();
	hmo_descriptions[0] = "hmo-blue-quick-start.html";
hmo_descriptions[1] = "hmo-blue-quick-start.html";
hmo_descriptions[2] = "hmo-blue-quick-start.html";
hmo_descriptions[3] = "hmo-blue-quick-start.html";
hmo_descriptions[4] = "hmo-blue-quick-start.html";
hmo_descriptions[5] = "hmo-blue-quick-start.html";
hmo_descriptions[6] = "hmo-blue-quick-start.html";
hmo_descriptions[7] = "hmo-blue-quick-start.html";
hmo_descriptions[8] = "hmo-blue-quick-start.html";
hmo_descriptions[9] = "hmo-blue-quick-start.html";
hmo_descriptions[10] = "hmo-blue-quick-start.html";
hmo_descriptions[11] = "hmo-blue-quick-start.html";
hmo_descriptions[12] = "hmo-blue-quick-start.html";
hmo_descriptions[13] = "hmo-blue-quick-start.html";
hmo_descriptions[14] = "hmo-blue-quick-start.html";
hmo_descriptions[15] = "hmo-blue-quick-start.html";
hmo_descriptions[16] = "hmo-blue-quick-start.html";
hmo_descriptions[17] = "hmo-blue-options-v2-quick-start.html";
hmo_descriptions[18] = "access-blue-quick-start.html";
hmo_descriptions[19] = "access-blue-quick-start.html";
hmo_descriptions[20] = "access-blue-quick-start.html";
hmo_descriptions[21] = "access-blue-quick-start.html";
hmo_descriptions[22] = "access-blue-quick-start.html";
hmo_descriptions[23] = "access-blue-quick-start.html";
hmo_descriptions[24] = "hmo-blue-new-england-quick-start.html";
hmo_descriptions[25] = "hmo-blue-new-england-quick-start.html";
hmo_descriptions[26] = "hmo-blue-new-england-quick-start.html";
hmo_descriptions[27] = "hmo-blue-new-england-quick-start.html";
hmo_descriptions[28] = "hmo-blue-new-england-quick-start.html";
hmo_descriptions[29] = "hmo-blue-new-england-quick-start.html";
hmo_descriptions[30] = "hmo-blue-new-england-quick-start.html";
hmo_descriptions[31] = "hmo-blue-new-england-quick-start.html";
hmo_descriptions[32] = "hmo-blue-new-england-quick-start.html";
hmo_descriptions[33] = "hmo-blue-new-england-options-v2-quick-start.html";
 
var ppo = new Array();
ppo[0] = 'PPO Preferred Blue PPO Deductible'; <!-- goes to ppo-quick-start.html -->
ppo[1] = 'PPO Preferred Blue PPO Basic $2000'; <!-- goes to ppo-quick-start.html -->
ppo[2] = 'PPO Preferred Blue PPO Saver Lower Deductible'; <!-- goes to ppo-quick-start.html -->
ppo[3] = 'PPO Preferred Blue PPO Saver Higher Deductible'; <!-- goes to ppo-quick-start.html -->
ppo[4] = 'PPO Blue Care Elect Preferred'; <!-- goes to ppo-quick-start.html -->
ppo[5] = 'PPO Blue Care Elect Preferred $10'; <!-- goes to ppo-quick-start.html -->
ppo[6] = 'PPO Blue Care Elect Preferred "Value Plus"'; <!-- goes to ppo-quick-start.html -->
ppo[7] = 'PPO Blue Care Elect Preferred "Enhanced Value"'; <!-- goes to ppo-quick-start.html -->
ppo[8] = 'PPO Blue Care Elect Preferred 90 w/Copay'; <!-- goes to ppo-quick-start.html -->
ppo[9] = 'PPO Blue Care Elect Preferred 80 w/Copay'; <!-- goes to ppo-quick-start.html -->
ppo[10] = 'PPO Blue Care Elect $1000 Deductible'; <!-- goes to ppo-quick-start.html -->
ppo[11] = 'PPO Blue Care Elect $2000 Deductible'; <!-- goes to ppo-quick-start.html -->
ppo[12] = 'PPO Blue Care Elect $3000 Deductible'; <!-- goes to ppo-quick-start.html -->
ppo[13] = 'PPO Blue Care Elect $3000 Plan Year Deductible'; <!-- goes to ppo-quick-start.html -->
ppo[14] = 'PPO Blue Care Elect Saver $1500'; <!-- goes to ppo-quick-start.html -->
	
var ppo_descriptions = new Array();
ppo_descriptions[0] = "ppo-quick-start.html";
ppo_descriptions[1] = "ppo-quick-start.html";
ppo_descriptions[2] = "ppo-quick-start.html";
ppo_descriptions[3] = "ppo-quick-start.html";
ppo_descriptions[4] = "ppo-quick-start.html";
ppo_descriptions[5] = "ppo-quick-start.html";
ppo_descriptions[6] = "ppo-quick-start.html";
ppo_descriptions[7] = "ppo-quick-start.html";
ppo_descriptions[8] = "ppo-quick-start.html";
ppo_descriptions[9] = "ppo-quick-start.html";
ppo_descriptions[10] = "ppo-quick-start.html";
ppo_descriptions[11] = "ppo-quick-start.html";
ppo_descriptions[12] = "ppo-quick-start.html";
ppo_descriptions[13] = "ppo-quick-start.html";
ppo_descriptions[14] = "ppo-quick-start.html";

var pos = new Array();
pos[0] = 'POS Blue Choice "Value Plus"'; <!-- goes to blue-choice-quick-start.html -->
pos[1] = 'POS Blue Choice New England "Value Plus"'; <!-- goes to blue-choice-new-england-quick-start.html -->

var pos_descriptions = new Array();
pos_descriptions[0] = "blue-choice-quick-start.html";
pos_descriptions[1] = "blue-choice-new-england-quick-start.html";




function linkMe() {
				if(window.top){
					var hr =  window.top.location.href;
					
					if(hr.match(/member-central/)){
						var prefix_link = '/member-central/using-my-plan/'; 
						for (i=0; i < hmo_descriptions.length;i++ )
						{
							hmo_descriptions[i] = prefix_link + hmo_descriptions[i];
						}
						for (i=0; i < ppo_descriptions.length;i++ )
						{
							ppo_descriptions[i] = prefix_link + ppo_descriptions[i];
						}
						for (i=0; i < pos_descriptions.length;i++ )
						{
							pos_descriptions[i] = prefix_link + pos_descriptions[i];
						}
						
					}else if(hr.match(/blue-iq/)){
						var prefix_link = '/blue-iq/tools-and-resources/'; 
						for (i=0; i < hmo_descriptions.length;i++ )
						{
							hmo_descriptions[i] = prefix_link + hmo_descriptions[i];
						}
						for (i=0; i < ppo_descriptions.length;i++ )
						{
							ppo_descriptions[i] = prefix_link + ppo_descriptions[i];
						}
						for (i=0; i < pos_descriptions.length;i++ )
						{
							pos_descriptions[i] = prefix_link + pos_descriptions[i];
						}

					}
				}
			}




function loadbox2(){
//clearing loop
var box2 = document.form1.plans.options;
for (i = 2; i < document.form1.plans.options.length; i++){
box2[i].text = "";
box2[i].value = "";
}//ends clearing FOR loop
 
 
//clears description box
document.form1.plans.options[0].selected = true;
 
//begins radio search
for (counter=0; counter < 3; counter++){
if (document.form1.dropdown[counter].checked == true){
var choice = document.form1.dropdown[counter].value;
}//ends IF
}//ends for
 
if (choice =="hmo"){
array1 = hmo;
array2 = hmo_descriptions;
}//ends first (hmo) IF
 
if (choice == "ppo"){
array1 = ppo;
array2 = ppo_descriptions;
}//ends second (ppo) IF

if (choice == "pos"){
array1 = pos;
array2 = pos_descriptions;
}//ends second (ppo) IF
 
for (i = 0; i < array1.length; i++){
box2[i].text = array1[i];
box2[i].value = array2[i];
}// ends populating FOR
}//ends population function


function goToUrl(){
 
var parent_object = document.form1.plans.options;
 
var selection = parent_object[parent_object.selectedIndex].value;
document.form1.action = selection;
document.form1.submit(); 
}

function bookmarksite(title,url){
if (window.sidebar)
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)
	window.external.AddFavorite(url, title);
}