/* ####################### 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;
}

<!------------------------Elora--------------------------->

function MySubjectDMA0(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Storage Units, Tools Assortments","ela_suta.html");
options[2]=new Option("Spanners & Wrenches","ela_sw.html");
options[3]=new Option("Sockets, Socket Parts & Spanner Sets","ela_sspss.html");
options[4]=new Option("Impact Tools & Impact Bits","ela_itib.html");
options[5]=new Option("Torque Tools & Testers","ela_ttt.html");
options[6]=new Option("Hex Keys & Screwdrivers","ela_hks.html");
options[7]=new Option("Fine Mechanic, Electrician & VDE Tools","ela_fmevt.html");
options[8]=new Option("Pliers, Bolt Cutters Snip & Shears","ela_pbcss.html");
options[9]=new Option("Hammers, Chisels, Punches, Vices, Marking Tools","ela_hcpvmt.html");
options[10]=new Option("Grip Pliers, Pipe Wrenches & Plumber Tools","ela_gppwpt.html");
options[11]=new Option("Measuring Tools","ela_mt.html");
options[12]=new Option("Automotive Tools & Pullers","ela_atp.html");
options[13]=new Option("Scraper, Files, Saws, Brushes, Miscellaneous","ela_sfsbm.html");

options[0].selected=true
					 
}
}

<!------------------------ Tractel --------------------------->

function MySubjectDMA1(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Tirfor-Griphoist–Greifzug","trctl_tgg.html");
options[2]=new Option("Lifting and Handling","trctl_tgg.html");
options[3]=new Option("Dynamometers-Crane scales-Load Limiting Devices-Tensiometers","trctl_dcslldt.html");
options[4]=new Option("Tractel Lifting & Handling","trctl_tlh.html");
options[5]=new Option("Tractel Lifting Accessories","trctl_tla.html");


options[0].selected=true
//options[1].value="intk_sf_lk.html";

}
}

<!------------------------ Holmatro --------------------------->

function MySubjectDMA2(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Hydraulic Cylinders","hlmt_hc.html");
options[2]=new Option("Hydraulic Hand Tools","hlmt_hht.html");
options[3]=new Option("Hydraulic Pumps","hlmt_hp.html");
options[4]=new Option("System Components","hlmt_sc.html");
options[5]=new Option("Stud Tension Cylinders","hlmt_stc.html");
options[6]=new Option("Propeller Sets","hlmt_ps.html");
options[7]=new Option("Mechanical Tools","hlmt_mt.html");
options[8]=new Option("Pneumatic Tools","hlmt_pt.html");
options[9]=new Option("Hydraulic Cutters","hlmt_hc1.html");
options[10]=new Option("Electric / Hydraulic cutters","hlmt_ehc.html");
options[11]=new Option("Hydraulic Foundry wedges","hlmt_hfw.html");

options[0].selected=true


}
}

<!------------------------ Parker--------------------------->

function MySubjectDMA3(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Parker","parker.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


}
}


<!------------------------ Pneutrend --------------------------->
function MySubjectDMA4(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Lifting bags (8 bars)","pne_a_lf.html");
options[2]=new Option("Air Hammer","pne_ar_hmr.html");
options[3]=new Option("Air Impact Wrench","pne_aiw.html");
options[4]=new Option("Air Ratchet Wrench","pne_arw.html");
options[5]=new Option("Air Needle Scaler","pne_ans.html");
options[6]=new Option("Air Spray Gun","pne_asg.html");
options[7]=new Option("Air Tools Lubrication","pne_atl.html");
options[8]=new Option("Air Auto Service Tools","pne_aast.html");
options[9]=new Option("Air Drill","pne_ad.html");
options[10]=new Option("Air Riveter","pne_ar.html");
options[11]=new Option("Air Nailer","pne_an.html");
options[12]=new Option("Air Riveter","pne_ar1.html");
options[13]=new Option("Air Scraper","pne_as.html");
options[14]=new Option("Air Hose","pne_a_hose.html");
options[15]=new Option("Air Polisher","pne_a_polisher.html");
options[16]=new Option("Air Sander","pne_a_sander.html");
options[17]=new Option("Air Screwdriver","pne_a_screwdriver.html");
options[18]=new Option("Air Tool Kits","pne_a_tool_kits.html");

options[0].selected=true


}
}

<!------------------------Bonezzi --------------------------->

function MySubjectDMA5(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Bonezzi","bonezzi.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


}
}


<!------------------------ Sykes Pickavant --------------------------->

function MySubjectDMA6(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Sykes Pickavant ","sykes_pickavant.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"
window.location.href="parker.html";
break       
case 5:  
MySubjectDMA4(aMenu2)  
//aMenu2.options[0].text="Nuova Fima"
//aMenu2.options[0].text="Select Product Type"
//window.location.href="pne_a_lf.html";
aMenu2.options[0].text="Select Product Type"
break    

case 6:  
MySubjectDMA5(aMenu2)  
//aMenu2.options[0].text="Nuova Fima"
//aMenu2.options[0].text="Select Product Type"
window.location.href="bonezzi.html";
break  

case 7:  
MySubjectDMA6(aMenu2)  
//aMenu2.options[0].text="Nuova Fima"
//aMenu2.options[0].text="Select Product Type"
window.location.href="sykes_pickavant.html";
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 ####################### */
