 function switchtab(numtabs, tabsname, tabcontentname, thistab) 
  {
    var tabsarray = new Array('tab1', 'tab2', 'tab3');
    var tabContentArray = new Array('div1', 'div2', 'div3');
    var functioname = 'switchtab';
    var debug = false;
    
      /* set the tabs class value */
      for (i = 1; i <= numtabs;) 
      {
        if (debug)
        {
          alert(functioname + '\n' + 'tabsname is: ' +  tabsname + '\n' + 'value of i is: ' + i + '\n' + 'number of tabs is: ' + numtabs + '\n' + 'numtabs plus i is: ' + tabsname + i + '\n' + 'thistab is: ' + thistab + '\n' + 'thiscontent is: ' + thiscontent);
        }
        document.getElementById(tabsname + i).className = '';
        i++;
      }
      /* now set the actual divs class values */
      for (i = 1; i <= numtabs;) 
      {
        //document.getElementById(tabContentArray[i]).style.display = 'none';
        document.getElementById(tabcontentname + i).className = 'storycontent';
        if (debug) {alert(functioname + '\n' + 'tabcontentname is: ' +  tabcontentname + '\n' + 'value of i is: ' + i + '\n' + 'number of tabs is: ' + numtabs + '\n' + 'numtabs plus i is: ' + tabcontentname + i + '\n');}
        i++;
      }
          document.getElementById(tabsname + thistab).className = "selected";
          document.getElementById(tabcontentname + thistab).className = "storycontent storyactive"
          // set the actual tabs style
  }
  
   function nuller(nichts) {
      //do nothing;
    }