function setCredentials() {
  var credListItem = document.getElementById("credentials").getElementsByTagName("li");
  for (var i=0; i<credListItem.length; i++) {
    if (i % 2 != 0) {
      credListItem [i].style.background="#eff1f0";
    }
  }
}

function hideLinks() {
  var docLinks = document.getElementById("mainbar").getElementsByTagName("a");
  for (var i=0; i<docLinks.length; i++) {
    docLinks[i].href="#";
  }
}

function addEvent(el, evname, func) {
  if (el.attachEvent) el.attachEvent("on" + evname, func);
  else el.addEventListener(evname, func, true);
}

function printPopUp(newLocation) {
  var w = 700;
  var h = 560;
  var popUpWindow = window.open(newLocation, 'popup', 'resizable=yes, status=no, toolbar=no, scrollbars, width='+w+', height='+h);
  popUpWindow.resizeTo(w, h);
  popUpWindow.focus();
}
