//
// Description:	User interface disabling javascript module
// File:		uiDisable.js
// Author:		Guy Fernando (Copyright Informatix Ltd)
// Date:		21/05/2002
//

// disable right mouse click

var message="";

function clickIE()
{
	if (isMinIE4)
	{
		(message);
		return false;
	}
}

function clickNS(e)
{
	if (isMinNS4 || isMinNS6)
	{
		if (e.which == 2 || e.which == 3)
		{
			(message);
			return false;
		}
	}
}

if (isMinNS4) 
{
//	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown = clickNS;
}
else
{
	document.onmouseup = clickNS;
	document.oncontextmenu = clickIE;
}

document.oncontextmenu = new Function("return false")

// always display in frame

if (window.self == window.top)
{
	window.location.href = "./";
}
