
function loadChoices(condition) {

var div = document.getElementById('audioChoice');
div.innerHTML = "";

var selectedText = condition.options[condition.selectedIndex].text;

if (condition.value != 0) {

if (condition.value == 1000) {

var audioArray = [
1260,	'Dehydration',
1291,	'Urinary Tract Infections',
1402,	'Stomach Flu and Food Poisoning',
1403,	'Hernia',
1451,	'Constipation',
1452,	'Diarrhea',
1462,	'Nausea and Vomiting',
1600,	'Appendicitis',
1603,	'Inflammatory Bowel Disease',
1605,	'Diverticulosis and Diverticulitis',
1608,	'Gallbladder Disease',
1609,	'Rectal Problems',
1610,	'Heartburn',
1611,	'Irritable Bowel Syndrome',
1612,	'Gastroesophageal Reflux Disease',
1613,	'Ulcers',
1618,	'Crohn\'s Disease',
1952,	'Hepatitis',
2154,	'Gallbladder Surgery',
2257,	'Urinary Incontinence',
2576,	'Kidney Stones'];
}


if (condition.value == 1001) {

var audioArray = [
1000,	'Allergies',
1002,	'Food Allergies',
1007,	'What About Allergy Shots',
1010,	'National Support Services for Allergies'];
}

if (condition.value == 1002) {

var audioArray = [
1450, 'Back Pain', 
1457, 'Neck Pain',
1463, 'Herniated Disk', 
2174, 'Low Back Problems'];
}

if (condition.value == 1003) {

var audioArray = [
1030,	'Arthritis',
1031,	'Juvenile Rheumatoid Arthritis',
1032,	'Osteoporosis',
1033,	'Lupus',
1034,	'Rheumatoid arthritis',
1037,	'National Support Services for Arthritis',
1038,	'Fibromyalgia',
1039,	'Gout',
1456,	'Sports Injuries',
1461,	'TM Disorders',
1780,	'Bunions and Hammer Toes',
1781,	'Calluses and Corns',
1784,	'Heel Spurs',
2103,	'Bursitis and Tendinitis',
2104,	'Carpal Tunnel Syndrome',
2105,	'Strains Sprains Fractures and Dislocations',
2106,	'Muscle Cramps and Leg Pain',
2151,	'Surgery for Carpal Tunnel Syndrome',
2169,	'Rotator Cuff Repair',
2259,	'Osteoarthritis'];
}

if (condition.value == 1004) {

var audioArray = [
1102,	'Early Detection Guidelines for Cancer',
1103,	'Signs and Symptoms of Cancer',
1105,	'Cancer Pain',
1106,	'National Support Services for Cancer',
1113,	'Colorectal Cancer',
1120,	'Women\'s Cancer',
1124,	'Lung Cancer'];
}

if (condition.value == 1005) {

var audioArray = [
1400,	'Colds',
1401,	'Influenza (Flu)',
1406,	'Sinusitis',
1407,	'Viral and Bacterial Infection',
1455,	'Fever',
1459,	'Sore Throat and Strep Throat',
1460,	'Swollen Lymph Nodes',
1648,	'Laryngitis',
1900,	'Chest Pain',
1903,	'Causes of Heart Attack',
1904,	'Heart Attack Prevention',
1907,	'Congestive Heart Failure',
1908,	'Atrial Fibrillation (irregular heartbeats)',
1910,	'Mitral Valve Prolapse',
1911,	'Pacemakers',
1912,	'Varicose Veins',
1913,	'National Support Services for Heart Disease',
1915,	'Cardiac Rehabilitation',
1976,	'Chronic Obstructive Pulmonary Disease (COPD)',
1980,	'Emphysema',
1981,	'Asthma',
1983,	'Bronchitis',
1986,	'Pneumonia'];
}

if (condition.value == 1006) {

var audioArray = [
1060,	'ALS (Lou Gehrig\'s Disease)',
1061,	'Alzheimer\'s Disease',
1063,	'Epilepsy',
1065,	'Multiple Sclerosis',
1066,	'Parkinson\'s Disease',
1500,	'Type 2 Diabetes',
1508,	'Type 1 diabetes',
1509,	'National Support Services for Diabetes',
1512,	'Prediabetes',
1832,	'High Cholesterol',
1909,	'High Blood Pressure',
1950,	'Chronic Fatigue Syndrome',
1959,	'Living with HIV Infection',
2550,	'Thyroid Problems',
2570,	'Chronic Kidney Disease',
2623,	'Iron-Deficiency Anemia',
1064,	'Meningitis and Encephalitis'];
}

if (condition.value == 1007) {

var audioArray = [
1264,	'Ear Infections',
1453,	'Dizziness and Vertigo',
1516,	'Diabetic Retinopathy',
1640,	'Earwax',
1641,	'Labrynthitis',
1643,	'Swimmer\'s Ear',
1644,	'Meniere\'s Disease',
1646,	'Hearing Loss',
1650,	'Tonsillitis'];
}

if (condition.value == 1008) {

var audioArray = [
1700,	'Eye Problems',
1702,	'Vision Tests',
1703,	'Contact Lenses',
1705,	'Eye Injuries',
1707,	'Styes',
1708,	'Eye Inflammations',
1709,	'Cataracts',
1710,	'Color Blindness',
1711,	'Macular Degeneration ',
1712,	'Glaucoma',
1713,	'Strabismus',
1716,	'Nearsightedness - Radial Keratotomy',
1717,	'Floaters and Flashes',
2152,	'Cataract Surgery'];
}

if (condition.value == 1009) {

var audioArray = [
1067,	'Stroke',
1255,	'Choking              ',
1458,	'Nosebleeds',
1750,	'Animal and Human Bites',
1751,	'Insect and Spider Bites and Stings',
1752,	'Snake Bites',
1754,	'Tick Bites',
1759,	'Heat Exhaustion and Heat Stroke',
1761,	'Burns',
1762,	'Cuts',
1763,	'Poisoning',
1764,	'Puncture Wounds',
1766,	'Removing Splinters',
1901,	'Heart Attack',
2203,	'Importance of CPR Instruction',
2256,	'Hypothermia',
2337,	'Frostbite'];
}

if (condition.value == 1010) {

var audioArray = [
1062,	'Bell\'s Palsy',
1064,	'Meningitis and Encephalitis',
1068,	'Guillain-Barre Syndrome',
1404,	'Tension Headaches',
1405,	'Migraine Headaches',
1515,	'Diabetic Neuropathy'];
}

if (condition.value == 1011) {

var audioArray = [
1270,	'How to Take a Temperature',
1758,	'Self-Care Supplies',
2000,	'Bulking Agents and Laxatives',
2001,	'Pain Relievers',
2002,	'Decongestants',
2003,	'Cough Preparations',
2007,	'Cold and Allergy Remedies'];

}


if (condition.value == 1012) {

var audioArray = [
1080,	'Dyslexia',
1247,	'Temper Tantrums',
1250,	'ADHD',
1251,	'Bed-Wetting',
1253,	'Fever Age 3 and Younger',
1254,	'Chickenpox',
1256,	'Facts about Infants and Young Children',
1257,	'Colic',
1258,	'Croup',
1259,	'Reye\'s Syndrome',
1261,	'Diaper Rash',
1267,	'Fifth Disease',
1268,	'Growth and Development of the Newborn',
1269,	'Hand-Foot-Mouth Disease',
1272,	'Impetigo',
1274,	'Measles',
1275,	'Mumps',
1278,	'Childhood Rashes',
1280,	'Pinworms',
1283,	'Roseola',
1284,	'Rubella (German Measles)',
1287,	'Sudden Infant Death Syndrome (SIDS)',
1288,	'Teething',
1289,	'Thumb-Sucking',
1290,	'Toilet Training',
1292,	'Thrush',
2436,	'Fetal Alcohol Syndrome'];

}


if (condition.value == 1013) {

var audioArray = [
1951,	'Infectious Mononucleosis',
1956,	'Tuberculosis',
1965,	'West Nile Virus'];

}

if (condition.value == 1014) {

var audioArray = [
1279,	'Immunizations',
1295,	'Health Screenings',
1830,	'Living a balanced lifestyle',
1831,	'Seven Simple Guidelines for Eating Well',
1833,	'Be Physically Active',
1834,	'Maintain a Healthy Body Weight',
1835,	'Mind-Body Connection',
1838,	'Alcohol and Drug Problems',
1841,	'Be Tobacco-Free',
1846,	'Managing Stress',
1853,	'Healthy Snacks',
1964,	'Relaxation Skills',
2204,	'Accident and Injury Prevention',
2428,	'Treatment for Alcohol Use Problems',
2435,	'Teen alcohol and drug abuse'];
	
}

if (condition.value == 1015) {

var audioArray = [
1506,	'Home Blood Sugar Monitoring',
1532,	'Exercise Electrocardiography',
1533,	'Complete Blood Count (CBC)',
1534,	'Chest X-ray',
1535,	'Chorionic Villus Sampling',
1536,	'CT Scan of the Body',
1537,	'Electroencephalography',
1538,	'Electrocardiography',
1539,	'Electromyography (EMG)',
1540,	'Barium Enema',
1541,	'Upper Gastrointestinal (GI) Series',
1542,	'Magnetic Resonance Imaging',
1546,	'Lung Function Tests',
1547,	'Abdominal Ultrasound',
2155,	'Cystoscopy',
2156,	'Dilation and Curettage for Menopause',
2157,	'Episiotomy',
2158,	'Surgery for Hemorrhoids',
2159,	'Hernia Surgery',
2160,	'Hip Replacement',
2162,	'Knee Arthroscopy',
2163,	'Knee Replacement',
2164,	'Laparoscopy',
2165,	'Myringotomy with Ear Tubes',
2171,	'Tonsillectomy and Adenoidectomy',
2503,	'Shared Decisions about Surgery'];

}

if (condition.value == 1016) {

var audioArray = [
1128,	'Prostate Cancer',
1545,	'Prostate-Specific Antigen Test (PSA Test)',
2031,	'Hair Loss',
2032,	'Erections Problems',
2034,	'Prostate Enlargement',
2036,	'Testicular Problems',
2167,	'TURP for BPH',
2173,	'Vasectomy - Permanent Sterilization'];

}

if (condition.value == 1017) {

var audioArray = [
1069,	'Bipolar Disorder',
1070,	'Schizophrenia',
1230,	'Domestic Violence',
1240,	'Child Maltreatment',
1845,	'Stress and Distress',
2051,	'Obsessive-compulsive Disorder',
2052,	'Eating Disorders',
2055,	'Anxiety',
2057,	'Depression',
2059,	'Grief',
2063,	'Social Anxiety Disorder',
2066,	'Suicide'];

}

if (condition.value == 1018) {

var audioArray = [
1201,	'Patients Bill of Rights',
1202,	'Caregiver Secrets',
1800,	'Skills for Making Wise Health Decisions',
1801,	'Work in Partnership with your Doctor',
1802,	'Finding a Doctor Who Will be a Partner'];
}

if (condition.value == 1019) {

var audioArray = [
1836,	'Seniors Staying Active and Fit',
2004,	'Medication Problems in Seniors',
2006,	'Medication and Older Adults',
2240,	'Hospice Care',
2245,	'Care at the End of Life',
2251,	'Diet and Aging',
2261,	'Skin and Nail Problems in Seniors'];
}

if (condition.value == 1020) {

var audioArray = [
1848,	'Sexually Transmitted Diseases',
1957,	'HIV Infection and AIDS',
1963,	'Where to Seek Help for HIV over the phone',
2306,	'Where to Seek Help for HIV over the Internet',
2307,	'Chlamydia',
2308,	'Genital Herpes',
2309,	'Genital Warts',
2310,	'Gonorrhea',
2311,	'Syphilis',
2315,	'Trichomoniasis',
2600,	'Birth Control'];

}

if (condition.value == 1021) {

var audioArray = [
1129,	'Skin Cancer',
1273,	'Lice and Scabies',
1755,	'Blisters',
1785,	'Ingrown Toenails',
2330,	'Acne',
2332,	'Boils',
2333,	'Cold Sores',
2334,	'Dandruff',
2336,	'Atopic Dermatitis',
2338,	'Hives',
2343,	'Rashes',
2344,	'Psoriasis',
2346,	'Fungal Infections',
2349,	'Shingles',
2352,	'Sunburn',
2353,	'Warts'];

}

if (condition.value == 1022) {

var audioArray = [
2400,	'Sleep Problems',
2403,	'Sleep Apnea',
2406,	'Snoring'];

}

if (condition.value == 1023) {

var audioArray = [
1107,	'Breast Health',
1504,	'Gestational Diabetes',
1531,	'Breast Biopsy',
1544,	'Pelvic Exam and Pap Test',
1548,	'Ultrasound for Normal Pregnancy',
2033,	'Infertility',
2039,	'Sexual Dysfunction in Women',
2172,	'Tubal Ligation',
2312,	'Pelvic Inflammatory Disease',
2426,	'Precautions During Pregnancy',
2640,	'Bacterial Vaginosis',
2643,	'Yeast Infections',
2650,	'Menopause',
2651,	'Hormone Replacement',
2670,	'Missed or Irregular Periods',
2672,	'Endometriosis',
2673,	'Uterine Fibroids',
2674,	'Hysterectomy',
2675,	'Bleeding Between Periods',
2677,	'Functional Ovarian Cysts',
2678,	'Menstrual Cramps',
2680,	'Toxic Shock Syndrome',
2700,	'How to Make a Healthy Baby',
2701,	'Home Pregnancy Test',
2702,	'Abortion',
2704,	'Danger signs during pregnancy',
2705,	'Normal Pregnancy',
2706,	'Symptoms and Stages of Labor',
2708,	'Diet During Pregnancy',
2709,	'Exercise During Pregnancy',
2710,	'Rubella and Pregnancy',
2714,	'Amniocentesis',
2717,	'Miscarriage',
2719,	'Stretch Marks',
2720,	'Cesarean Section',
2723,	'Pelvic Organ Prolapse',
2724,	'Premenstrual Syndrome',
2725,	'Symptoms and Stages of Pregnancy',
2750,	'Postpartum Depression',
2751,	'Breast Feeding',
2752,	'Complications After Delivery'];

}
	loadAudioCodes(audioArray, selectedText);
	
} //end selecteText != 0
}

    function loadAudioCodes(audioArray, text) {
       
	var loc = document.getElementById("audioChoice");
        
        var tbl     = document.createElement("table");
        var tblHead = document.createElement("thead");
        tbl.appendChild(tblHead);
// Topic Selected
		var row = document.createElement("tr");
		var cell = document.createElement("th");
		cell.style.fontSize = '12px';
		cell.style.backgroundColor = '#fff';
		cell.colSpan = 2;
		var cellText = document.createTextNode(text);
                cell.appendChild(cellText);
                row.appendChild(cell);
            	tblHead.appendChild(row);
        
        var tblBody = document.createElement("tbody");
        

// column headings
		 var row = document.createElement("tr");
		 
		 var cell = document.createElement("td");
		 cell.style.width = '75px';
		 var para = document.createElement("p");
		 para.style.fontSize = '11px';
		 para.setAttribute("align", "left");
		 var bold = document.createElement("b");
		 var cellText = document.createTextNode('Code');
		
		 bold.appendChild(cellText);
		 para.appendChild(bold);
		 cell.appendChild(para);
         row.appendChild(cell);
         tblBody.appendChild(row);
            	
		 var cell = document.createElement("td");
		 cell.style.width = '250px';
		 var para = document.createElement("p");
		 para.style.fontSize = '11px';
		 para.setAttribute("align", "left");
		 var bold = document.createElement("b");
		 var cellText = document.createTextNode('Health Topic');
		
		 bold.appendChild(cellText);
		 para.appendChild(bold);
		 cell.appendChild(para);
         row.appendChild(cell);
         tblBody.appendChild(row);
        
        for (var j = 0; j < audioArray.length; j+=2) {
            
            	var row = document.createElement("tr");
                var cell = document.createElement("td");
                var para = document.createElement("p");
               
		var cellText = document.createTextNode(audioArray[j]);
                para.appendChild(cellText);
                para.setAttribute("align", "left");
                para.style.color = '#333';
                para.style.fontSize = '11px';
                cell.appendChild(para);
                row.appendChild(cell);
		var cell2 = document.createElement("td");
		var para = document.createElement("p");
		var desc = j + 1;
		var cellText = document.createTextNode(audioArray[desc]);
                para.appendChild(cellText);
                para.setAttribute("align", "left");
                para.style.color = '#333';
                para.style.fontSize = '11px';
                cell2.appendChild(para);
                row.appendChild(cell2);
            	tblBody.appendChild(row);
            	
        }

       
        tblHead.appendChild(tblBody);
        
        
        loc.appendChild(tbl);
     
        tbl.setAttribute("border", "0");
        
    }

