function ActiveThis(thetab,related,num) 
{
   var tab="";
   var ttab="";
   var i;
   var j=1;
   var tohide;
   var TabtoActive = document.getElementById(thetab);
   for(i=1;i<=num;i++)
       {
        tab="tab_"+j;
        ttab="ttab_"+j;
        tohide = document.getElementById(tab);
        tohide.style.display = "none";
        document.getElementById(ttab).style.background="url(infimages/tabsimages/tab_unactive.jpg) no-repeat right top";
        j++;
       }
   TabtoActive.style.display = "block";
   document.getElementById(related).style.background="url(infimages/tabsimages/tab_active.jpg) no-repeat right top";
   //alert("the div that ACTIVE IS =====>>>>  "+related+"----"+thetab);
}


