/* ####################### start of doublemenu code ####################### */

//new Option("text","value")
//this code changes menus



function nullOptionsDMA(aMenu){
var tot=aMenu.options.length
for (i=0;i<tot;i++)
{
aMenu.options[i]=null
}
aMenu.options.length=0;
}

<!------------------------ racor --------------------------->

function MySubjectDMA0(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");

options[0].selected=true
					 
}
}

<!------------------------ Filtration and Gas generation products --------------------------->

function MySubjectDMA1(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");

options[0].selected=true
//options[1].value="intk_sf_lk.html";

}
}

<!------------------------ Compressed Air and Gas Filtration Products --------------------------->

function MySubjectDMA2(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");

options[0].selected=true


}
}

<!------------------------ Compressed Air and Gas Filtration -Zander --------------------------->

function MySubjectDMA3(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Filtration Technology","znd_ft.html");
options[2]=new Option("Drying Technology","znd_dt_1.html");
options[3]=new Option("Drying Technology","znd_dt_2.html");
options[4]=new Option("Drying Technology","znd_dt_3.html");
options[5]=new Option("Condensate Management","znd_cm.html");

options[0].selected=true


}
}


<!------------------------ Hydraulic Filtration --------------------------->
function MySubjectDMA4(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");

options[0].selected=true


}
}

<!------------------------Fluid Conditioning Monetering Products--------------------------->

function MySubjectDMA5(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");

options[0].selected=true


}
}


<!------------------------ Offline Portable Filters --------------------------->

function MySubjectDMA6(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");

options[0].selected=true


}
}

<!------------------------ Process Fluid Filteration --------------------------->

function MySubjectDMA7(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");

options[0].selected=true


}
}

/* ####################### goDM() ####################### */

function goDMA(aMenu){
if (aMenu.options.value!="none")
{
location=aMenu.options[aMenu.selectedIndex].value
} 

}

/* ####################### setUp ####################### */

function setUpDMA(){
with (document.formDoubleMenuDMA) {
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)
if (menuSubjectsDMA.selectedIndex==8)
MySubjectDMA7(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==9)
MySubjectDMA8(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==10)
MySubjectDMA9(menuFilesDMA)
}
}

/* ####################### changeFiles ####################### */

function changeFilesDMA(){
aMenu=document.formDoubleMenuDMA.menuSubjectsDMA
aMenu2=document.formDoubleMenuDMA.menuFilesDMA
with  (aMenu){

switch (selectedIndex) {
case 0:
aMenu2.options.length=0;
aMenu2.options[0]=
new Option("Pages appear here","none")
aMenu2.options[0].selected=true;
history.go(0)
break    
case 1:  
MySubjectDMA0(aMenu2)  
window.location.href="racor.html";
//aMenu2.options[0].text="Parker Hannifin"
//aMenu2.options[0].text="Select Product Type"
break       
case 2:  
MySubjectDMA1(aMenu2)  
window.location.href="fggpb.html";
//aMenu2.options[0].text="Intertek"
//aMenu2.options[0].text="Select Product Type"
//aMenu2.options[1].text="Safe Link","intk_sf_lk.html"
//aMenu2.options[1]=("Safe Link","intk_sf_lk.html");
break       
case 3:  
MySubjectDMA2(aMenu2)  
window.location.href="finite.html";
//aMenu2.options[0].text="Sandvik"
//aMenu2.options[0].text="Select Product Type"
break       
case 4:  
MySubjectDMA3(aMenu2)  
//aMenu2.options[0].text="Nuova Fima"
aMenu2.options[0].text="Select Product Type"
break       
case 5:  
MySubjectDMA4(aMenu2)  
window.location.href="ucc.html";
//aMenu2.options[0].text="Tungum"
//aMenu2.options[0].text="Select Product Type"
break    

case 6:  
MySubjectDMA5(aMenu2)  
window.location.href="fluid_cmp.html";
//aMenu2.options[0].text="HIP"
//aMenu2.options[0].text="Select Product Type"
break  

case 7:  
MySubjectDMA6(aMenu2)  
window.location.href="offline_pf.html";
//aMenu2.options[0].text="Georgin"
//aMenu2.options[0].text="Select Product Type"
break  

case 8:  
MySubjectDMA7(aMenu2)  
window.location.href="process_ff.html";
//aMenu2.options[0].text="Midland ACS"
//aMenu2.options[0].text="Select Product Type"
break  


}
}

}


/* ####################### end of doublemenu code ####################### */
