//function checkLoginForm(thisForm){
//if (thisForm.username.value=='' || thisForm.password.value=='') { alert('请填写有效的用户名和密码。      '); return false; }
//return;}
function select_tbl(TID,TIP,n,select_n){
for(i=0;i<n;i++){
var tbl= document.getElementById(TID+i);
var tbtop= document.getElementById(TIP+i);
tbl.style.display="none";
tbtop.style.cssText ="border-bottom-color:#000000"
if(i==select_n){
tbl.style.display="block";
tbtop.style.cssText ="border-bottom-color:#FFFFFF"
}
}
}


function tab_list(topbar,content,n,select_n)
{
for(i=1;i<=n;i++){
var tbl= document.getElementById(content+i);
var tbtop= document.getElementById(topbar+i);
tbl.style.display="none";
tbtop.style.cssText="width:160px;height:28px;border-right-width: 1px;border-right-style: solid;border-right-color: #FEC144;height:28px;border-bottom:1px solid #FEC144;background:url(../images/boxtbg.gif) top left repeat-x;"
if(i==select_n){
tbl.style.display="block";
tbtop.style.cssText="height:28px;width:160px;border-bottom-color:#FFFFFF;background-color:#FFF;border-right-width: 1px;border-right-style: solid;border-right-color: #FEC144;border-bottom-width: 1px;border-bottom-style: solid;"
}
}
}


function select_tbl(TID,TIP,n,select_n,css1,css2){
for(i=0;i<=n;i++){
var tbl= document.getElementById(TID+i);
var tbtop= document.getElementById(TIP+i);
tbl.style.display="none";
tbtop.className=css1
if(i==select_n){
tbl.style.display="block";
tbtop.className=css2
}
}
}


function select_zk(TID,TIP,n,select_n){
for(i=0;i<=n;i++){
var tbl= document.getElementById(TID+i);
var tbtop= document.getElementById(TIP+i);
tbl.style.display="none";
tbtop.className="noselm4"
if(i==select_n){
tbl.style.display="block";
tbtop.className="selm4"
}
}
}