// Basic file to pop-up pages in a new window
// when they have a class of "popup"
function popUp(winURL) {
  window.open(winURL, "popup", "toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
}

$(document).ready(function() {
  $("a.popup").bind("click", function() {
    popUp($(this).attr("href"));
    return false;
  });
});