// JScript 文件
/*
objs:要修改的元素
index:当前要修改的索引
count:同类型的元素的长度
css:已选择的元素的Css
objs2:需更改显示方式的元素
*/
function tab(objs,index,count,css,objs2){
    tab_SetStyle(objs,index,count,css);
    tab_SetDisp(objs2,index,count);                           
}

function tab_SetStyle(objs,index,count,css){
    var tempCss = "";
    var objAry = objs.split("|");
    var cssAry = css.split("|");
    if($(objAry[0]+index).className == cssAry[0])
        return;
    else
        tempCss = $(objAry[0]+index).className;
    for(var i=0;i<objAry.length;i++){
        for(var j=1;j<=count;j++){
            $(objAry[i]+j).className = tempCss;
        }
        $(objAry[i]+index).className=cssAry[i];
    }
}
function tab_SetDisp(objs,index,count){
    var objAry = objs.split("|");
    var temp = $(objAry[0]+index).style.display;
    if(temp == "block" || temp == "")
        return;
    for(var i=0;i<objAry.length;i++){
        for(var j=1;j<=count;j++){
            $(objAry[i]+j).style.display = "none";
        }
        $(objAry[i]+index).style.display = "block";
    }
}
function $(){
return document.getElementById(arguments[0]);
}
function $1(id,value){
var o=$(id);
if(o) o.innerHTML=value;
}