﻿function Change(type) {
    // 1 显示网站动态

    // 2 显示网站公告
    var p = document.getElementById("div_Dynamic");
    var q = document.getElementById("div_Notice");
    var p_detail = document.getElementById("Dynamic");
    var q_detail = document.getElementById("Notice");
    switch (type) {
        case 1:
            if (p) {
                p.className = "f_l ac fwb News_047";
            }

            if (q) {
                q.className = "f_l ac News_048 ch";
            }
            if (p_detail) {
                p_detail.className = "Black News_023 ";
            }
            if (q_detail) {
                q_detail.className = "noshow";
            }
            break;
        case 2:
            if (q) {
                q.className = "f_l ac fwb News_048_1 ";
            }
            if (p) {
                p.className = "f_l ac News_047_1 ch";
            }
            if (p_detail) {
                p_detail.className = "noshow";
            }
            if (q_detail) {
                q_detail.className = "Black News_023 ";
            }
            break;
        default:
            break;

    }
}
function ViewLastNews(jsclass, rec) {

    try {
        WdatePicker(
    { onpicked: function() {
        window.location.href = '/' + $dp.cal.getP('y')
    + '-' + $dp.cal.getP('M') + '-' + $dp.cal.getP('d')
    + '/bygonenews_' + jsclass + '_' + rec + '_1.html';
    }
    }
    )

    }
    catch (err) {
       // alert(err);
    }
}