/*
 * $Header: javascript/B10_interfacecontrols.js 1     2/02/02 18:56 Christina $
 *
 * short:   display utility functions for complextrait. Internet
 *
 * $Log: javascript/B10_interfacecontrols.js $
 * 
 * 1     2/02/02 18:56 Christina
 * Initial revision - taken from bit10 intranet
 * 
 * 1     16/10/01 21:39 Alex
 * Initial revision.
 *
 */

//
//  B10_toggleProjects() -- toggle project display in client summary view
//
function B10_toggleProjects(strClient) {
  if (document.all['tbl_' + strClient].style.display == 'none') {
    document.all['ctlShow_' + strClient].style.display  = 'none';
    document.all['ctlHide_' + strClient].style.display  = '';
    document.all['tbl_' + strClient].style.display      = '';
  } else {
    document.all['ctlShow_' + strClient].style.display  = '';
    document.all['ctlHide_' + strClient].style.display  = 'none';
    document.all['tbl_' + strClient].style.display      = 'none';
  }
}


//
//  B10_togglePriorities() -- toggle change display in project summary view
//
function B10_togglePriorities(strPriority) {
  if (document.all['tbl_' + strPriority].style.display == 'none') {
    document.all['ctlShow_' + strPriority].style.display  = 'none';
    document.all['ctlHide_' + strPriority].style.display  = '';
    document.all['tbl_' + strPriority].style.display      = '';
  } else {
    document.all['ctlShow_' + strPriority].style.display  = '';
    document.all['ctlHide_' + strPriority].style.display  = 'none';
    document.all['tbl_' + strPriority].style.display      = 'none';
  }
}


//
//  B10_toggleTOC() -- toggle table of contents
//
function B10_toggleTOC() {
  if (document.all['tbl_toc'].style.display == 'none')  document.all['tbl_toc'].style.display      = '';
  else                                                  document.all['tbl_toc'].style.display      = 'none';
}


//
//  B10_toggleTOCnode() -- toggle a node of the table of contents
//
function B10_toggleTOCnode(strNode) {
  if (document.all['toc_' + strNode].style.display == 'none') {
    document.all['tocShow_' + strNode].style.display  = 'none';
    document.all['tocHide_' + strNode].style.display  = '';
    document.all['toc_' + strNode].style.display      = '';
  } else {
    document.all['tocShow_' + strNode].style.display  = '';
    document.all['tocHide_' + strNode].style.display  = 'none';
    document.all['toc_' + strNode].style.display      = 'none';
  }
}


