var pops = new Object();
function pop(ret, link, left, top, width, height)
{
	var win = pops[link.target];
	if (win && !win.closed) {
		win.focus();
		// don't reload if user is already there
		if (win.location.href != link.href)
		{
			win.location.href = link.href;
		}
		//window.close(link.target);
	} else {
		var opts = 'toolbar=no,location=no,directories=no,status=no';
		opts += ',menubar=no,scrollbars=yes,resizable=no,copyhistory=yes';
		opts += ',width='+width+',height='+height;
		opts += ',left='+left+',top='+top;
		opts += ',screenX='+left+',screenY='+top;
		pops[link.target] = open(link.href, link.target, opts);
	}
	return ret;
}
