net.principa.PopupLink = Class.create();
net.principa.PopupLink.prototype =
{
	node: null,
	width: null,
	height: null,

	initialize: function(node, width, height)
	{
		this.node = node;
		this.width = width;
		this.height = height;
		
		Event.observe(node, 'click', delegate(this, this.onClickLink));
	},
	
	onClickLink: function(event)
	{
		window.open(this.node.href, 'principapopup' + (new Date().getTime()), 'width=' + this.width + ',height=' + this.height + ',status=yes,resizable=yes').focus();
		return false;
	}
}

