
function jargonWindow() {
  var jbWin = window.open( "jargonbuster.html", "ct3_jargon_buster", "toolbar=no, status=no, menubar=no, scrollbars=yes, resizable=yes, directories=no, location=no, width=600px, height=500px, left=0px, top=0px" );
  jbWin.focus();
}

function alertElements ( elm ) {
  var str = "" + elm + ":";

  for( m in elm ) {
    desc = "" + eval('elm.'+m);
    if( desc && desc.indexOf('function')>=0 ) desc = 'function';

  str += "[" +m+ "]=" +desc+ " ";
  }

  alert( str );
}

function showByTagAndId( tag, id ) {
  var elements = document.getElementsByTagName(tag);
  for( i=0; (elm = elements[i]); i++ ) {
    var elmid = elm.getAttribute("id");
    if( elmid == id ) {
      alertElements( elm );
    }
  }
}

function link2bold() {
  loc = window.location.href;
  page = loc.substr( loc.lastIndexOf('/')+1 );
  aid = page.substr( 0, page.lastIndexOf('.') );

  e = document.getElementById( aid );
  if( e && e.parentNode ) e.parentNode.innerHTML = "<b>"+e.innerHTML+"</b>";
}
