
/*
 *  Tab Function for Party Unity
 */ 

function showtab(index)
    {
      for( var i = 1; i <= 4; i++ )
      {
        var theDiv = document.getElementById( "tab" + i );
        if( i == index )
        {
          theDiv.style.display = 'block';
        }
        else
        {
          theDiv.style.display = 'none';
        }
      }
    }


/**
 * Another function for generating a pop-up window.
 * 
 * @param url    url of the resource to display in the pop-up
 * @param name   name of pop-up window
 */
function startWin(url, name) {
   var popupWin = null;
   var winName = "cq" + name; // add cq to the name so that we can detect that it's one of our pop-ups
   popupWin = window.open(url, winName,'resizable,toolbar,scrollbars,menubar,width=680,height=400');
   
   // 2005-01-23 - Commented out code for ancient browsers.
   
   // focus window (only for Navigator >= 3.0)
   //if ( (navigator.appName != "Microsoft Internet Explorer") && (navigator.appVersion.substring(0,1) >= "3") )
     popupWin.focus();
}




