isIE = (document.all ? true : false);
isNS = (document.layers || (document.getElementById && !(document.all)) ? true : false);

function clickIE()
{
	if (isIE)
		return false;
}

function clickNS(e)
{
	if (isNS)
	{
		if (e.which == 2 || e.which == 3)
			return false;
	}
}

if (isNS)
{
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown = clickNS;
}
else
{
	document.onmouseup = clickNS;
}

document.oncontextmenu = new Function("return false");
