function open_window(url, name, width, height, features)
{
	if(width == undefined)
	{
		width = 300;
	}

	if(height == undefined)
	{
		height = 300;
	}

	if(features == undefined)
	{
		features = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1';
	}

	win = window.open(url, name, 'width=' + width + ',height=' + height + ',' + features);
	win.focus();
}

function opener_location(url)
{
	opener.location.href = url;
	opener.focus();
}

function close_window(name)
{
	window.close(name);
}