function popup(target, name, width, height, scrollbars, features) {
	popupURL = target.href;
	scrollbars = scrollbars ? 'yes' : 'no';
	name = (name == '') ? 'popup' : name;
	popupParams = 'location=no,scrollbars=' + scrollbars + ',width=' + width + ',height=' + height + features;
	
	newWin = window.open(popupURL, name, popupParams);
	if (window.focus) { newWin.focus(); }
	if (window.resizeTo) { newWin.resizeTo(width + 6, height + 30); }
	
	return false;
}

function openInParent(target) {
	popupURL = target.href;
	retVal = true;
	
	if (window.opener) {
		window.opener.location.href = popupURL;
		window.close();
		retVal = false;
	}
	
	return retVal;
}