/* ####################### 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;
}

<!------------------------ Parker --------------------------->

function MySubjectDMA0(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Fittings","fittings.html");
options[2]=new Option("Ball & Plug Valves","ball_plug.html");
options[3]=new Option("Check Valves","chk_vlv.html");
options[4]=new Option("Filter Valves","filter_vlv.html");
options[5]=new Option("Relief Valves","relife_vlv.html");
options[6]=new Option("Bleed & Purge Valves","bleed.html");
options[7]=new Option("Metering Valves","mtr_vlv.html");
options[8]=new Option("Needle Valves","needle_vlv.html ");
options[9]=new Option("Manifold Valves","manifold_vlv.html");
options[10]=new Option("Diaphragm Valves","dpgm_vlv.html");
options[11]=new Option("Pressure Regulators","pre_reg.html");
options[12]=new Option("Back Pressure Regulators","bk_pre_reg.html");
options[13]=new Option("Vaporizing Regulators","vap_reg.html");
options[14]=new Option("Flow Controller","flw_cor.html");
options[15]=new Option("PFA / PTFE Products","p_p_products.html");
options[16]=new Option("Analytical Systems","ana_sys.html");
options[17]=new Option("Hose/Tubing/Quick Couplings","hose_cou.html");
options[18]=new Option("Tools & Accessories","tool_acc.html");
options[19]=new Option("Solenoid Valves","solenoid_vlv.html");
options[20]=new Option("Pnematics","pneumatics.html");

options[0].selected=true
					 
}
}

<!------------------------ Intertek --------------------------->

function MySubjectDMA1(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Safe Link","intk_sf_lk.html");
options[2]=new Option("Enclosures","intk_enclor.html");
options[3]=new Option("Protective Shades","intk_pro_sha.html");
options[4]=new Option("Shelters","intk_shelters.html");
options[5]=new Option("Heating Systems","intk_hea_sys.html");

options[0].selected=true
//options[1].value="intk_sf_lk.html";

}
}

<!------------------------ Sandvik --------------------------->

function MySubjectDMA2(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Instrumentation Tubing’s","snd_inst_tube.html");
options[2]=new Option("Hydraulic Tubing’s","snd_hlc_tube.html");
options[3]=new Option("Standards for Testing","snd_std_tube.html");
options[4]=new Option("Grades and Properties ","snd_gra_pro_tube.html");

options[0].selected=true


}
}

<!------------------------ Nuova Fima --------------------------->

function MySubjectDMA3(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Bourdon Tube Pressure Gauges","nova_bour_psre_gages.html");
options[2]=new Option("Differential & Low Pressure Gauges","nova_diff_low_gages.html");
options[3]=new Option("Pressure Switches","nova_press_swich.html");
options[4]=new Option("Diaphragm Seals","nova_dpgm_seal.html");
options[5]=new Option("Components & Accessories","nova_comp_acce.html");
options[6]=new Option("Thermometer","nova_themeter.html");
options[7]=new Option("Calibration Equipments","nova_cal_equi.html");
options[8]=new Option("Electronic Pressure Transmitters","nova_elect_pre_tran.html");
options[9]=new Option("Thermowells","#");


options[0].selected=true


}
}


<!------------------------ Tungum --------------------------->
function MySubjectDMA4(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Tungum Alloy Tube","tun_alloy_tube.html");
options[2]=new Option("PG Series Fittings","tun_pg_ser_fit.html");
options[3]=new Option("Pipe Bending","tun_pipe_bent.html");
options[4]=new Option("Equipment Sourcing","tune_qui_sour.html");

options[0].selected=true


}
}

<!------------------------ HIP --------------------------->

function MySubjectDMA5(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Valves, Fittings & Tubing’s","hip_val_fit_tub.html");
options[2]=new Option("Reactors & Pressure Vessels","hip_reg_seal_ser.html");
options[3]=new Option("Pumps, Intensifiers & Gas Boosters","hip_pump_inte_gsa_bot.html");
options[4]=new Option("Oil & Gas Products","hip_oil_gas_pro.html");
options[0].selected=true


}
}


<!------------------------ Georgin --------------------------->

function MySubjectDMA6(aMenu){
nullOptionsDMA(aMenu)

with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select a page","none");
options[1]=new Option("Pressure Switches","georgin_pre_swi.html");
options[2]=new Option("Temperature Switches","georgin_temp_swi.htm");
options[3]=new Option("Pressure Gauges, Thermometers","georgin_guges_ther.html");
options[4]=new Option("Accessories","georgin_acces.html");
options[5]=new Option("I.S. Interfaces","georgin_i_s_inters.html");
options[6]=new Option("Signalization","georgin_signalization.html");
options[7]=new Option("Fieldbus","georgin_fieldbus.html");
options[8]=new Option("Signal Conditioners","georgin_signal_condt.html");
options[9]=new Option("Moderator","georgin_mod.html");
options[0].selected=true

}
}

<!------------------------ Midland ACS --------------------------->

function MySubjectDMA7(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_ele_hyd_act.html");

options[0].selected=true

}
}

<!------------------------ Westlock --------------------------->

function MySubjectDMA8(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_intl_net_ctrl.html");
options[5]=new Option("Quantum™ Rotary Valve Position Monitors","wst_qntm_rtry_vlv.html");
//options[6]=new Option("Solenoid Configurations , Sensors","#");

options[0].selected=true


}
}



function MySubjectDMA9(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 Valves","alcon_3wv.html");
options[3]=new Option("5/2 Actuation","alcon_52actuation.htm");
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


}
}
/* ####################### 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 ####################### */
