/* ####################### 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;
}

<!------------------------ Apollo --------------------------->

function MySubjectDMA0(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Ball Valves","ball_vlv.html");
options[2]=new Option("Actuators & Controls","actu_cont.html");
options[3]=new Option("Backflow Preventers","bkcfow_preve.html");
options[4]=new Option("Butterfly Valves","butfly_vlv.html");
options[5]=new Option("Check Valves","chk_vlv.html");
options[6]=new Option("Marine","marine.html");
options[7]=new Option("Mixing Valves","mix_vlv.html");
options[8]=new Option("Pipeline Strainers","pipe_str.html");
options[9]=new Option("Plumbing & Heating","plumb_heating.html");
options[10]=new Option("Safety Relief Valves","safety_rlf_vlv.html");
options[11]=new Option("Other Apollo Products","other_app.html");

options[0].selected=true
					 
}
}

<!------------------------ Bonney Forge --------------------------->

function MySubjectDMA1(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Forged Steel Valves","bny_for_vlv.html");
options[2]=new Option("Cast Steel Valves","bny_cast_stl_vlv.html");
options[3]=new Option("Forged Steel Fittings & Unions","bny_for_stl_fit_uni.html");
options[4]=new Option("Branch Connections","bny_branch_conn.html");


options[0].selected=true
//options[1].value="intk_sf_lk.html";

}
}

<!------------------------ Delcorte & Deltinox --------------------------->

function MySubjectDMA2(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Forged Carbon Steel Fittings","delcorte_corb_steel.html");
options[2]=new Option("Forged Stainless Steel & Alloy Steel Fittings","delcorte_for_ally_stl_fit.html");
options[3]=new Option("Tubing/Casing Couplings API5CT","delcorte_tubing_cas_cou.html");
options[4]=new Option("Wrought Steel Fittings-EN 10241/Threaded Steel Fitting","delcorte_wro_stl_fit.html");
options[5]=new Option("Steel Pipe Couplings/Steel Sockets","delcorte_steel_cou_stl_soc.html");
options[6]=new Option("Barrel Nipples & Tubulars","delcorte_barrel_nip_tub.html");
options[7]=new Option("Special Pieces/Parts/Fittings","delcorte_special_pie_par_fit.html");

options[0].selected=true


}
}

<!------------------------ Parker Hannifin --------------------------->

function MySubjectDMA3(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("CCIMS","ccims.html");
options[2]=new Option("Monoflange","mono_flow.html");
options[3]=new Option("Pro-Bloc","pro_bloc_flow.html");
options[4]=new Option("Monoflange(Fe) & Pro-bloc(Fe)","mono_fle_flow.html");



options[0].selected=true


}
}


<!------------------------ Rotelmann --------------------------->
function MySubjectDMA4(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("2-way Ball Valves","r2waybv.html");
options[2]=new Option("Multi-way Ball Valves","mwbv.html");
options[3]=new Option("Ball Valve Systems","bvs.html");
options[4]=new Option("Ball Valves for Instrumentation","bvi.html");
options[5]=new Option("Valves","valves.html");
options[6]=new Option("Attachments & Accessories","aa.html");

options[0].selected=true


}
}

<!------------------------Midland-ACE --------------------------->

function MySubjectDMA5(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Pneumatic Cylinders","midland_pne_cyl.html");
options[2]=new Option("Manifold Control Valves","midland_man_con_vlv.html");
options[3]=new Option("Pneumatic Valves","midland_pne_vlv.html");
options[4]=new Option("Air Preparation","midland_air_pre.html");
options[5]=new Option("Ancillaries","midland_ancill.html");
options[6]=new Option("Sub Zero Products","midland_sub_zer_pro.html");
options[7]=new Option("Custom Products","midland_cst_pro.html");
options[8]=new Option("Hydraulic Valves","midland_hyd_vlv.html");
options[9]=new Option("Electro-Hydraulic Actuators","midland_hyd_vlv.html");

options[0].selected=true


}
}


<!------------------------ Alcon--------------------------->

function MySubjectDMA6(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("2-Way Valves","alcon_2wv.html");
options[2]=new Option("3-Way Valve","alcon_3wv.html");
options[3]=new Option("5/2 Actuation","alcon_52actuation.html");
options[4]=new Option("Gas/Fuel Valves","alcon_gasfuelv.html");
options[5]=new Option("Steam Valves","alcon_steamv.html");
options[6]=new Option("Hot Water Valves","alcon_hwv.html");
options[7]=new Option("Cryogenic Valves","alcon_cgv.html");
options[8]=new Option("Hazardous Area Valves","alcon_hav.html");
options[9]=new Option("Motorized Valves","alcon_mv.html");
options[10]=new Option("Custom Valves","alcon_cv.html");

options[0].selected=true


}
}

<!------------------------ Westlock --------------------------->

function MySubjectDMA7(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("AccuTrak™ Linear Valve Position Monitors","wst_acu_lnr_vlv.html");
options[2]=new Option("AccuTrak™ Rotary Valve Position Monitors","wst_acu_rtry_vlv.html");
options[3]=new Option("Intellis™ Network Control Monitors","wst_intl_net_ctrl.html");
options[4]=new Option("Positioners for Rotary and Linear Valves","wst_pstnr_rtry_lnr_vlv.html");
options[5]=new Option("Quantum™ Rotary Valve Position Monitors","wst_qntm_rtry_vlv.html");


options[0].selected=true


}
}

<!------------------------ ACE Valves --------------------------->

function MySubjectDMA8(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Concentric Valve","ace_cv.html");
options[2]=new Option("Double Eccentric Valve","ace_dev.html");
options[3]=new Option("High Performance Valve","ace_hpv.html");
options[4]=new Option("Single Eccentric Valve","ace_sev.html");
options[5]=new Option("Cryogenic Valve LNG/LPG","ace_cvl.html");
options[6]=new Option("Various Valve","ace_vv.html");
options[0].selected=true


}
}

<!------------------------ ACE Valves --------------------------->

function MySubjectDMA9(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Concentric Valve","ace_cv.html");
options[2]=new Option("Double Eccentric Valve","ace_dev.html");
options[3]=new Option("High Performance Valve","ace_hpv.html");
options[4]=new Option("Single Eccentric Valve","ace_sev.html");
options[5]=new Option("Cryogenic Valve LNG/LPG","ace_cvl.html");
options[6]=new Option("Various Valve","ace_vv.html");
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)  
//aMenu2.options[0].text="Parker Hannifin"
aMenu2.options[0].text="Select Product Type"
break       
case 2:  
MySubjectDMA1(aMenu2)  
//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)  
//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)  
//aMenu2.options[0].text="Tungum"
aMenu2.options[0].text="Select Product Type"
break    

case 6:  
MySubjectDMA5(aMenu2)  
//aMenu2.options[0].text="HIP"
aMenu2.options[0].text="Select Product Type"
break  

case 7:  
MySubjectDMA6(aMenu2)  
//aMenu2.options[0].text="Georgin"
aMenu2.options[0].text="Select Product Type"
break  

case 8:  
MySubjectDMA7(aMenu2)  
//aMenu2.options[0].text="Midland ACS"
aMenu2.options[0].text="Select Product Type"
break  

case 9:  
MySubjectDMA8(aMenu2)  
//aMenu2.options[0].text="Westlock"
aMenu2.options[0].text="Select Product Type"
break  

case 10:  
MySubjectDMA9(aMenu2)  
//aMenu2.options[0].text="Alcon"
aMenu2.options[0].text="Select Product Type"
break  
}
}

}


/* ####################### end of doublemenu code ####################### */
