function initOpenNewWindow() {
  var popupEvent = function(event) {
    var option = this.href.replace(/^[^_?]+_??/,'').replace(/&/g, ',');
    window.open(this.href, this.rel, option).focus();
    event.preventDefault();
    event.stopPropagation();
  }
  j$("a.popup").each(function(i) {
      j$(this).click(popupEvent);
      j$(this).keypress(popupEvent);
  });
}
