var gszj_url="http://gzhd.saic.gov.cn";

        function change_tag(tag, k, n, m, content) {
            for (var i = k; i <= m; i++) {
                if (i == n) {
                    document.getElementById(content + i).className = "";
                } else {
                    document.getElementById(content + i).className = "hidecontent";
                }
                if (1 != i) {
                    if (i == n) {
                        document.getElementById(tag + i).getElementsByTagName("a")[0].className = "selectli";
                    } else {
                        document.getElementById(tag + i).getElementsByTagName("a")[0].className = "";
                    }
                }
            }
        }

      function show(name, total, s) {
        for (var i = 0; i < total; i++) {
            if (i == s) {
                document.getElementById(name + i).style.display = "block";
                document.getElementById("hot_" + i).className = "menu_td_hot"
             } else {
                document.getElementById(name + i).style.display = "none";
                document.getElementById("hot_" + i).className = "daohang_zi_black"
             }
        }
    }

    function hidden(name, total, s) {
        document.getElementById(name + s).style.display = "none";
        document.getElementById("hot_" + s).className = "daohang_zi_black"
    }

      function DisplayMp(o, other_id) {
//        document.getElementById('mp_x').innerHTML = document.body.scrollHeight + 'px';
//        document.getElementById('mp_y').innerHTML = document.body.scrollWidth + 'px';
        //        //        document.getElementById('mp_y1').innerHTML = document.body.screen + 'px';
        //        //        document.getElementById('mp_y1').innerHTML = document.body.scrollHeight + 'px';
        //        document.getElementById('mp_y1').innerHTML = window.document.body.screenTop + 'px';
        //        var poi = mousePosition(window.event);
        var windowinfo = new getmXY(window.event);
        var y = windowinfo.y + windowinfo.yScroll + 20  ;
        var x = windowinfo.x;
//        document.getElementById('mp_x').innerHTML = windowinfo.y + 'px';
//        document.getElementById('mp_y').innerHTML = windowinfo.x + 'px';
//        document.getElementById('mp_x1').innerHTML = windowinfo.winWidth + 'px';
//        document.getElementById('mp_y1').innerHTML = windowinfo.winHeight + 'px';

        var box = document.getElementById(other_id + o);
        box.style.display = "block";
        box.style.top = y + "px";
        box.style.left = x + "px";

    }
    function HiddenMp(o, other_id) {
        var box = document.getElementById(other_id + o);
        box.style.display = "none";
    }

    function mousePosition(ev) {
        if (ev.pageX || ev.pageY) {
            return {x:ev.pageX, y:ev.pageY};
        }
        return {
            //        x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,
            x:ev.clientX - document.body.scrollLeft,
            y:ev.clientY - document.body.scrollTop
            //        y:ev.clientY + document.body.scrollTop  - document.body.clientTop
        }
    }


    function getmXY(e) {//鼠标位置
        if (!document.all) {
            this.x = e.pageX;
            this.y = e.pageY;
        } else {
            this.x = document.body.scrollLeft + event.clientX;
            this.y = document.body.scrollTop + event.clientY;
        }
        ;
        //滚动高度
        if (self.pageYOffset) {
            this.yScroll = self.pageYOffset;
        } else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict
            this.yScroll = document.documentElement.scrollTop;
        } else if (document.body) {// all other Explorers
            this.yScroll = document.body.scrollTop;
        }

        //视窗尺寸
        if (self.innerHeight) { // all except Explorer
            this.winWidth = self.innerWidth;
            this.winHeight = self.innerHeight;
        } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
            this.winWidth = document.documentElement.clientWidth;
            this.winHeight = document.documentElement.clientHeight;
        } else if (document.body) { // other Explorers
            this.winWidth = document.body.clientWidth;
            this.winHeight = document.body.clientHeight;
        }
      
    }

    function getwininfo(e) {
        var windowinfo = new getmXY(e);
        window.status = "鼠标X:"
                + windowinfo.x + "鼠标Y:"
                + windowinfo.y + "窗口宽:"
                + windowinfo.winWidth + "窗口高:"
                + windowinfo.winHeight + "滚动高度:"
                + windowinfo.yScroll;
    }
  

 
        function cleantitle() {
            var titles = document.getElementsByTagName("span");
            for (var i = 0; i < titles.length; i++) {
                var title = titles[i];
                if (title.className == "titlemes") {
                    var titlecontent = title.innerHTML
                    var title1 = titlecontent.replace("<p>", "").replace("</p>", "").replace("<br>", "").replace("<P>", "").replace("</P>", "").replace("<BR>", "") ;
                    title.innerHTML = title1;
                }
                if (title.className == "titlezongjuyaowen") {
                    var titlecontent = title.innerHTML
                    var title1 = titlecontent.replace("<br>", "").replace("<BR>", "").replace("<p>", "<P>").replace("</p>", "<P>");
                    var num = title1.indexOf("</P>")
                    if (num != -1) {
                        title1 = title1.substring(0, num);
                    }
                    title1 = title1.replace("<P>", "")
                    title.innerHTML = title1;
                }
            }
        }

    
