function goto(action, data) {
  $('goto').action = action;
  $('goto').data.value = data;
  $('goto').submit();
}// goto()

function setExternalLinks() {
  if ( ! document.getElementsByTagName ) {
    return null;
  }
  var anchors = document.getElementsByTagName('a');
  for (var i=0; i<anchors.length; i++) {
    var anchor = anchors[i];
    if ( anchor.getAttribute('href') && anchor.getAttribute('rel')=='extern' ) {
      anchor.setAttribute('target', '_blank');
    }
  }
}// setExternalLinks()

function getChildById(parentObj, childId) {
  var childs = parentObj.childElements();
  for (var i=0; i<childs.length; i++) {
    if ( childs[i].identify()==childId ) {
      return(childs[i]);
    }
  }
  return(false);
}// getChildById()
