/*
	lib_global.php
	Library of global functions used throughout the site
	Requires xbDOM.js and lib_misc.js
 */

/*
  help_onChange
  Function called when the help object's selection is changed
 */
function help_onChange() {
  help = getElement("help");
  if ( help.selectedIndex > 0 ) {
    if ( help[help.selectedIndex].value.length == 0 ) {
      alert("fix me");
    }
    else {
      // Open help window
      sitechunkHelp = window.open('/_help/'+help[help.selectedIndex].value,'sitechunkHelp','height=300,width=400,top=100,left=100,resizeable=yes,scrollbars=yes,menubar=no,location=no,status=no');
      // Focus help window
      sitechunkHelp.focus();
      // Reset help menu
      help.selectedIndex = 0;
    }
  }
}

