﻿///
function Search(name,ctrodiv, cursel, n) {
    for (i = 1; i <= n; i++) {
        var menu = document.getElementById(name + i);
        var con = document.getElementById(ctrodiv + i);
        menu.className = i == cursel ? "on" : "";
        con.style.display = i == cursel ? "block" : "none";
    }
}

function titTab(name,ctrodiv, cursel, n) {
    for (i = 1; i <= n; i++) {
        var menu = document.getElementById(name + i);
        var con = document.getElementById(ctrodiv + i);
        menu.className = i == cursel ? "on" : "";
        con.style.display = i == cursel ? "block" : "none";
    }
}



function dlTab(name,ctrodiv, cursel, n) {
    for (i = 1; i <= n; i++) {
        var menu = document.getElementById(name + i);
        var con = document.getElementById(ctrodiv + i);
        menu.className = i == cursel ? "on" : "";
        con.style.display = i == cursel ? "block" : "none";
    }
}


function menu(parentid,divid)
{
    document.getElementById(parentid).className= document.getElementById(parentid).className=="fa_1"?"fa_0":"fa_1";
    document.getElementById(divid).style.display= document.getElementById(divid).style.display=="none"?"block":"none";
}


///
function showDetail(parentid,divid)
{
    document.getElementById(parentid).className= document.getElementById(parentid).className=="xx_1"?"xx_0":"xx_1";
    document.getElementById(divid).style.display= document.getElementById(divid).style.display=="block"?"none":"block";
}

///
function showCen(targetid,objN){
   
      var target=document.getElementById(targetid);
      var clicktext=document.getElementById(objN)

            if (target.style.display=="block"){
                target.style.display="none";
                clicktext.innerText="高级搜索";
  

            } else {
                target.style.display="block";
                clicktext.innerText='基本搜索';
            }
   
}


