﻿// JScript 文件
        function NewTablePage(link)
        {
            var iframe=document.getElementById("showTable");
            
            var newPage=link.getAttribute("aim");
            
            iframe.src=newPage;
           
            
        }
        function Expand(Div)
        {
            //alert('执行了::'+Div.childurl);
            
            var childDivId=Div.getAttribute("childurl");  //参数childurl为Div中的一个属性，保存着子div的id
            
            var nextdiv=document.getElementById(childDivId);
            
            if(nextdiv.style.display=="none")
                nextdiv.style.display="block";
            else
                nextdiv.style.display="none";
        }

       function NewPage(link)
        {        
             
              var iframe=document.getElementById("showTable");
              iframe.src=link.aim+"&&head=Tb_Product_Year_Count_tybt&&str=p_date$a06_1$a06_2$a20_1$a20_2$a04_1$a04_2&&table=T_Indu_Month_0702";
        }
        
        
        function ShowPage(link)
        {
              var iframe=document.getElementById("showTable");
              iframe.src=link.aim;
              //alert(link.aim);

        }
        var i=1;   //记录是不同的ID
        function AddChild(Div)
        {            
            var nextdiv=document.getElementById(Div.childurl);
            nextdiv.innerHTML="";
            var B07=Div.aim;
            var addChild=document.createElement("DIV");
            addChild.id="forIndustry";
            nextdiv.appendChild(addChild);
            var str="<a href='#' childurl='hysj"+i+"' onclick='Expand(this)' >工业行业数据</a>"
                    +"<div id='hysj"+i+"' style='margin-left:15px; margin-top:10px;display:none'><a href='#' aim='../Industry/工业数据2.aspx?head=Tb_Product_Year_Count_jbqk&&str=p_date$adw_1$akd_1$aks_1$psakszj$bmdm$a99_1$a99_2$psa99zj&&industry="+B07+"'onclick='ShowPage(this)'>基本情况</a><br/>"
                    +"<a href='#' aim='../Industry/工业数据2.aspx?head=Tb_Product_Year_Count_zcfz&&str=p_date$a06_1$a06_2$psa06zj$a17_1$a17_2$psa17zj$a99_1$a99_2$psa99zj$a20_1$a20_2$psa20zj&&industry="+B07+"'onclick='ShowPage(this)'>资产负债</a><br/>"
                    +"<a href='#' aim='../Industry/工业数据2.aspx?head=Tb_Product_Year_Count_sy&&str=p_date$a29_1$a29_2$psa29zj$a31_1$a31_2$psa31zj$a32_1$a32_2$psa32zj$a48_1$a48_2$psa48zj&&industry="+B07+"'onclick='ShowPage(this)'>损益</a><br/>"
                    +"<a href='#' aim='../Industry/工业数据2.aspx?head=TB_PRODUCT_YEAR_hycbgc&&str=p_date$zcb$a31_1$a40_1$a44_1$a48_1&&sql=5&&industry="+B07+"'onclick='ShowPage(this)'>行业成本构成</a></br>"
                    +"<a href='#' aim='../Industry/工业数据2.aspx?head=Tb_Product_Year_Count_jjxyzb&&str=p_date$p1$p1s$p2$p2s$p5$p5s$p7$p7s&&industry="+B07+"'onclick='ShowPage(this)'>经济效益指标</a><br/></div>"
                    +"<br/><a href='#' childurl='sdfx"+i+"' onclick='Expand(this)' >工业行业深度分析</a>"
                    +"<div id='sdfx"+i+"' style='margin-left:15px; margin-top:10px;display:none'><a href='#' aim='../Industry/工业数据2.aspx?head=TB_PRODUCT_YEAR_ylfx&&str=p_date$ylnlfx$xslrl$zclrl$zblru&&sql=1&&industry="+B07+"'onclick='ShowPage(this)'>盈利能力分析</a><br/>"
                    +"<a href='#' aim='../Industry/工业数据2.aspx?head=TB_PRODUCT_YEAR_fznlfx&&str=p_date$zhzzl$yszkzzl$ldzczzl$kdzczzl&&sql=2&&industry="+B07+"'onclick='ShowPage(this)'>经济发展能力分析</a><br/>"
                    +"<a href='#' aim='../Industry/工业数据2.aspx?head=TB_PRODUCT_YEAR_cznlfx&&str=p_date$ldbl$sdbl$gdqyb$ldfzl&&sql=3&&industry="+B07+"'onclick='ShowPage(this)'>偿债能力分析</a></div>"
                    +"<br/><a href='#' childurl='gycp"+i+"' onclick='Expand(this)' >工业产品</a>"
                    +"<div id='gycp"+i+"' style='margin-left:15px; margin-top:10px;display:none'>"
//                    +"<a href='#' aim='../Industry/工业数据2.aspx?head=Tb_Product_Year_Count_ByType&&str=yearmon$productname$dw$cc$cd$ce$cf$year_ratio$month_ratio&&table=Tb_product_year_count_bytype&&industry="+B07+"'onclick='ShowPage(this)'>产品统计</a><br/>"
                    +"<a href='#' aim='../Industry/工业数据2.aspx?head=Tb_Product_Year_Count_ByType&&str=yearmon$productname$dw$cc$cd$ce$cf&&table=Tb_product_year_count_bytype&&industry="+B07+"'onclick='ShowPage(this)'>产品统计</a><br/>"
                    //暂时屏蔽产品排名
//                    +"<a href='#' aim='../Industry/工业数据2.aspx?head=TB_PRODUCT_YEAR_SORT&&str=yearmon$productname$comname$z6$z10$cc$cd$ce$cf$year_ratio$month_ratio&&table=tb_product_year_sort&&industry="+B07+"'onclick='ShowPage(this)'> 产品排名</a><br/>"
//                    +"<a href='#' aim='../Industry/工业数据2.aspx?head=Tb_Product_Year_Count_cpjg&&str=yearmon$productname$dw$exp$price$month_ratio$year_ratio&&table=tb_indupro_priexp_month&&sql=4&&industry="+B07+"'onclick='ShowPage(this)'>产品价格</a><br/>"
                      +"<a href='#' aim='../Industry/工业数据2.aspx?head=Tb_Product_Year_Count_cpjg&&str=yearmon$productname$dw$exp$price&&table=tb_indupro_priexp_month&&sql=4&&industry="+B07+"'onclick='ShowPage(this)'>产品价格</a><br/>"
                    
//                  +"<a href='#' aim='../Industry/工业数据2.aspx?head=TB_PRODUCT_YEAR_hycbgc&&str=p_date$zcb$a31_1$a31_1$a40_1$a44_1$a48_1&&sql=5&&industry="+B07+"'onclick='ShowPage(this)'>行业成本构成</a></div>"
                   
                    +"<br><a href='#' childurl='gyqy"+i+"' onclick='Expand(this)' >工业企业</a>"
                    //暂时屏蔽企业名录数据和企业排名
                     +"<div id='gyqy"+i+"' style='margin-left:15px; margin-top:10px;display:none'>"
                     +"<a href='#' aim='../Industry/工业数据2.aspx?head=TB_PRODUCT_YEAR_qyjjyxsj&&str=yearmon$cb$cx$xc$xcx$cj$zg$gz$lz$zk$ch$cp$lp$ct$gz$gy$jy$lj$bj&&table=TB_QYCW_YEAR_COUNT_BYTYPE&&sql=0&&industry="+B07+"'onclick='ShowPage(this)'>企业经济运行数据</a><br/></div>";
                     
                    
//                    +"<div id='gyqy"+i+"' style='margin-left:15px; margin-top:10px;display:none'><a href='#' aim='../Industry/工业数据2.aspx?head=TB_PRODUCT_YEAR_qymlsj&&str=开业时间年$法人单位$法人单位$单位地址$电话1$传真1$行业代码$主要产品1$企业规模&&table=tb_cominfo&&sql=6&&industry="+B07+"'onclick='ShowPage(this)'>企业名录数据</a><br/>"
//                    +"<a href='#' aim='../Industry/工业数据2.aspx?head=TB_PRODUCT_YEAR_qyjjyxsj&&str=yearmon$cb$cx$xc$xcx$cj$zg$gz$lz$zk$ch$cp$lp$ct$gz$gy$jy$lj$bj&&table=TB_QYCW_YEAR_COUNT_BYTYPE&&sql=0&&industry="+B07+"'onclick='ShowPage(this)'>企业经济运行数据</a><br/>"
//                    +"<a href='#' aim='../Industry/工业数据2.aspx?head=Tb_Product_Year_Count_qypm&&str=yearmon$comname$qygm$cyrs$gyzj$ldzc$ysje$gdzc&&table=TB_QYCW_YEAR_SORT&&sql=9&&industry="+B07+"'onclick='ShowPage(this)'>企业排名</a></div>";
            addChild.innerHTML=str;    
            if(nextdiv.style.display=="none")
                nextdiv.style.display="block";
            else
                nextdiv.style.display="none";
            i++;
        }
        
   //显示/隐藏Menu     
        function displaySubMenu(li) {
            var subMenu = li.getElementsByTagName("ul")[0];
            subMenu.style.display = "block";
        }
        function hideSubMenu(li) {
            var subMenu = li.getElementsByTagName("ul")[0];
            subMenu.style.display = "none";
        }

    function navigateIframe(Div)
    {        
        var iframe=document.getElementById("showTable");
        var strNavigation=Div.getAttribute("navigation");
        iframe.src=strNavigation;
    }
    
    
    /**************IndustryData.aspx*************/
 
    //显示,隐藏菜单;strDiv为要显示隐藏的DIV的id
function DisplayMenu(strDiv)
{    
    var menu=document.getElementById(strDiv);    
    if(menu.style.display=='none'||menu.style.display==null||menu.style.display=='')
    {        
        menu.style.display='block';
    }
}
function HiddenMenu(strDiv)
{       
    var menu=document.getElementById(strDiv); 
    menu.style.display='none';   
} 
    /**************IndustryData.aspx end*************/
    