var open_on_parent = function(link) {
	if (window.opener)
		window.opener.location.href = link.href;
	else
		window.location.href = link.href;
}
