﻿function AskaLibrarian_open(i) {
    switch (i) {
        case 1:

            window.location.href = "3AskaLibrarian.aspx?ko=1";
            
            break;
        case 2:

            window.location.href = "3AskaLibrarian.aspx?question=k";
            

            break;
        case 3:

            window.location.href = "3AskaLibrarian.aspx?vType=1";
            break;
        default:
            break;
    }

}

var str = window.location.search;
var selectedDepartment;
var laksfdj;
if (str != "") {
    str = str.split("?")[1];
    str = str.split(escape("&"));
    //    for(var   i=   0;i<str.length;i++)   \\传递的参数不只一个
    //    {   
    //    alert(str[i].split("=")[1])
    //    }
    laksfdj = str[0].split("=")[0];
    selectedDepartment = str[0].split("=")[1];
}

if (laksfdj == "p") {
    if (selectedDepartment == 1) {
        AskaLibrarian_open(1);
    }
    if (selectedDepartment == 2) {
        AskaLibrarian_open(3);
    }
    if (selectedDepartment == 4) {
        AskaLibrarian_open(2);
    }
}
function dcjgck() {
    window.location.href = "3AskaLibrarian.aspx?vType=1";
}
