// JavaScript Document

function PopulateTours() {

   var island_list = document.toursfrm.Island;
   
   if (island_list[island_list.selectedIndex].value == "st_lucia") {
	   var i;
      AddToOptionList(document.toursfrm.tours_names, "North Island Tour", "North Island Tour");
      AddToOptionList(document.toursfrm.tours_names, "Shopping Spree", "Shopping Spree");
      AddToOptionList(document.toursfrm.tours_names, "Sunset Picnic", "Sunset Picnic");
      AddToOptionList(document.toursfrm.tours_names, "Soufriere Tour", "Soufriere Tour");
      AddToOptionList(document.toursfrm.tours_names, "Beach Barbeque", "Beach Barbeque");
      AddToOptionList(document.toursfrm.tours_names, "Horseback Riding", "Horseback Riding");
      AddToOptionList(document.toursfrm.tours_names, "Land & Sea Tour", "Land & Sea Tour");
      AddToOptionList(document.toursfrm.tours_names, "Mamiku Gardens", "Mamiku Gardens");
      AddToOptionList(document.toursfrm.tours_names, "Diamond Botanical Gardens", "Diamond Botanical Gardens");	  
   }
   
   if (island_list[island_list.selectedIndex].value == "antigua") {
	   var i;
      AddToOptionList(document.toursfrm.tours_names, "See Antigua by Sea", "See Antigua by Sea");
      AddToOptionList(document.toursfrm.tours_names, "Barbuda by Sea", "Barbuda by Sea");
      AddToOptionList(document.toursfrm.tours_names, "Island Safari Adventure", "Island Safari Adventure");
      AddToOptionList(document.toursfrm.tours_names, "Island Safari Eco Kayak", "Island Safari Eco Kayak");
      AddToOptionList(document.toursfrm.tours_names, "Island Safari 4x4 Discovery", "Island Safari 4x4 Discovery");
      AddToOptionList(document.toursfrm.tours_names, "Island Safari Sting Ray Fantasy", "Island Safari Sting Ray Fantasy");
      AddToOptionList(document.toursfrm.tours_names, "Half day charter", "Half day charter");
      AddToOptionList(document.toursfrm.tours_names, "Sunset Sail", "Sunset Sail");
      AddToOptionList(document.toursfrm.tours_names, "Bird Island", "Bird Island");
      AddToOptionList(document.toursfrm.tours_names, "Cades Reef", "Cades Reef");	  
   } 
   
   if (island_list[island_list.selectedIndex].value == "st_kitts_nevis") {
	   var i;
      AddToOptionList(document.toursfrm.tours_names, "Atlantic Coast Rain Forest Safari", "Atlantic Coast Rain Forest Safari");
      AddToOptionList(document.toursfrm.tours_names, "Valley of the Giants Rainforest Hike", "Valley of the Giants Rainforest Hike");
      AddToOptionList(document.toursfrm.tours_names, "Mount Liamuiga Volcano Hiking", "Mount Liamuiga Volcano Hiking");
      AddToOptionList(document.toursfrm.tours_names, "Off-The-Beaten-Track 4X4 Jeep Safari", "Off-The-Beaten-Track 4X4 Jeep Safari");
      AddToOptionList(document.toursfrm.tours_names, "Brimstone Hill Railway", "Brimstone Hill Railway");
      AddToOptionList(document.toursfrm.tours_names, "Brimstone Hill Fortress", "Brimstone Hill Fortress");
      AddToOptionList(document.toursfrm.tours_names, "Historic Basseterre Self Guided Walking Tour", "Historic Basseterre Self Guided Walking Tour");
      AddToOptionList(document.toursfrm.tours_names, "Sea Trek", "Sea Trek");
      AddToOptionList(document.toursfrm.tours_names, "Tour of Nevis", "Tour of Nevis");
      AddToOptionList(document.toursfrm.tours_names, "Island Tour of St Kitts", "Island Tour of St Kitts");	
      AddToOptionList(document.toursfrm.tours_names, "Best Beaches of St Kitts", "Best Beaches of St Kitts");	
      AddToOptionList(document.toursfrm.tours_names, "Sunset Sail", "Sunset Sail");	
      AddToOptionList(document.toursfrm.tours_names, "Snorkel Sail", "Snorkel Sail");		  
   }    

}

function move_selection() {
document.toursfrm.choices.value+=" " + document.toursfrm.tours_names.value + ",";
}

function AddToOptionList(OptionList, OptionValue, OptionText) {
   // Add option to the bottom of the list
   OptionList[OptionList.length] = new Option(OptionText, OptionValue);
}

