
function addOption(theField, theText, theValue) {
	theField.selectedIndex = -1;
	var optionName = new Option(theText, theValue);
	var length = theField.length;
	theField.options[length] = optionName;
}
 
function setSelectMenu(selectedValue) {
    var theForm = eval(document.form0);
    theForm.hear_about.options.length = 0;
    addOption(theForm.hear_about, 'Please select a response', '')
    document.getElementById('hear_about').style.display = 'none'
   <!---  document.getElementById('submenuMagazine').style.display = 'none' --->
    <!--- document.getElementById('submenuRadio').style.display = 'none'  --->
	document.getElementById('submenuInternet').style.display = 'none'
<!---     document.getElementById('submenuTV').style.display = 'none' --->
 
    //if (selectedValue == 17) {
        //addOption(theForm.hear_about, 'More', 407)
        //addOption(theForm.hear_about, 'O Magazine', 41)
        //addOption(theForm.hear_about, 'Self', 42)
       // addOption(theForm.hear_about, 'Shape', 43)
        //addOption(theForm.hear_about, 'Women\'s Health', 402)
        //addOption(theForm.hear_about, 'Yoga Journal', 409)
       // document.getElementById('hear_about').style.display = 'block'
        //document.getElementById('submenuMagazine').style.display = 'block'
   // }
	
	// if (selectedValue == 21) {
       // addOption(theForm.hear_about, 'KBXX-FM 97.9', 950)
		//addOption(theForm.hear_about, 'KHMX-FM 96.5', 910)
		//addOption(theForm.hear_about, 'KILT-FM 100.3', 911)
		//addOption(theForm.hear_about, 'KKBQ-FM 92.9', 936)
		//addOption(theForm.hear_about, 'KKHH-FM 95.7', 951)
		//addOption(theForm.hear_about, 'KMJQ-FM 102.1', 937)
		//addOption(theForm.hear_about, 'KODA-FM 99.1', 912)
		//addOption(theForm.hear_about, 'KRBE-FM 104.1', 913)
       // addOption(theForm.hear_about, 'KTHT-FM 97.1', 938)
       // document.getElementById('hear_about').style.display = 'block'
       // document.getElementById('submenuRadio').style.display = 'block'
    //}
	
	
	// if (selectedValue == 23) {
        //addOption(theForm.hear_about, 'Bravo', 708)
        //addOption(theForm.hear_about, 'Discovery Health', 701)
       // addOption(theForm.hear_about, 'Food Network', 704)
       // addOption(theForm.hear_about, 'HGTV', 702)
       // addOption(theForm.hear_about, 'Lifetime', 705)
       // addOption(theForm.hear_about, 'Oxygen', 703)
		//addOption(theForm.hear_about, 'TLC', 709)
		//addOption(theForm.hear_about, 'USA', 710)
		//addOption(theForm.hear_about, 'WE', 706)
		//addOption(theForm.hear_about, 'KHOU 11 (CBS)', 386)
		//addOption(theForm.hear_about, 'KIAH 39 (CW)', 390)
		//addOption(theForm.hear_about, 'KPRC 2 (NBC)', 382)
		//addOption(theForm.hear_about, 'KPXB 49 (ION)', 391)
		//addOption(theForm.hear_about, 'KRIV 26 (FOX)', 387)
		//addOption(theForm.hear_about, 'KTRK 13 (ABC)', 383)
		//addOption(theForm.hear_about, 'KTXH 20 (MNT)', 384)
		
       // document.getElementById('hear_about').style.display = 'block'
       // document.getElementById('submenuTV').style.display = 'block'
   // }
    
	 if (selectedValue == 31) {
        addOption(theForm.hear_about, 'Internet Search Engine', 150)
        addOption(theForm.hear_about, 'Internet Ad', 151)
        addOption(theForm.hear_about, 'Blog', 152)
        addOption(theForm.hear_about, 'Facebook', 153)
        addOption(theForm.hear_about, 'InItToEndIt.org', 154)
        addOption(theForm.hear_about, 'Message Board', 155)
		addOption(theForm.hear_about, 'Online News Source', 156)
		addOption(theForm.hear_about, 'Twitter', 158)
        document.getElementById('submenuInternet').style.display = 'block'
        document.getElementById('hear_about').style.display = 'block'
    }
    theForm.hear_about.selectedIndex = 0;
}

function setCampaign(textValue, hiddenField) {
    var theForm = eval(document.form0);
 
    if (hiddenField.name == "utm_campaign") {
        // "How did hear about the Avon Walk" has been changed.  Reset campaign values to blank.
        theForm.utm_campaign.value = "";
        theForm.utm_medium.value = "";
    }
    
    // Set the value of the hidden
    hiddenField.value = textValue;
}
