function header(id,sid,url){
     var topMenu = ["网站设置及广告","分类管理","订单管理","会员管理","产品管理","新闻及留言","内部人事","财务管理"];
     var topMenuImg = ["8.gif","1.gif","2.gif","3.gif","4.gif","5.gif","6.gif","8.gif"];
     var topMenuUrl = ["../storeConfig/BaseConfig.aspx","../storeConfig/FriLinks.aspx","../produce/ProduceLeibie.aspx","../member/UserList.aspx","http://www.lbmall.cn","../message/ArticleList.aspx","http://www.lbmall.cn"];
     var secontMenu1 = ["首页广告","首页头部","其他页头部","关于我们","联系我们","我们的保证","付款方式","国家列表"] ;
     var secondMenuUrl1 = ["BaseConfig.aspx","FriLinks.aspx","http://demo.lbmall.cn","http://demo.lbmall.cn","AdminList.aspx","http://demo.lbmall.cn","http://demo.lbmall.cn","UpFile.aspx"];
     var secondMenu2 = ["品牌总类","总小类","产品大类","品牌列表","产品子类","小小类","第五级分类"];
     var secondMenuUrl2 = ["http://demo.lbmall.cn","http://demo.lbmall.cn","FriLinks.aspx","SearchKeyList.aspx","WaterConfig.aspx","","TabList.aspx"];
     var secondMenu3 = ["订单列表","发货详情","快递公司"];
     var secondMenuUrl3 = ["ProduceList.aspx","ProduceLeibie.aspx","ProduceType.aspx"];
     var secondMenu4 = ["会员列表","潜在客户"];
     var secondMenuUrl4 = ["../member/UserList.aspx","../member/Grade.aspx","../member/AccountAllList.aspx","http://demo.lbmall.cn","http://demo.lbmall.cn",]; 
     var secondMenu5 = ["产品列表","没货产品","尺寸列表"];
     var secondMenuUrl5 =  ["../message/Write.aspx","../message/Receive.aspx","../message/Send.aspx"];
     var secondMenu6 = ["发布新闻","新闻列表","留言列表"];
     var secondMenuUrl6 =  ["../message/ArticleTypeList.aspx","../message/List.aspx","../message/HelpTitle.aspx"];
     var secondMenu7 = ["业务员列表","管理员列表"];
     var secondMenuUrl7 =  ["http://demo.lbmall.cn","http://demo.lbmall.cn"]; 
     var secondMenu8 = ["添加业绩","查询"];
     var secondMenuUrl8 =  ["http://demo.lbmall.cn","http://demo.lbmall.cn"]; 
     var secondMenu = [secontMenu1,secondMenu2,secondMenu3,secondMenu4,secondMenu5,secondMenu6,secondMenu7,secondMenu8];
     var secondMenuUrl = [secondMenuUrl1,secondMenuUrl2,secondMenuUrl3,secondMenuUrl4,secondMenuUrl5,secondMenuUrl6,secondMenuUrl7,secondMenuUrl8];
     var strs = "";
     strs = "<div class=\"head\">\n\r<div class=\"logo\"><img style=\"border-right-width: 0px; width: 227px; border-top-width: 0px; border-bottom-width: 0px;height: 53px; border-left-width: 0px\" src=\""+url+"Logo.jpg\"><span><a id=\"ctl00_hlinkDefault\" href=\"http://demo2.shopefx.com/Default.aspx\">返回网店前台</a><a class=\"a\" href=\"http://demo2.shopefx.com/admin/store/sitecontent.aspx#\">|</a><a id=\"ctl00_hlinkAdminDefault\" href=\"../Default.aspx\">即时营业信息</a></span><p>欢迎您，<span id=\"ctl00_lblUserName\">"+getCookie("adminUserName")+"</span> [<strong><a id=\"ctl00_hlinkLogout\"href=\"../AdminLogout.aspx\">退出</a></strong>] <a href=\"http://www.shopefx.com/\"target=\"_blank\">客户服务</a>-<a href=\"http://www.shopefx.com/\" target=\"_blank\">购买咨询</a>-<ahref=\"http://www.shopefx.com/Common_Issue.html\" target=\"_blank\">帮助中心</a></p> </div></div> ";
     strs += "<div class=\"fathermenu clearfix\"><div class=\"menus\"><div class=\"menutab\"><ul class=\"clearfix\">";
     for(var i=0;i<topMenu.length;i++){
        if(i==id){
           strs+="<li class=\"current\"><a href=\""+topMenuUrl[i]+"\"><span><img src=\""+url+topMenuImg[i]+"\">"+topMenu[i]+"</span></a> </li>"; 
        }else{
             strs+="<li><a href=\""+topMenuUrl[i]+"\"><span><img src=\""+url+topMenuImg[i]+"\">"+topMenu[i]+"</span></a> </li>"; 
            }
     }
     strs +=" </ul></div></div></div>";
     strs +="<div class=\"parentmenu clearfix\"><div class=\"menus\"><div class=\"menutab\"><ul class=\"clearfix\">";
   
     for(var i = 0;i< secondMenu[id].length ; i++){
        if(i==sid){
           strs +="<li class=\"visited\"><a href=\""+secondMenuUrl[id][i]+"\"><span>"+secondMenu[id][i]+"</span></a> </li>"; 
        }else{
            strs +="<li><a href=\""+secondMenuUrl[id][i]+"\"><span>"+secondMenu[id][i]+"</span></a> </li>"; 
        }
     }
     strs +=" </ul></div></div></div>";
     document.write(strs);
}

function tdshowm(obj,arr)
{   
    var cArr = arr||["#fff","#f8fbfd","#D2EFFF"];
    var trArr=document.getElementById(obj).getElementsByTagName("tr");
    for(var i=0,j=trArr.length;i<j;i++)
    {
        var o=trArr[i];
        o.style.backgroundColor=cArr[i%2];
        o.onmouseover=function(){this.style.backgroundColor=cArr[2];}
        o.onmouseout=function(){this.style.backgroundColor=cArr[this.sectionRowIndex%2];}
    }
}

var getCookie=function(objName){//获取指定名称的cookie的值 
    var name = ""; 
    var arrStr = document.cookie.split(";");
    for(var i = 0;i < arrStr.length;i++){ 
        var temp = arrStr[i].split("="); 
        if(temp[0].replace(/(^\s*)|(\s*$)/g, "")==objName){
            name = temp[1];
            break;
        }    
    } 
    if(name==null||name==""){
        alert("您还没有登陆或登陆超时， 请重新登陆！");
        window.location.href("../Login.aspx");
    } 
    return name;       
};        