String.prototype.Left = function(len)
{ 

        if(isNaN(len)||len==null)
        {
                len = this.length-1;
        }
        else
        {
                if(parseInt(len)<0||parseInt(len)>this.length)
                {
                        len = this.length;
                }
        }
        return this.substr(0,len);
} 
function nTabs2(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabObjj = tabObj.Left();
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i <tabList.length; i++)
{
  if (i == Num)
  {
   thisObj.className = "active"; 

      document.getElementById(tabObjj+"_Content"+i).style.display = "block";
  }else{
   tabList[i].className = "normal"; 
   document.getElementById(tabObjj+"_Content"+i).style.display = "none";
  }
}

}

