
function OnDisplayContextMenu()
{
	event.cancelBubble = true;
	event.returnValue = false;
	return false;
}

function OnMouseClick(e)
{
	if (window.Event)
	{
		if ((2 == e.which) || (3 == e.which))
		{
			return false;
		}
	}
	else if ((2 == event.button) || (3 == event.button))
	{
		event.cancelBubble = true;
		event.returnValue = false;
		return false;
	}

	return true;
}

if (window.Event)
{
	document.captureEvents(Event.MOUSEUP);
}

if (document.layers)
{
	document.captureEvents(Event.MOUSEDOWN);
}

document.oncontextmenu = OnDisplayContextMenu;
document.onmousedown = OnMouseClick;
document.onmouseup = OnMouseClick;


var g_appSettings = new Array();
g_appSettings["ComputingEnvironmentName"] = "PROD";
g_appSettings["TGConsoleBaseURL"] = "http://www.tournamentgames.com/consolev10/";
g_appSettings["TGConsoleBaseURLSecure"] = "https://www.tournamentgames.com/consolev10/";

function HandleJavascriptException(e)
{
throw(e.description);
}
