//new Option("text","value")
//this code changes menus

var webFieldEnterKey='false';
var acctFieldEnterKey='false';

function whichJumpMenu(){
	if(secondMenu.style.visibility=="visible") {	
	document.contactForm.menuFilesDMA.focus();
	}
	else {	
	document.contactForm.selContactMethod.focus();
	}
}


function nullOptionsDMA(aMenu){
var tot=aMenu.options.length
for (i=0;i<tot;i++)
{
aMenu.options[i]=null
}
aMenu.options.length=0;
}

function MySubjectDMA0(aMenu){
nullOptionsDMA(aMenu)
secondMenu.style.visibility='visible';

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select One...","");
options[1]=new Option("Google","Search Engine - Google");
options[2]=new Option("Yahoo","Search Engine - Yahoo");
options[3]=new Option("MSN","Search Engine - MSN");
options[4]=new Option("Ask.com","Search Engine - Ask.com");
options[5]=new Option("AOL Search","Search Engine - AOL Search");
options[6]=new Option("Alltheweb.com","Search Engine - Alltheweb.com");
options[7]=new Option("Gigablast","Search Engine - Gigablast");
options[8]=new Option("Netscape Search","Search Engine - Netscape Search");
options[9]=new Option("Snap.com","Search Engine - Snap.com");
options[10]=new Option("Other","Search Engine - Other");
options[0].selected=true
}
}

function MySubjectDMA1(aMenu){
nullOptionsDMA(aMenu)
secondMenu.style.visibility='visible';

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select One...","");
options[1]=new Option("Aqua Magazine","Magazine - Aqua Magazine");
options[2]=new Option("Splash Magazine","Magazine - Splash Magazine");
options[3]=new Option("Pool & Spa News","Magazine - Pool & Spa News");
options[4]=new Option("Service Industry News","Magazine - Service Industry News");
options[5]=new Option("Pool & Spa Marketing","Magazine - Pool & Spa Marketing");
options[6]=new Option("APSP Quarterly","Magazine - APSP Quarterly");
options[7]=new Option("Spa Retailer","Magazine - Spa Retailer");
options[8]=new Option("The Edge","Magazine - The Edge");
options[9]=new Option("Water Garden News","Magazine - Water Garden News");
options[10]=new Option("Lawn & Garden Retailer","Magazine - Lawn & Garden Retailer");
options[11]=new Option("Pond & Garden Retailer","Magazine - Pond & Garden Retailer");
options[12]=new Option("Hearth & Home","Magazine - Hearth & Home");
options[13]=new Option("Patio & Hearth Products Report","Magazine - Patio & Hearth Products Report");
options[14]=new Option("Pet product News","Magazine - Pet product News");
options[15]=new Option("Billiard Retailer ","Magazine - Billiard Retailer");
options[16]=new Option("Other","Magazine - Other");
options[0].selected=true
}
}

function MySubjectDMA2(aMenu){
nullOptionsDMA(aMenu)
secondMenu.style.visibility='visible';

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select One...","");
options[1]=new Option("Pondemonium","Trade Show - Pondemonium");
options[2]=new Option("Pondapalooza","Trade Show - Pondapalooza");
options[3]=new Option("International Pool Spa Patio Expo","Trade Show - Internationial Pool Spa Patio Expo");
options[4]=new Option("Canadian Pool & Spa Conference & Expo","Trade Show - Canadian Pool & Spa Conference & Expo");
options[5]=new Option("Aquatech Society Conference","Trade Show - Aquatech Society Conference");
options[6]=new Option("Atlantic City Pool & Spa Show","Trade Show - Atlantic City Pool & Spa Show");
options[7]=new Option("Hearth, Patio & Barbecue Expo","Trade Show - Hearth, Patio & Barbecue Expo");
options[8]=new Option("Other","Trade Show - Other");
options[0].selected=true
}
}

function MySubjectDMA3(aMenu){
nullOptionsDMA(aMenu)
secondMenu.style.visibility='visible';

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select One...","");
options[1]=new Option("DollarDays.com","Website - DollarDays.com");
options[2]=new Option("Other","Website - Other");
options[0].selected=true


}
}
function MySubjectDMA4(aMenu){
nullOptionsDMA(aMenu)
secondMenu.style.visibility='hidden';

with (aMenu){

//Rewrites the text and values
options[0]=new Option("","");
options[0].selected=true


}
}

function MySubjectDMA5(aMenu){
nullOptionsDMA(aMenu)
secondMenu.style.visibility='hidden';

with (aMenu){

//Rewrites the text and values
options[0]=new Option("","");
options[0].selected=true


}
}
function MySubjectDMA6(aMenu){
nullOptionsDMA(aMenu)
secondMenu.style.visibility='hidden';


with (aMenu){

//Rewrites the text and values
options[0]=new Option("","");
options[0].selected=true


}
}

/* ####################### goDM() ####################### */

function goDMA(aMenu){
if (aMenu.options.value!="none")
{
location=aMenu.options[aMenu.selectedIndex].value
} 

}

/* ####################### setUp ####################### */

function setUpDMA(){
with (document.contactForm) {
if (menuSubjectsDMA.selectedIndex==0){
menuSubjectsDMA.options[0].selected=true
menuFilesDMA.options[0].selected=true
}

if (menuSubjectsDMA.selectedIndex==1)
MySubjectDMA0(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==2)
MySubjectDMA1(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==3)
MySubjectDMA2(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==4)
MySubjectDMA3(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==5)
MySubjectDMA4(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==6)
MySubjectDMA5(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==7)
MySubjectDMA6(menuFilesDMA)

}
}

/* ####################### changeFiles ####################### */

function changeFilesDMA(){
aMenu=document.contactForm.menuSubjectsDMA
aMenu2=document.contactForm.menuFilesDMA
with  (aMenu){

switch (selectedIndex) {
case 0:
aMenu2.options.length=0;
aMenu2.options[0]=
new Option("","")
aMenu2.options[0].selected=true;
history.go(0)
break    
case 1:  
MySubjectDMA0(aMenu2)  
aMenu2.options[0].text="Select One..."
break       
case 2:  
MySubjectDMA1(aMenu2)  
aMenu2.options[0].text="Select One..."
break       
case 3:  
MySubjectDMA2(aMenu2)  
aMenu2.options[0].text="Select One..."
break       
case 4:  
MySubjectDMA3(aMenu2)  
aMenu2.options[0].text="Select One..."
break       
case 5:  
MySubjectDMA4(aMenu2)  
aMenu2.options[0].text=""
break       
case 6:  
MySubjectDMA5(aMenu2)  
aMenu2.options[0].text=""
break       
case 7:  
MySubjectDMA6(aMenu2)  
aMenu2.options[0].text=""

}
}

}