function popup(mylink, windowname, width, height, left, top)
{
	if (! window.focus)
	{
		return true;
	}
	var href;
	if (typeof(mylink) == 'string')
	{
		href=mylink;
	}
	else
	{
	href=mylink.href;
	}
	window.open(href, windowname, 'width='+width+
								 ',height='+height+
								 ',left='+left+
								 ',top='+top/*+
								 ',toolbar=no'+
								 ',location=no'+
								 ',directories=no'+
								 ',status=no'+
								 ',menubar=no'+
								 ',scrollbars=no'*/);
	return false;
}

function targetopener(mylink, closeme, closeonly)
{
	if (! (window.focus && window.opener))
	{
		return true;
	}
	window.opener.focus();
	if (! closeonly)
	{
		window.opener.location.href=mylink.href;
	}
	if (closeme)
	{
		window.close();
	}
	return false;
}