// prototype.js is required

var LinkToDatabasePopup = Class.create();
LinkToDatabasePopup.prototype = {
	initialize: function() {
		var element = document.getElementById("link-to-database");
		Event.observe(element, 'click', this.onClick.bindAsEventListener(this));
	},
	onClick: function(event) {
		var href = Event.element(event).getAttribute('href');
		window.open(href, "g10database", "left=16,top=16,width=700,height=600,menubar=no,toolbar=no,scrollbars=yes");
		Event.stop(event);
	}
};
Event.observe(window, 'load', function() {
	new LinkToDatabasePopup();
});
