﻿// JScript File
function toggleTabs(viewTab,tabsprefix,mincount,maxcount,liID,liprefix) {
      //ebugger;
      try
      {
        var view=document.getElementById(viewTab);    
        var cssClass = '';
           
        //show the requested tab
            if(view!=null){    
                view.style.visibility = "visible";
                view.style.display = "block";
                //cssClass = document.getElementById(liID).className;
                document.getElementById(liID).className = "active_tab";
            }
        
        //loop through all divs from min id to max id count
            for(var y=mincount; y<=maxcount;y++)
            {        
                //get current div
               //debugger;
                var singleDiv = document.getElementById(tabsprefix + y);        
                if((singleDiv!=null) && (singleDiv.id != view.id))
                {
                    singleDiv.style.visibility = "hidden";
                    singleDiv.style.display = "none";
                    document.getElementById(liprefix + y).className = cssClass;
                }
            }    
        }
        catch(err)
        {
        }
   }
   