﻿function setDao()
{
	var diag = new Dialog();
	diag.Width = 350;
	diag.Height = 230;
	diag.Title = "导航设置";
	diag.URL = "ShowASP/indexAsp/setMenu.aspx";
	diag.show();

//     ShowIframe4("ShowASP/indexAsp/setMenu.aspx",'350','230','导航设置','Dao');  
}


function setDaoHang()
{   
	var diag = new Dialog();
	diag.Width = 350;
	diag.Height = 230;
	diag.Title = "导航设置";
	diag.URL = "ShowASP/DaoHang/DangType.aspx";
	diag.show();
//    ShowIframe4("ShowASP/DaoHang/DangType.aspx",'350','230','导航设置','Dao');  
}

function setDaoHang2()
{
    if(Dialog){ Dialog.close();}
    var diag2 = new Dialog();
    diag2.Width = 350;
    diag2.Height = 230;
    diag2.Title = "导航设置";
    diag2.URL = "ShowASP/DaoHang/DangType.aspx";
    diag2.show();
//   window.parent.ShowIframe4("ShowASP/DaoHang/DangType.aspx",'350','230','导航设置','Dao');  
}


//function sunHight()
//{
//     window.parent.document.getElementById("showDiv").style.height ="650px";
//}

function index1000(id)
{
    var diag = new Dialog();
    diag.Width = 650;
    diag.Height = 425;
    diag.Title = "单页图文";
    diag.URL = "ConstructASP/CPList/PicAdd.aspx?c_id="+id;
    diag.show();    
//    ShowIframe("ConstructASP/CPList/PicAdd.aspx?c_id="+id,'650','425','单页图文','');  
} 

function wdp(id)
{
    var diag = new Dialog();
    diag.Width = 350;
    diag.Height = 230;
    diag.Title = "幻灯片展示";
    diag.URL = "ShowASP/hdp/hdpJAdd.aspx?hcid=" + id;
    diag.show();   
//     ShowIframe2("ShowASP/hdp/hdpJAdd.aspx?hcid="+id,'350','230','幻灯片展示','');
}

function index1000not(id)
{
    var diag = new Dialog();
    diag.Width = 650;
    diag.Height = 425;
    diag.Title = "单页图文";
    diag.URL = "ConstructASP/CPList/PicAdd.aspx?c_id="+id;
    diag.show();  
//    ShowIframe("ConstructASP/CPList/PicAdd.aspx?c_id="+id,'650','425','单页图文','');
}

function index1002(id)
{
    var diag = new Dialog();
    diag.Width = 650;
    diag.Height = 425;
    diag.Title = "图文展示";
    diag.URL = "ConstructASP/CPList/PicAdd.aspx?type=2&id=" + id;
    diag.show();  
//  ShowIframe("ConstructASP/CPList/PicAdd.aspx?type=2&id="+id,'650','425','图文展示','');
}

function index1004()//回复留言，1121修改跳转页面为admin_re.aspx，原为plList.aspx
{
    var diag = new Dialog();
    diag.Width = 650;
    diag.Height = 425;
    diag.Title = "回复留言";
    diag.URL = "ConstructASP/Admin/admin_re.aspx";
    diag.show();
//    ShowIframe('ConstructASP/Admin/admin_re.aspx','650','425','回复留言','');
}

function index100156(type,cid)
{
    var ds= document.getElementById("hidLayOutTag").value;
    
    var diag = new Dialog();
    diag.Width = 650;
    diag.Height = 425;
    
    if(type=="1001")
    {
        diag.Title = "添加新闻";
        diag.CancelEvent=function(){GetMoreById(cid,ds);diag.close()}
        diag.URL = "ConstructASP/News/NewsAdd.aspx?c_id=" + cid;
//        ShowIframe3('ConstructASP/News/NewsAdd.aspx?c_id='+ cid,'650','425','添加新闻',cid);
    }
    else if(type=="1005")
    { 
        diag.Title = "文件下载";
        diag.CancelEvent=function(){GetMoreById(cid,ds);diag.close()}
        diag.URL = "ConstructASP/EpicAndDown/EpicAndDownAdd.aspx?c_id=" + cid;
        diag.show();
//        ShowIframe3('ConstructASP/EpicAndDown/EpicAndDownAdd.aspx?c_id='+ cid,'650','425','文件下载',cid);
    }
    diag.show();
}


function indexMrakIng()
{
    if(Dialog){ Dialog.close();}
    var diag = new Dialog();
    diag.Width = 650;
    diag.Height = 425;
    diag.Title = "网站营销";
    diag.URL = "ShowASP/Marketing/WMarketing.aspx";
    diag.show();
//    window.parent.ShowIframe2("ShowASP/Marketing/WMarketing.aspx",'650','425','网站营销','');
}


//新闻编辑层
function newsAdd(id)//id：单条新闻编号
{
    if(id<=0)
    {
        //ShowIframe('../../ConstructASP/SAndD/SAndDAdd.aspx','650','425','添加新闻','');
    }
    else
    {
        var diag = new Dialog();
        diag.Width = 650;
        diag.Height = 425;
        diag.Title = "编辑新闻";
        diag.URL = "ConstructASP/News/NewsAdd.aspx?id=" + id;
        diag.show();
//        ShowIframe('ConstructASP/News/NewsAdd.aspx?id='+id,'650','425','编辑新闻','');
    }    
}

//新闻添加
function newsAddT(cid)//cid：栏目编号
{
    if(cid>0)
    {
        var diag = new Dialog();
        diag.Width = 650;
        diag.Height = 425;
        diag.Title = "添加新闻";
        diag.URL = "ConstructASP/News/NewsAdd.aspx?c_id=" + id;
        diag.show();
//        ShowIframe("ConstructASP/News/NewsAdd.aspx?c_id="+cid,'650','425','添加新闻','');
    }
}

//单页图文编辑层
function sigEdit(id,cid,title)//id：单条信息编号，cid：栏目编号，title栏目名称
{
    var ds= document.getElementById("hidLayOutTag").value;
    
    var diag = new Dialog();
    diag.Width = 650;
    diag.Height = 400;
    diag.Title = title;
    //alert(id,cid,title);
    if(id>0&&cid>0)
    {
        diag.CancelEvent=function(){GetMoreById(cid,ds);diag.close()}
        diag.URL = "ConstructASP/CPList/PicAdd.aspx?type=1&id=" + id + "&c_id=" + cid;
//        ShowIframe3("ConstructASP/CPList/PicAdd.aspx?type=1&id="+id + "&c_id=" + cid,'650','400',title,cid);
    }
    else if(id<=0&&cid>0)
    {
        diag.CancelEvent=function(){GetMoreById(cid,ds);diag.close()}
        diag.URL = "ConstructASP/CPList/PicAdd.aspx?type=1&c_id=" + cid;
//        ShowIframe3("ConstructASP/CPList/PicAdd.aspx?type=1&c_id=" + cid,'650','400',title,cid);
    }
    diag.show();
}

//连接编辑层
function sigEditLink(id,cid,title)//id：单条信息编号，cid：栏目编号，title栏目名称
{
    var ds= document.getElementById("hidLayOutTag").value;

    var diag = new Dialog();
    diag.Width = 650;
    diag.Height = 400;
    diag.Title = title;
    diag.CancelEvent=function(){GetMoreById(cid,ds);diag.close()}
    diag.URL = "ConstructASP/CPList/PicAddLink.aspx?type=1&id=" + id + "&c_id=" + cid;
    diag.show();
//  ShowIframe3("ConstructASP/CPList/PicAddLink.aspx?type=1&id="+id + "&c_id=" + cid,'650','400',title,cid);

}

//产品信息类页面添加层
function proAdd(cid,title)
{
    if(cid>0)
    {
        var ds= document.getElementById("hidLayOutTag").value;
        
        var diag = new Dialog();
        diag.Width = 650;
        diag.Height = 440;
        diag.Title = title;
        diag.CancelEvent=function(){GetMoreById(cid,ds);diag.close()}
        diag.URL = "ConstructASP/CPList/PicAdd.aspx?type=2&c_id=" + cid;
        diag.show();
//    ShowIframe3("ConstructASP/CPList/PicAdd.aspx?type=2&c_id="+cid,'650','440',title,cid);
    }
}

//图片信息添加层
function honAdd(cid,title)
{
    if(cid>0)
    {
        var ds= document.getElementById("hidLayOutTag").value;
    
        var diag = new Dialog();
        diag.Width = 500;
        diag.Height = 400;
        diag.Title = title;
        diag.CancelEvent=function(){GetMoreById(cid,ds);diag.close()}
        diag.URL = "ShowASP/Assistant/csUP.aspx?type=3&c_id=" + cid + "&title=" + title;
        diag.show();
//        ShowIframe3("ShowASP/Assistant/csUP.aspx?type=3&c_id="+cid+"&title="+title,'500','400',title,cid);
    }
    else
    {
        //window.EditFrame.location.href="../../ConstructASP/CPList/PicAdd.aspx"
    }
}


//回复留言编辑层
function messAdd(id)//id：单条信息编号
{
    if(id<=0)
    {
        //ShowIframe("../../ShowASP/Message/Message.aspx",'650','425','回复留言','');
    }
    else
    {
        var ds= document.getElementById("hidLayOutTag").value;
    
        var diag = new Dialog();
        diag.Width = 650;
        diag.Height = 425;
        diag.Title = "回复留言";
        diag.CancelEvent=function(){GetMoreById(id,ds);diag.close()}
        diag.URL = "ShowASP/Message/reMessage.aspx?id=" + id;
        diag.show();
//        ShowIframe3("ShowASP/Message/reMessage.aspx?id="+id,'650','425','回复留言',id);
    }
}

//新增文件下载
function downAdd(cid)
{
    if(cid>0)
    {
        var ds= document.getElementById("hidLayOutTag").value;
    
        var diag = new Dialog();
        diag.Width = 650;
        diag.Height = 425;
        diag.Title = "文件下载";
        diag.CancelEvent=function(){GetMoreById(cid,ds);diag.close()}
        diag.URL = "ConstructASP/EpicAndDown/EpicAndDownAdd.aspx?c_id="+cid;
        diag.show();
//        ShowIframe3("ConstructASP/EpicAndDown/EpicAndDownAdd.aspx?c_id="+cid,'650','425','文件下载',cid);
    }
}

//编辑文件下载
function downEdit(id)//<A HREF="../../../ShowASP/DownLoad/reDown.aspx">../../../ShowASP/DownLoad/reDown.aspx</A>
{
    if(id>0)
    {
        var ds= document.getElementById("hidLayOutTag").value;
    
        var diag = new Dialog();
        diag.Width = 450;
        diag.Height = 150;
        diag.Title = "文件下载";
        diag.CancelEvent=function(){GetMoreById(cid,ds);diag.close()}
        diag.URL = "ShowASP/DownLoad/reDown.aspx?id=" + id;
        diag.show();
//        ShowIframe3("ShowASP/DownLoad/reDown.aspx?id=" + id,'450','150','文件下载',cid);
    }
}

//栏目管理弹出编辑窗口
function showCol(type)
{
    if(Dialog){ Dialog.close();}
      
    if(type=='edittop')
    {
         window.document.getElementById("assPos").value = "edittop";
        
        var diag = new Dialog();
        diag.Width = 430;
        diag.Height = 280;
        diag.Title = "栏目设置";
        diag.CancelEvent = function(){location.href="index.aspx";};
        diag.URL = "ShowASP/indexAsp/collist.aspx";
        diag.show();
//        ShowIframe4("ShowASP/indexAsp/collist.aspx" ,'430','280','栏目设置','editindextop');
   }
    else if(type=='top')
    {
        window.document.getElementById("assPos").value = "top";

        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "顶部栏目";
        diag.URL = "ShowASP/indexAsp/topcolumn.aspx?id=1";
        diag.show();
//        ShowIframe2("ShowASP/indexAsp/topcolumn.aspx?id=1" ,'350','200','顶部栏目','top');
    }
    else if(type=='center')
    {
        var diag = new Dialog();
        diag.Width = 600;
        diag.Height = 240;
        diag.Title = "模块设置";
        diag.URL = "ShowASP/indexAsp/midcolumn.aspx";
        diag.show();
//        ShowIframe2("ShowASP/indexAsp/midcolumn.aspx" ,'600','240','模块设置','');
    }
    else if(type=='bottom')
    {
        window.document.getElementById("assPos").value = "bot";    
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "底部栏目";
        diag.CancelEvent = function(){ShowA('bot');};
        diag.URL = "ShowASP/indexAsp/topcolumn.aspx?id=3";
        diag.show();


//        ShowIframe2("ShowASP/indexAsp/topcolumn.aspx?id=3" ,'350','200','底部栏目','bot');
   }
   else if(type=='DaoHang')
   {
        var diag = new Dialog();
        diag.Width = 370;
        diag.Height = 150;
        diag.Title = "导航设置";
        diag.URL = "ShowASP/indexAsp/setMenu.aspx";
        diag.show();
//        ShowIframe4("ShowASP/indexAsp/setMenu.aspx" ,'370','150','导航设置','');
   }  
   
    if(document.getElementById("rightMenu"))
    {
          document.getElementById("rightMenu").parentNode.removeChild(document.getElementById("rightMenu"))
    }
}

//更新首页栏目
function updateCol(type)
{
    window.document.getElementById("update").value="true";
    document.form1.submit(); 
    showCol(type);
}

//************
//1220把此段代码从\Construct\ShowASP\indexAsp\js\mentShowDiv.js合并
//************
//新建栏目
function addCol(type)
{

    if(Dialog){ Dialog.close(); }
    
    if(type=='top')
    {
        //清空隐藏域的值，并根据不同的操作赋值
        if(window.document.getElementById("assPos").value != "")
        {
            window.document.getElementById("assPos").value = "";            
        }
        window.document.getElementById("assPos").value = "top";
            
            var diag = new Dialog();
            diag.Width = 420;
            diag.Height = 250;
            diag.Title = "栏目新建";
            diag.CancelEvent = function(){location.href="index.aspx";};
            diag.URL = "ShowASP/indexAsp/addCol.aspx";
            diag.show();
//        ShowIframe4("ShowASP/indexAsp/addCol.aspx" ,'420','250','栏目新建','editindextop');
    }
    else if(type=='center')
    {
        var diag = new Dialog();
        diag.Width = 600;
        diag.Height = 240;
        diag.Title = "模块设置";
        diag.URL = "ShowASP/indexAsp/midcolumn.aspx";
        diag.show();
//         ShowIframe("ShowASP/indexAsp/midcolumn.aspx" ,'600','240','模块设置','');
    }
    else if(type=='bottom')
    {
        //清空隐藏域的值，并根据不同的操作赋值
        if(window.document.getElementById("assPos").value != "")
        {
            window.document.getElementById("assPos").value = "";            
        }
        window.document.getElementById("assPos").value = "bot";
        
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "底部栏目";
        diag.CancelEvent=function(){ShowA('bot');diag.close();}
        diag.URL = "ShowASP/indexAsp/addBotCol.aspx";
        diag.show();
//        ShowIframe("ShowASP/indexAsp/addBotCol.aspx" ,'350','200','底部栏目','bot');
    }
   
}
function batchAdd(){
    if(Dialog ){ Dialog.close();}
    
    var diag = new Dialog();
    diag.Width = 350;
    diag.Height = 200;
    diag.Title = "批量新建";
    diag.CancelEvent = function(){location.href="index.aspx";};
    diag.URL = "ShowASP/indexAsp/BatchAdd.aspx";
    diag.show();
 }

//个性化设置
function geXingSet(tag)
{    
    
    if(Dialog ){ Dialog.close();}
//alert(tag);
    if(tag==1)
    {

        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "广告集锦";
        diag.URL = "ShowASP/indexAsp/setGeXing1.aspx";
        diag.show();
//        window.parent.ShowIframe5("ShowASP/indexAsp/setGeXing1.aspx",'350','200','广告集锦');
    }
    else if(tag==2)
    {
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "特色功能";
        diag.URL = "ShowASP/indexAsp/setGeXing12.aspx";
        diag.show();
//        window.parent.ShowIframe5("ShowASP/indexAsp/setGeXing12.aspx",'350','200','特色功能');
    }
    else if(tag==3)
    {
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "网站标识";
        diag.URL = "ShowASP/indexAsp/setGeXing13.aspx";
        diag.show();
//        window.parent.ShowIframe5("ShowASP/indexAsp/setGeXing13.aspx",'350','200','网站标识');
    }
}



//辅助功能
function four(type)
{
    if(Dialog ){ Dialog.close();}
    //弹出窗体
    if(type=='tan')
    {
    //清空隐藏域的值，并根据不同的操作赋值
        if(window.document.getElementById("assPos").value != "")
        {
            window.document.getElementById("assPos").value = "";  
        }
        window.document.getElementById("assPos").value = "tan";
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "弹出窗体";
        diag.CancelEvent=function(){ShowA('tan');diag.close();}
        diag.URL = "ShowASP/Assistant/openad.aspx";
        diag.show();
//        ShowIframe("ShowASP/Assistant/openad.aspx" ,'350','200','弹出窗体','tan');
    }
    else if(type=='float')//浮动广告
    {
    //清空隐藏域的值，并根据不同的操作赋值
        if(window.document.getElementById("assPos").value != "")
        {
            window.document.getElementById("assPos").value = "";            
        }
        window.document.getElementById("assPos").value = "float";
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "浮动广告";
        diag.CancelEvent=function(){ShowA('float');diag.close();}
        diag.URL = "ShowASP/Assistant/floatad.aspx";
        diag.show();
//        ShowIframe("ShowASP/Assistant/floatad.aspx" ,'350','200','浮动广告','float');

    }
    else if(type=='lc')//两侧广告
    {
    //清空隐藏域的值，并根据不同的操作赋值
        if(window.document.getElementById("assPos").value != "")
        {
            window.document.getElementById("assPos").value = "";            
        }
        window.document.getElementById("assPos").value = "lc";
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "两侧广告";
        diag.CancelEvent=function(){ShowA('lc');diag.close();}
        diag.URL = "ShowASP/Assistant/coupletAd.html";
        diag.show();
//        ShowIframe("ShowASP/Assistant/coupletAd.html" ,'350','200','两侧广告','lc');
    }
    else if(type=='ld')//两侧定义
    {
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "两侧定义";
        diag.CancelEvent=function(){ShowA('ld');diag.close();}
        diag.URL = "ShowASP/Assistant/SetQQ.htm";
        diag.show();
//        ShowIframe("ShowASP/Assistant/SetQQ.htm" ,'350','200','两侧定义','ld');
    }
    else if(type=='link')//友情链接
    { 
        //清空隐藏域的值，并根据不同的操作赋值
        if(window.document.getElementById("assPos").value != "")
        {
            window.document.getElementById("assPos").value = "";            
        }
        window.document.getElementById("assPos").value = "link";
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 250;
        diag.Title = "友情链接";
        diag.CancelEvent=function(){ShowA('link');diag.close();}
        diag.URL = "ShowASP/Assistant/LinkSet.aspx";
        diag.show();
//        ShowIframe("ShowASP/Assistant/LinkSet.aspx" ,'350','250','友情链接','link');
    }
    else if(type=='gd')//图片滚动效果
    { 
        //清空隐藏域的值，并根据不同的操作赋值
        if(window.document.getElementById("assPos").value != "")
        {
            window.document.getElementById("assPos").value = "";            
        }
        window.document.getElementById("assPos").value = "gd";
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 500;
        diag.Title = "滚动特效";
        diag.CancelEvent=function(){ShowA('gd');diag.close();}
        diag.URL = "ShowASP/Assistant/piccolumn.aspx";
        diag.show();
//        ShowIframe("ShowASP/Assistant/piccolumn.aspx" ,'350','550','滚动特效','gd');
    }
    else if(type=='useshow')//图片滚动效果
    { 
        //清空隐藏域的值，并根据不同的操作赋值
        if(window.document.getElementById("assPos").value != "")
        {
            window.document.getElementById("assPos").value = "";            
        }
        window.document.getElementById("assPos").value = "useshow";
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "人才频道";
        diag.URL = "ShowASP/UseShow/UseShowSet.aspx";
        diag.show();
//        ShowIframe2("ShowASP/UseShow/UseShowSet.aspx" ,'350','200','人才频道','');
    }
}

//高级设置
function gj(type)
{
    if(Dialog ){ Dialog.close();}
    if(type=='logo')//上传logo
    {
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "Logo设置";
        diag.CancelEvent=function(){ShowA('logo');diag.close();}
        diag.URL = "ShowASP/Assistant/seniorColumn.aspx?type=logo";
        diag.show();
//        ShowIframe("ShowASP/Assistant/seniorColumn.aspx?type=logo" ,'350','200','Logo设置','logo');
    }
    else if(type=='banner')//上传banner
    {
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "banner广告";
        diag.CancelEvent=function(){ShowA('banner');diag.close();}
        diag.URL = "ShowASP/Assistant/seniorColumn.aspx?type=banner";
        diag.show();
//        ShowIframe("ShowASP/Assistant/seniorColumn.aspx?type=banner" ,'350','200','banner广告','banner');
    }
    else if(type=='sy')//形象首页
    {
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "形象首页";
        diag.URL = "ShowASP/Assistant/seniorColumn.aspx?type=sy";
        diag.show();
//        ShowIframe("ShowASP/Assistant/seniorColumn.aspx?type=sy" ,'350','200','形象首页','');
    }
    else if(type=='Info')
    {
        var diag = new Dialog();
        diag.Width = 500;
        diag.Height = 300;
        diag.Title = "公司基本信息";
        diag.CancelEvent = function(){ShowA("Info");diag.close();};
        diag.URL = "ShowASP/Assistant/UserInfo.aspx?type=Info";
        diag.show();
//         ShowIframe("ShowASP/Assistant/UserInfo.aspx?type=Info" ,'500','300','公司基本信息','Info');
    }
    else if(type=="ban")
    {
        var diag = new Dialog();
        diag.Width = 500;
        diag.Height = 300;
        diag.Title = "版权设置";
        diag.CancelEvent = function(){ShowA("ban");diag.close();};
        diag.URL = "ShowASP/indexAsp/setBan.aspx";
        diag.show();
//         ShowIframe("ShowASP/indexAsp/setBan.aspx" ,'500','300','版权设置','ban');
    }
    else if(type=='hd')
    {
        var diag = new Dialog();
        diag.Width = 430;
        diag.Height = 280;
        diag.Title = "幻灯片设置";
        diag.URL = "ShowASP/hdp/hdpList.aspx";
        diag.show();
//          ShowIframe2("ShowASP/hdp/hdpList.aspx" ,'430','280','幻灯片设置','');   
    }
    else if(type=='layout')
    {
        Dialog.confirm('确定还原？',function(){
            HuYu();
            Dialog.alert("还原成功!");
        });
    }
    else if(type=='qytj')
    {
        var diag = new Dialog();
        diag.Width = 800;
        diag.Height = 500;
        diag.Title = "企业推荐";
        diag.CancelEvent=function(){ShowA('qitj');diag.close();}
        diag.URL = "ShowASP/indexAsp/setQytj.aspx";
        diag.show();
//         ShowIframe("ShowASP/indexAsp/setQytj.aspx" ,'800','500','企业推荐','qitj');
    }
    else if(type=='adv')
    {
        var diag = new Dialog();
        diag.Width = 350;
        diag.Height = 200;
        diag.Title = "形象首页";
        diag.URL = "ShowASP/indexAsp/AddFlash.aspx";
        diag.show();
    }
}

//1208增加“添加友情链接”
function linkAdd()
{
    if(Dialog ){ Dialog.close();}
    var diag = new Dialog();
    diag.Width = 350;
    diag.Height = 200;
    diag.Title = "新增友情链接";
    diag.URL = "ShowASP/Assistant/LinkAdd.aspx";
    diag.show();
    //window.location.href="../../ShowASP/Assistant/LinkAdd.aspx";
}

    
function indexRow(cid,colname)
{
    if(cid>0)
    {
        var ds= document.getElementById("hidLayOutTag").value;
    
        var diag = new Dialog();
        diag.Width = 250;
        diag.Height = 150;
        diag.Title = colname;
        diag.CancelEvent=function(){GetMoreById(cid,ds);diag.close()}
        diag.URL = "ShowASP/indexAsp/indexRow.aspx?c_id=" + cid;
        diag.show();
//            ShowIframe3("ShowASP/indexAsp/indexRow.aspx?c_id="+cid,'250','150',colname,cid);
    }
}


//添加更多职位信息
function addUseShowMore(cid)
{
    if(cid>0)
    {
            
            var type= document.getElementById("useshowIs").value
            
            
            if(type=="0")
            {
                Dialog.confirm('第一次使用人才频道，请进行激活!是否激活!',function(){
                    var diag = new Dialog();
                    diag.Width = 400;
                    diag.Height = 250;
                    diag.Title = "激活人才网";
                    diag.URL = "ShowASP/UseShow/active.aspx";
                    diag.show();
                });
//                if (confirm("第一次使用人才频道，请进行激活？是否激活")) 
//                {
//                   ShowIframe2("ShowASP/UseShow/active.aspx",'400','250',"发布职位信息",'');                
//                } 
            }else{
                var ds= document.getElementById("hidLayOutTag").value;
            
                var diag = new Dialog();
                diag.Width = 400;
                diag.Height = 450;
                diag.Title = "发布职位信息";
                diag.CancelEvent=function(){GetMoreById(cid,ds);diag.close()}
                diag.URL = "ShowASP/UseShow/UseShowAdd.aspx?uid=" + cid;
                diag.show();
//                ShowIframe3("ShowASP/UseShow/UseShowAdd.aspx?uid="+cid,'400','450',"发布职位信息",cid);
            }
           
    }
}
//内页发布职位
function addUseShowMore2()
{
    var diag = new Dialog();
    diag.Width = 400;
    diag.Height = 450;
    diag.Title = "发布职位信息";
    diag.CancelEvent = function(){parent.window.location.href='UseShowDf.aspx';diag.close()}
    diag.URL = "../../ShowASP/UseShow/UseShowAdd.aspx";
    diag.show();
//    ShowIframe3("../../ShowASP/UseShow/UseShowAdd.aspx",'400','450',"发布职位信息",'neiRC');
}

//打开职位管理
function editUswShowDept(did)
{      
    //alert(did);
    var diag = new Dialog();
    diag.Width = 400;
    diag.Height = 450;
    diag.Title = "职位信息修改";
    diag.CancelEvent = function(){parent.window.location.href='UseShowMR.aspx?dtag=' + did; diag.close()}
    diag.URL = "UseShowEdit.aspx?mtag=" + did;
    diag.show();
//    ShowIframe2("UseShowEdit.aspx?mtag="+did+"",'400','450','职位信息修改','UseShow1'+did+'');  
}

function editUswShowDept2(did)
{      
    //alert(did);
    var diag = new Dialog();
    diag.Width = 400;
    diag.Height = 450;
    diag.Title = "职位信息修改";
    diag.CancelEvent = function(){parent.window.location.href='UseShowDf.aspx'; diag.close()}
    diag.URL = "UseShowEdit.aspx?mtag=" + did;
    diag.show();
//    ShowIframe2("UseShowEdit.aspx?mtag="+did+"",'400','450','职位信息修改','UseShow2'+did+'');  
}


//1.14
/////////////////////////////
//控制滚动图片功能开启状态
function openGD()
{
    var typevalue = "";
    var b= document.getElementById("openb");
    var chgd = document.getElementById("chGD");
    //var container = document.getElementById("container");
    if (chgd.checked)
    {
        typevalue = "显示";
    } 
    else 
    {        
        typevalue = "隐藏"; 
    }
    Dialog.confirm('确认修改？',function(){
        //调用后台修改状态的方法，得到状态值
        
        var type = ShowASP_Assistant_piccolumn.ChangeGDType();
        
        
        if(type.value == "显示")
        {
            b.innerHTML="显示";
            chgd.checked = true;
            //container.style.display="block";
            //style="display:block"
        }
        else
        {
            b.innerHTML="隐藏";
            chgd.checked = false;
            //container.style.display="none";
        }
    });
}


function saveColId(id)
{
    document.getElementById("btAllPic").disabled = false;
    document.getElementById("hColId").value += id+",";             
    
}    
 
function allpic()
{
    var c_id = document.getElementById('hColId').value;
}



function addPic()
{
   
    document.getElementById("hAdd").value = "add";   
    document.form1.submit(); 
}


//记录滚动图片信息
function savePicUrl(piclink,title,picurl)
{ 
    var n=(document.getElementById("hPicLink").value.split(piclink)).length-1; 

    if(n<1)
    {
        document.getElementById("hPicLink").value += piclink+"*";
        document.getElementById("hTitle").value += title+",";
        document.getElementById("hPicUrl").value += picurl+"*";
    }

}

function back()
{
    window.location.href="piccolumn.aspx";
}


//打开视频管理页面
function flv()
{   
    if(Dialog ){ Dialog.close();}
    var diag = new Dialog();
    diag.Width = 400;
    diag.Height = 470;
    diag.Title = "视频管理";
    diag.URL = "ShowASP/flv/flvmanage.aspx";
    diag.show();
//    ShowIframe2("ShowASP/flv/flvmanage.aspx",'400','470','视频管理','');  
}

//打开会员设置页面
function menstate()
{      
    if(Dialog ){ Dialog.close();}
    var diag = new Dialog();
    diag.Width = 430;
    diag.Height = 280;
    diag.Title = "会员模块";
    diag.URL = "ShowASP/AssociatorASP/menstate.aspx";
    diag.show();
//    ShowIframe2("../../Binomial/AssociatorASP/menstate.aspx",'430','280','会员模块','');  
}
//打开会员管理
function userlist(){
    if(Dialog ){ Dialog.close();}
    var diag = new Dialog();
    diag.Width = 430;
    diag.Height = 380;
    diag.Title = "会员模块";
    diag.URL = "ShowASP/AssociatorASP/userlist.aspx";
    diag.show();
}
//打开会员栏目
function columnpop(){
    if(Dialog ){ Dialog.close();}
    var diag = new Dialog();
    diag.Width = 400;
    diag.Height = 320;
    diag.Title = "会员栏目定制";
    diag.URL = "ShowASP/AssociatorASP/columnpop.aspx";
    diag.show();
}
//设置滚动状态
function setGun(id)
{    
    var diag = new Dialog();
    diag.Width = 350;
    diag.Height = 200;
    diag.Title = "滚动状态设置";
    diag.URL = "ShowASP/indexAsp/SetGun.aspx?cNid=" + id;
    diag.show();  
//    ShowIframe2("ShowASP/indexAsp/SetGun.aspx?cNid="+id+"",'350','200','滚动状态设置','');  
}



function EditCol(id)
{
   if(id==0)
   {
    return;
   }
    var diag = new Dialog();
    diag.Width = 350;
    diag.Height = 230;
    diag.Title = "栏目编辑";
    diag.URL = "ShowASP/indexAsp/colset.aspx?id=" + id;
    diag.show();
//   window.parent.EditColM("ShowASP/indexAsp/colset.aspx?id="+id,'350','200','栏目编辑');
}

function EditColHdp(id)
{
    if(Dialog ){ Dialog.close();}
//alert(id);
   if(id==0)
   {
    return;
   }
    var diag = new Dialog();
    diag.Width = 350;
    diag.Height = 240;
    diag.Title = "幻灯信息设置";
    diag.URL = "ShowASP/hdp/hdpJAdd.aspx?hcid=" + id;
    diag.show();  
//   window.parent.EditColM("ShowASP/hdp/hdpJAdd.aspx?hcid="+id,'350','240','幻灯信息设置');
}

function EditCol10(id)
{

   if(id==0)
   {
    return;
   }
    if(Dialog ){ Dialog.close();}
    var diag = new Dialog();
    diag.Width = 400;
    diag.Height = 380;
    diag.Title = "订制模块编辑";
    diag.CancelEvent = function(){location.href="index.aspx";}
    diag.URL = "ShowASP/UseDefine/DefineEdit.aspx?id=" + id;
    diag.show(); 
//   window.parent.EditColM2("ShowASP/UseDefine/DefineEdit.aspx?id="+id,'400','550','订制模块编辑');
}

function EditCol2(id,tag)
{
   if(id==0)
   {
    return;
   }
    var diag = new Dialog();
    diag.Width = 350;
    diag.Height = 200;
    diag.Title = "人才频道编辑";
    diag.URL = "ShowASP/indexAsp/colset.aspx?id=" + id + "&tag=1";
    diag.show(); 
//   window.parent.EditColM("ShowASP/indexAsp/colset.aspx?id="+id+"&tag=1",'350','200','人才频道编辑');
}


//添加订制模块
function AddDefine()
{
    if(Dialog ){ Dialog.close();}
    var diag = new Dialog();
    diag.Width = 550;
    diag.Height = 400;
    diag.Title = "新增订制模块";
    diag.CancelEvent = function(){location.href="index.aspx";}
    diag.URL = "ShowASP/UseDefine/DefineAdd.aspx";
    diag.show(); 
//    window.parent.EditColM2("ShowASP/UseDefine/DefineAdd.aspx",'550','400','新增订制模块')
}

//订制模块设置
function EditDefine()
{
    if(Dialog ){ Dialog.close();}
    var diag = new Dialog();
    diag.Width = 350;
    diag.Height = 200;
    diag.Title = "订制模块管理";
    diag.URL = "ShowASP/UseDefine/SetDefine.aspx";
    diag.show(); 
//    window.parent.EditColM("ShowASP/UseDefine/SetDefine.aspx",'350','200','订制模块管理')
}

function diagAlert(txt){
	var diag = new Dialog();
	diag.AutoClose = 3;
	diag.ShowCloseButton = false;
	diag.URL = "javascript:void(document.write(" + txt + "))";
	diag.show();
}

