function OpenWnd(p_strFileName, p_strWindowName, p_strWindowOptions, p_blnSetFocus)
{
	var wndPopup =
		window.open(p_strFileName, p_strWindowName, p_strWindowOptions);
	
	// Ensure that focus is set to the newly-opened window, if requested.
	if (p_blnSetFocus)
		wndPopup.focus();
		
	return (wndPopup);
}

function OpenWndPopupStd(p_strFileName, p_strWindowName)
{
	OpenWnd(
		p_strFileName,
		p_strWindowName,
		"toolbar=yes,status=yes,scrollbars=yes,resizable=yes,width=500,height=520,left=5,screenX=5,top=5,screenY=5",
		true);
}

function CS_HideIELinkFocus()
{
	for (var intIdxLink in document.links)
	{
		document.links[intIdxLink].onfocus = document.links[intIdxLink].blur;
		document.links[intIdxLink].hideFocus = true;
	}
}

if (document.all)
{
	document.onmousedown = CS_HideIELinkFocus;
}
