var newwindow = '';

function popwinFocus(url, name, width, height, scroller)
{
	var outstr = 'height=' + height + ',width=' + width;
	if (scroller != 'true')
	{
		outstr = outstr + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no';
	}
	else
	{
		outstr = outstr + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no';
	}
	if (!newwindow.closed && newwindow.location)
	{
		newwindow.location.href = url;
	}
	else
	{
		newwindow = window.open(url, name, outstr);
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}

function popwin(url, name, width, height, scroller)
{
	var outstr = 'height=' + height + ',width=' + width;
	if (scroller != 'true')
	{
		outstr = outstr + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no';
	}
	else
	{
		outstr = outstr + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no';
	}
	window.open(url, name, outstr);
}