/* misc_utils.js:  miscellaneous utililites for life with Javascript and XHTML.

   Copyright (C) 2009 Black Mesa Technologies LLC

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program, in the Licenses subdirectory, in file
   GNU_GPL.
   
   If the license was not provided, or is missing, see 
   <http://www.gnu.org/licenses/>.

*/

/* Revisions:
   2009-03-14 : CMSMcQ : made first version of these utilities
*/

// id(s):  return the element with id = s
// (from the XPath 1.0 function library)
function xsl_id(nmtoken) {
  return document.getElementById(nmtoken);
}



function debugtrace(s,level) {
  if (verbosity >= level) {
    alert(s);
  }
}
