     var bossLists = new Array(30)
     bossLists["empty1"] = ["Select a Instance"];
     bossLists["Crew Skills"] = ["Armormech", "Armstech", "Artifice", "Biochem", "Cybertech", "Synthweaving", "Slicing", "Archaeology", "Bioanalysis", "Diplomacy", "Investigation", "Treasure Hunting", "Underworld Trading", "Scavenging"];
     bossLists["Bastion of Twilight"] = ["Halfus Wyrmbreaker", "Valiona and Theralion", "Twilight Ascendant Council", "Cho'gall", "Sinestra"];
     bossLists["Throne of the Four Winds"] = ["Conclave of Wind", "Al'Akir"];
     bossLists["Blackwing Descent"] = ["Magmaw", "Omnitron Defense System", "Maloriak", "Atramedes", "Chimaeron", "Nefarian"];
     bossLists["Firelands"] = ["Unknown"];
     bossLists["War of the Ancients"] = ["Unknown"]; 
     
     bossLists["Icecrown Citadel"] = ["Lord Marrowgar", "Lady Deathwhisper", "Icecrown Gunship Battle", "Deathbringer Saurfang", "Festergut", "Rotface", "Professor Putricide", "Blood Princes", "Blood-Queen Lana'thel", "Valithria Dreamwalker", "Sindragosa", "The Lich King"]; 
     bossLists["Crusaders Coliseum"] = ["Northrend Beasts", "Lord Jaraxxus", "Faction Champions", "Twin Val'kyr", "Anub'arak"]; 
     bossLists["Ulduar"] = ["Flame Leviathan", "Ignis the Furnace Master", "Razorscale", "XT-002 Deconstructor", "The Assembly of Iron", "Kologarn", "Auriaya", "Mimiron", "Freya", "Thorim", "Hodir", "General Vezax", "Yogg-Saron", "Lady Blaumeux", "Thane Korth'azz", "Algalon the Observer"]; 
     bossLists["Naxxramas"] = ["Anub'Rekhan", "Grand Widow Faerlina", "Maexxna", "Patchwerk", "Grobbulus", "Gluth", "Thaddius", "Noth the Plaguebringer", "Heigan the Unclean", "Loatheb", "Instructor Razuvious", "Gothik the Harvester", "The Four Horsemen", "Sapphiron", "Kel'Thuzad"]; 
     bossLists["Eye of Eternity"]= ["Malygos"]; 
     bossLists["The Obsidian Sanctum"]= ["Sartharion"]; 
     bossLists["Vault of Archavon"]= ["Archavon the Stone Watcher"]; 
     
     bossLists["Zul'Aman"] = ["Nalorakk", "Akil'Zon", "Jan'Alai", "Halazzi", "Hex Lord Malacrass", "Zul'jin"]; 
     bossLists["Karazhan"] = ["Attumen the Huntsman", "Moroes", "Maiden of Virtue", "The Curator", "Terestian Illhoof", "Shade of Aran", "Netherspite", "Nightbane", "Prince Malchezaar", "Chess Event", "Wizard of Oz", "The Big Bad Wolf", "Romulo & Julianne", "Hyakiss the Lurker", "Rokad the Ravager", "Shadikith the Glider"]; 
     bossLists["Gruul's Lair"] = ["High King Maulgar", "Gruul the Dragonkiller"]; 
     bossLists["Magtheridon's Lair"]= ["Magtheridon"]; 
     bossLists["Serpentshrine Cavern"] = ["Hydross the Unstable", "The Lurker Below", "Leotheras the Blind", "Fathom-Lord Karathress", "Morogrim Tidewalker", "Lady Vashj"]; 
     bossLists["The Eye"] = ["Al'ar", "High Astromancer Solarian", "Void Reaver", "Kael'thas Sunstrider"]; 
     bossLists["Battle for Mount Hyjal"] = ["Rage Winterchill", "Anetheron", "Kaz'rogal", "Azgalor", "Archimonde"]; 
     bossLists["Black Temple"] = ["High Warlord Naj'entus", "Supremus", "Shade of Akama", "Teron Gorefiend", "Gurtogg Bloodboil", "Reliquary of Souls", "Mother Shahraz", "Illidari Council", "Illidan Stormrage"]; 
     bossLists["Sunwell Plateau"] = ["Kalecgos", "Brutallus", "Felmyst", "The Eredar Twins", "M'uru", "Kil'Jaeden"]; 
     
     bossLists["Temple of Ahn'Qiraj"] = ["The Prophet Skeram", "Vem, Lord Kri, Princess Yauj", "Battleguard Sartura", "Fankriss The Unyielding", "Viscidus", "Princess Huhuran", "The Twin Emporers, Vek'lor and Vek'nilash", "Ouro", "Eye of C'Thun", "C'Thun"]; 
     bossLists["Blackwing Lair"] = ["Razorgore", "Vaelastrasz", "Broodlord", "Firemaw", "Ebonroc", "Flamegor", "Chromaggus", "Nefarian"]; 
     bossLists["Molten Core"] = ["Lucifron", "Magmadar", "Gehennas", "Garr", "Baron Geddon", "Shazzrah", "Sulfuron", "Golemagg", "Majordomo Executus", "Ragnaros"]; 
     bossLists["Onyxia's Lair"]= ["Onyxia"]; 
     bossLists["Ruins of Ahn'Qiraj"] = ["Kurinnaxxx", "General Rajaxx", "Moam", "Ayamiss the Hunter", "Ossirian the Unscarred"]; 
     bossLists["Zul'Gurub"] = ["High Priestess Jeklik", "High Priest Venoxis", "High Priestess Mar'li", "Bloodlord Mandokir", "High Priest Thekal", "High Priestess Arlokk", "Jin'do the Hexxer", "Gahz'ranka", "Renataki", "Wushoolay", "Gri'lek", "Hazza'rah", "Hakkar"]; 

     /* bossChange() is called from the onchange event of a select element. 
     * param selectObj - the select object which fired the on change event. 
     */ 
     function bossChange(selectObj) { 
     // get the index of the selected option 
     var idx = selectObj.selectedIndex; 
     // get the value of the selected option 
     var which = selectObj.options[idx].value; 
     // use the selected option value to retrieve the list of items from the bossLists array 
     cList = bossLists[which]; 
     // get the boss select element via its known id 
     var cSelect = document.getElementById("boss"); 
     // remove the current options from the boss select 
     var len=cSelect.options.length; 
     while (cSelect.options.length > 0) { 
     cSelect.remove(0); 
     } 
     var newOption; 
     // create new options 
     for (var i=0; i<cList.length; i++) { 
     newOption = document.createElement("option"); 
     newOption.value = cList[i];  // assumes option string and value are the same 
     newOption.text=cList[i]; 
     // add the new option 
     try { 
     cSelect.add(newOption);  // this will fail in DOM browsers but is needed for IE 
     } 
     catch (e) { 
     cSelect.appendChild(newOption); 
     } 
     } 
     }
function changeText(tmptext){
    var x=document.getElementById("boss");
    var tmpvalue;
    for (var i=0; i<x.childNodes.length; i++) { 
    if (x.value!=tmptext){
        x.selectedIndex = i;
    }
    }
}

function addDKPBosses(){
    var cSelect = document.getElementById("boss"); 
    var newOption;
    
    newOption = document.createElement("option"); 
    newOption.value='Random';
    newOption.text='Random'; 
    try {cSelect.add(newOption);}
    catch (e) { cSelect.appendChild(newOption);}
    
    newOption = document.createElement("option"); 
    newOption.value='Try';
    newOption.text='Try'; 
    try {cSelect.add(newOption);} 
    catch (e) { cSelect.appendChild(newOption);} 
    
    newOption = document.createElement("option"); 
    newOption.value='No show';
    newOption.text='No show'; 
    try {cSelect.add(newOption);} 
    catch (e) { cSelect.appendChild(newOption);} 
    
}
