$(document).ready(function() {
  var popupEvent = function(event) {
  window.open(this.href);
  event.preventDefault();
  event.stopPropagation();
 }
 $("a.newwin").each(function(i) {
 $(this).click(popupEvent);
 });
});





