var newwindow = '';

function launch(url,W,H)
{
	if (!newwindow.closed && newwindow.location)
	{
		newwindow.location.href = url;
	}
	else
	{
    	newwindow=window.open(url,'DocWin','resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width='+W+',height='+H+',screenX=100')
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}
function launch_big(url)
{
	if (!newwindow.closed && newwindow.location)
	{
		newwindow.location.href = url;
	}
	else
	{
    	newwindow=window.open(url,'Win','resizable=yes,scrollbars=yes,toolbar=no,status=yes,menubar=no')
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}
function launch_win(url,W,H,N)
{
	if (!newwindow.closed && newwindow.location)
	{
		newwindow.location.href = url;
	}
	else
	{
    	newwindow=window.open(url,N,'scrollbars=yes,resizable=yes,toolbar=no,status=no,menubar=no,width='+W+',height='+H+',screenX=400,alwaysRaised=Yes,alwaysontop=yes');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}
