// -*- mode: java -*-
/*
 * Javascript popup window library
 *
 * provides functions for popping popup windows.
 *
 * REQUIRES: jQuery
 *
 * PROVIDES:
 *
 * createPopupLinks(selector, w, h, name, spec) --
 *    update links with given selector to pop up their href in a window as 
 *     defined by the other params.
 */

function createPopupLinks(selector, w, h, name, spec) {
	$(selector).click(function(e) {
		e.preventDefault();
        name = name || 'info';
		spec = (spec || 'scrollbars=yes, resizable=no') + ',width=' + w + ',height=' + h;
		window.open(this.href, name, spec);
	});
}

$(function() {
  $('a.popup_close').bind('click', function(){window.close();});
});

