/* *************************************************************** */
/* PAGE_SELECT
/* *************************************************************** */
    //LINK
    function selectpage(sel){
        var path = "http://www.multimic.com/e/";
        window.focus();
        if(sel) {
            window.open(path + sel.value,"_parent");
        }
    }
    
    
    function menuset() {
        
        //MENU
        var selectValue  = "";
            selectValue += '<form id="selectmenubox">';
            selectValue += '<select onChange="selectpage(this);" onFocus="this.selectedIndex=0">';
            selectValue += '<option value="index.html" id="selcat0">&#8810;Products Search&#8811;</option>';
            
            
            selectValue += '<optgroup label="AC Current Sensor" id="selcat1">';
            selectValue += '<option value="sensor/ac_sensor.html" >List of AC Current sensor</option>';
            selectValue += '<option value="sensor/ac1/index.html" >Sprit type AC current sensor /For AC current measurements(CTF Series)</option>';
            selectValue += '<option value="sensor/ac2/index.html" >Sprit type and low V/A type AC current transformer /For metering(CTS Series)</option>';
            selectValue += '<option value="sensor/ac3/index.html" >Sprit type AC current pulse sensor/For pulse current measurements</option>';
            selectValue += '<option value="sensor/ac4/index.html" >Sprit and low V/A type AC current sensor /For metering(CTF-T Series)</option>';
            selectValue += '<option value="sensor/ac5/index.html" >Clamp type AC current sensor/ For load current measurements(CT Series)</option>';
            selectValue += '<option value="sensor/ac6/index.html" >Clamp type AC Current sensor/For power monitor</option>';
            selectValue += '<option value="sensor/ac7/index.html" >Clamp type AC current sensor/ For leakage current measurements(ZCT Series)</option>';
            selectValue += '<option value="sensor/ac8/index.html" >Clamp type AC current sensor/For low leakage current measurements(ZCT Series)</option>';
            selectValue += '<option value="sensor/ac9/index.html" >Clamp type AC current sensor/ With voltage output</option>';
            selectValue += '<option value="sensor/ac11/index.html">Track (Oval)type ZCT,Through hole type ZCT and Current sensor</option>';
            selectValue += '</optgroup>';
            
            
            selectValue += '<optgroup label="DC Current Sensor" id="selcat1">';
            selectValue += '<option value="sensor/dc_sensor.html" >List of DC Current Sensor</option>';
            selectValue += '<option value="sensor/dc1/index.html">Sprit type DC/AC current sensor /For PWM or inverter current(CTF-DC Series)</option>';
            selectValue += '<option value="sensor/dc2/index.html">Clamp type DC current sensor/For DC leakage current measurements</option>';
            selectValue += '<option value="sensor/dc3/index.html">Clamp type DC current sensor/ With voltage output</option>';
            selectValue += '<option value="sensor/dc4/index.html">Through hole type DC current sensor/For DC leakage current measurements</option>';
            selectValue += '</optgroup>';
            
            
            selectValue += '<optgroup label="New Products" id="selcat2">';
            selectValue += '<option value="newproducts/index.html">New Products</option>';
            selectValue += '</optgroup>';
            
            
            selectValue += '<optgroup label="MEASURING INSTRUMENTS" id="selcat3">';
            selectValue += '<option value="measuring/index.html"              >List of MEASURING INSTRUMENTS</option>';
            selectValue += '<option value="measuring/measuring1/cat1_1_1.html">AC clamp tester</option>';
            selectValue += '<option value="measuring/measuring1/cat1_2_17.html">AC clamp leaker</option>';
            selectValue += '<option value="measuring/measuring1/cat1_3_1.html">AC/DC clamp tester/leaker</option>';
            selectValue += '<option value="measuring/measuring1/cat1_4_1.html">AC high insulation clamp tester</option>';
            selectValue += '<option value="measuring/measuring2/cat2_1_1.html">Digital arrester tester</option>';
            selectValue += '<option value="measuring/measuring2/cat2_2_1.html">Digital harmonics tester</option>';
            selectValue += '<option value="measuring/measuring3/cat3_1_1.html">Earth resistance clamp tester</option>';
            selectValue += '<option value="measuring/measuring3/cat3_2_1.html">Power recorder</option>';
            selectValue += '<option value="measuring/measuring4/cat4_1_1.html">Insulation resistance tester</option>';
            selectValue += '<option value="measuring/measuring4/cat4_2_1.html">Digital multimeter</option>';
            selectValue += '<option value="measuring/measuring4/cat4_3_1.html">Voltage detector</option>';
            selectValue += '</optgroup>';
            
            
            selectValue += '</select>';
            selectValue += '</form>';
            
            
            document.getElementById("smspace").innerHTML = selectValue;
            
            
            
        //MENU BG
            var pageLength = document.getElementById("selectmenubox").elements[0].length;
            for(i=0; i<pageLength; i++) {
                var b = i%2;
                if (b == 0) {
                    document.getElementById("selectmenubox").elements[0][i].setAttribute('style','background-color:#ffffee');
                    document.getElementById("selectmenubox").elements[0][i].style.cssText = "background-color:#ffffee;";
                }else{
                    document.getElementById("selectmenubox").elements[0][i].setAttribute('style','background-color:#ffffff');
                    document.getElementById("selectmenubox").elements[0][i].style.cssText = "background-color:#ffffff;";
                }
            }
    }



