
function clickIE(event)
{
	if (event.button==2){ return false; } 
}

function onKeyDown(event) {

	var pressedKey = String.fromCharCode(event.keyCode).toLowerCase();

	if (event.ctrlKey && (pressedKey == "c" || pressedKey == "a"))
	{
		return false;
	}
}

window.onload = function() 
{

	if (document.all) // if internet explorer
	{
		// to avoid text selection with the mouse
		document.onselectstart	= function() {return false;}
	}

	// to avoid text selection with CTRL-A and text copy with CTRL-C (valid to IE and Firefox)
	document.onkeydown		= function(event) { return onKeyDown(event); }

	// to avoid context menu (valid to IE and Firefox)
	document.oncontextmenu	= new Function("return false");
}

