function tab(a,b,c,d) 
{ 
for(i=1;i<=b;i++){ 
if(c==i)
{ 
// 判断选择模块
document.getElementById(a+"_mo_"+i).style.display = "block";  // 显示模块内容
document.getElementById(a+"_to_"+i).className = "no";   // 改变菜单为选中样式
} 
else{ 
// 没有选择的模块
document.getElementById(a+"_mo_"+i).style.display = "none"; // 隐藏没有选择的模块
document.getElementById(a+"_to_"+i).className = "q";  // 清空没有选择的菜单样式
} 
} 
}
function tab2(a,b,c,d) 
{ 
for(i=1;i<=b;i++){ 
if(c==i)
{ 

document.getElementById(a+"_mo_"+i).style.display = "block";
document.getElementById(a+"_to_"+i).className = "no"; 
} 
else{ 

document.getElementById(a+"_mo_"+i).style.display = "none";
document.getElementById(a+"_to_"+i).className = "q"; 
} 
} 
}
function tab3(a,b,c,d) 
{ 
for(i=1;i<=b;i++){ 
if(c==i)
{ 

document.getElementById(a+"_mo_"+i).style.display = "block";
document.getElementById(a+"_to_"+i).className = "no"; 
} 
else{ 

document.getElementById(a+"_mo_"+i).style.display = "none";
document.getElementById(a+"_to_"+i).className = "q"; 
} 
} 
}
function tab4(a,b,c,d) 
{ 
for(i=1;i<=b;i++){ 
if(c==i)
{ 

document.getElementById(a+"_mo_"+i).style.display = "block";
document.getElementById(a+"_to_"+i).className = "no"; 
} 
else{ 

document.getElementById(a+"_mo_"+i).style.display = "none";
document.getElementById(a+"_to_"+i).className = "q"; 
} 
} 
}
function tab5(a,b,c,d) 
{ 
for(i=1;i<=b;i++){ 
if(c==i)
{ 

document.getElementById(a+"_mo_"+i).style.display = "block";
document.getElementById(a+"_to_"+i).className = "no"; 
} 
else{ 

document.getElementById(a+"_mo_"+i).style.display = "none";
document.getElementById(a+"_to_"+i).className = "q"; 
} 
} 
}
function tab6(a,b,c,d) 
{ 
for(i=1;i<=b;i++){ 
if(c==i)
{ 

document.getElementById(a+"_mo_"+i).style.display = "block";
document.getElementById(a+"_to_"+i).className = "no"; 
} 
else{ 

document.getElementById(a+"_mo_"+i).style.display = "none";
document.getElementById(a+"_to_"+i).className = "q"; 
} 
} 
}

