// pop_me_up - open a window
///////////////////////////////
function pop_me_up(pURL,name,features){
		new_window = window.open(pURL,name,features);
		new_window.focus();
	}
	

// setClass - change the class of an object
///////////////////////////////
function setClass (objectID, newClass){
 var object = sfxGetElement(objectID);
 object.className = newClass;
}

// olcChangeTab - show/hide tab section
////////////////////////////////////
function olcChangeTab(tabGroupNumber,activeTabNumber,totalTabs) {
  for( var tabIdx = 1; tabIdx <= totalTabs; ++tabIdx )
    if( tabIdx == activeTabNumber ) {
      sfxToggleVisibility('olcTabContent_'+tabGroupNumber+'_'+tabIdx, true );
	  setClass('olcTab_'+tabGroupNumber+'_'+tabIdx, 'active' );
	 }
	else if ( tabIdx != activeTabNumber ) {
	  sfxToggleVisibility('olcTabContent_'+tabGroupNumber+'_'+tabIdx, false );
	  setClass('olcTab_'+tabGroupNumber+'_'+tabIdx, 'normal' );
	  }
	 
    }
	
// addLoadEvent - can be used anywhere in place of a body onload
////////////////////////////////////
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
