/**
 * Checks/unchecks all checkboxes
 *
 * @param   string   the form name, and the field name
 * @param   boolean  whether to check or to uncheck the element
 *
 * @return  boolean  always true
 */
function setCheckboxes(frm, fld, do_check) {
    var elts      = document.forms[frm].elements[fld];
    var elts_cnt  = (typeof(elts.length) != 'undefined')
                  ? elts.length
                  : 0;

    if (elts_cnt) {
        for (var i = 0; i < elts_cnt; i++) {
            elts[i].checked = do_check;
        } // end for
    } else {
        elts.checked        = do_check;
    } // end if... else

    return true;
} // end of the 'setCheckboxes()' function

/**
 * open a new browser window
 *
 * @param   string  the url to open
 * @param   string  the name of the window 
 * @param   string  options of the window
 */
function popWin(url, name, options) {
      var ContextWindow = window.open(url, name, options);
      ContextWindow.opener = this;
      ContextWindow.focus();
  }

  function em(n) {
      var d = "ifap" + ".de";
      document.write('<a href=\"mailto:' + n + '@' + d + '\">');
      document.write(n + '@' + d + '</a>');
  }

