/* *************************************************************** */
/* PAGE_SELECT
/* *************************************************************** */
    //LINK
    function selectpage(sel){
        var path = "http://www.multimic.com/c/";
        window.focus();
        if(sel) {
            window.open(path + sel.value,"_parent");
        }
    }
    
    
    function menuset() {
        
        //&#9670;メニュ作成
        var selectValue  = "";
            selectValue += '<form id="selectmenubox">';
            selectValue += '<select onChange="selectpage(this);" onFocus="this.selectedIndex=0">';
            selectValue += '<option value="index.html" id="selcat0">&#8810;产品搜索&#8811;</option>';
            
            
            selectValue += '<optgroup label="&#9670;交流传感器" id="selcat1">';
            selectValue += '<option value="sensor/ac_sensor.html" >交流传感器 一览</option>';
            selectValue += '<option value="sensor/ac1/index.html" >分离式交流电流传感器(CTF系列)/电流测试用</option>';
            selectValue += '<option value="sensor/ac2/index.html" >分离式交流低压变流器(CTS系列)/一般仪器仪表装置用</option>';
            selectValue += '<option value="sensor/ac3/index.html" >分离式交流脉冲电流传感器/脉冲电流测试用</option>';
            selectValue += '<option value="sensor/ac4/index.html" >分离式交流电流传感器(CTF-T系列)/一般仪器仪表装置用</option>';
            selectValue += '<option value="sensor/ac5/index.html" >钳形交流电流传感器(CT系列)/电流测试用</option>';
            selectValue += '<option value="sensor/ac6/index.html" >钳形交流电流传感器/功率测试用</option>';
            selectValue += '<option value="sensor/ac7/index.html" >钳形交流电流传感器/微小漏电电流测试用</option>';
            selectValue += '<option value="sensor/ac8/index.html" >钳形交流电流传感器/漏电电流测试用</option>';
            selectValue += '<option value="sensor/ac9/index.html" >钳形交流电流传感器/电压输出型</option>';
            selectValue += '<option value="sensor/ac10/index.html">高频电流测试用CT传感器/注入&#12539;检出用</option>';
            selectValue += '<option value="sensor/ac11/index.html">跑道型&#12539;贯通型ZCT传感器/贯通型电流传感器</option>';
            selectValue += '</optgroup>';
            
            
            selectValue += '<optgroup label="&#9670;直流传感器" id="selcat1">';
            selectValue += '<option value="sensor/dc_sensor.html" >直流电流传感器 一览</option>';
            selectValue += '<option value="sensor/dc1/index.html">分离式直流电流传感器(CTF-DC系列)/转换(inverter)电流测试用</option>';
            selectValue += '<option value="sensor/dc2/index.html">钳形直流电流传感器/漏电电流测试用</option>';
            selectValue += '<option value="sensor/dc3/index.html">钳形直流电流传感器/电压输出型</option>';
            selectValue += '</optgroup>';
            
            
            selectValue += '<optgroup label="&#9670;新产品介绍" id="selcat2">';
            selectValue += '<option value="newproducts/index.html">新产品介绍</option>';
            selectValue += '</optgroup>';
            
            
            selectValue += '<optgroup label="&#9670;仪器仪表" id="selcat3">';
            selectValue += '<option value="measuring/index.html"              >仪器仪表 一览</option>';
            selectValue += '<option value="measuring/measuring1/cat1_1_1.html">钳形表</option>';
            selectValue += '<option value="measuring/measuring1/cat1_2_1.html">钳形漏电电流表</option>';
            selectValue += '<option value="measuring/measuring1/cat1_3_1.html">AC/DC钳形多功能表/漏电电流表</option>';
            selectValue += '<option value="measuring/measuring1/cat1_4_1.html">高低压用钳形表/漏电电流表</option>';
            selectValue += '<option value="measuring/measuring2/cat2_1_4.html">绝缘监视/漏电监视器</option>';
            selectValue += '<option value="measuring/measuring2/cat2_2_1.html">功率表/电流监视器</option>';
            selectValue += '<option value="measuring/measuring3/cat3_1_1.html">绝缘电阻仪(兆欧表)</option>';
            selectValue += '<option value="measuring/measuring3/cat3_2_1.html">多功能表/检电笔</option>';
            selectValue += '<option value="measuring/measuring4/cat4_1_1.html">钳形接地电阻仪</option>';
            selectValue += '<option value="measuring/measuring4/cat4_2_1.html">高频监视器/测试仪</option>';
            selectValue += '<option value="measuring/measuring4/cat4_3_1.html">避雷器劣化诊断测试仪/其他CT应用测试器</option>';
            selectValue += '</optgroup>';
            
            
            selectValue += '</select>';
            selectValue += '</form>';
            
            
            document.getElementById("smspace").innerHTML = selectValue;
            
            
            
        //&#9670;メニュ背景変更
            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;";
                }
            }
    }



