function Main_Open_Window(strLink, strName, intWidth, intHeight, blnScroll)
{
	var intTop		=	(screen.height / 2) - (intHeight /2)
	var intLeft		=	(screen.width / 2) - (intWidth / 2)
	var	strOptions	=	"width=" + intWidth + ",height=" + intHeight + ",top=" + intTop + ",left=" + intLeft ;
	var objWindow;
	
	if (blnScroll)
	{
		strOptions	=	strOptions + ",toolbar=no,location=no,status=no,menubar=no,resizable=no,scrollbars";
	}
	else
	{
		strOptions	=	strOptions + ",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no";
	}
	objWindow		=	window.open(strLink,strName, strOptions);
	if (objWindow.focus)
	{
		objWindow.focus();
	}
	
	return objWindow;
}

function Open_Window(strLink, intWidth, intHeight)
{
	Main_Open_Window(strLink, 'weblogik', intWidth, intHeight, false);
}


function Open_Scroll_Window(strLink, intWidth, intHeight)
{
	Main_Open_Window(strLink, 'weblogik', intWidth, intHeight, true);
}

function Open_Named_Window(strLink, strName, intWidth, intHeight)
{
	Main_Open_Window(strLink, strName, intWidth, intHeight, false);
}


function Open_Named_Scroll_Window(strLink, strName, intWidth, intHeight)
{
	Main_Open_Window(strLink, strName, intWidth, intHeight, true);
}

