function
reload_opener_and_close()
{
	window.opener.location.href = window.opener.location.href;
	window.close();
}

function
reload_opener()
{
	window.opener.location.href = window.opener.location.href;
}

/*
 * Alias for wz_tooltip::Tip()
 * The file wz_tooltip.js must be included.
 */
function
my_tip(title, txt, width)
{
	if (width == undefined)
		width = 0;

	Tip(txt, TITLE, title, WIDTH, width, ABOVE, true, FONTSIZE, '10pt');
}

/* TODO */
function
select_all_cat()
{
	els = document.getElementById('cat_id');
	if (!els)
		return false;

	for (n = 0; n < els.length; n++) {
		alert('ok');
		els[n].checked = true;
	}
}

function
show_or_hide_socname(type)
{
	socname = document.getElementById('socnamebox');
	if (!socname)
		return false;

	if (type == 'PP')
		socname.style.display = 'none';
	else
		socname.style.display = '';

	return true;
}

