function nTabs(thisObj,Num){ 
if(thisObj.className == "active")return; 
var tabObj = thisObj.parentNode.id; 
var tabList = document.getElementById(tabObj).getElementsByTagName("li"); 
for(i=0; i <tabList.length; i++) 
{ 
if (i == Num) 
{ 
   thisObj.className = "active"; 
      document.getElementById(tabObj+"_Content"+i).style.display = "block"; 
}else{ 
   tabList[i].className = "normal"; 
   document.getElementById(tabObj+"_Content"+i).style.display = "none"; 
} 
} 
}
//CSS左右等高
function alertHeight(){
    
     var divH1 = document.getElementById("LeftSidebar");
     var divH2 = document.getElementById("MainBody");
     var allHeight= divH1.clientHeight > divH2.clientHeight ? divH1.clientHeight:divH2.clientHeight;
     divH1.style.height=allHeight + 'px';
     divH2.style.height=allHeight + 'px';
}
window.onload=alertHeight;
