if (document.layers) document.captureEvents(Event.MOUSEDOWN);
function onmdown (e)
{
//	if( ! e ) e = window.event;
//	if ( (e.button && e.button == 2) || (e.which && e.which == 3) )
		return bla();

	return true;
}

function onkdown(e)
{
	if( ! e ) e = window.event;
	var ctrl = e.ctrlKey;
	var code = e.keyCode;
	if (ctrl && String.fromCharCode(code).match(/c/gi) != null)
		return bla();
	return true;
}

function bla ()
{
	var mode = (window.getSelection || document.getSelection) ? 1 :
		(document.selection && document.selection.createRange ? 2 : 0 );

	if (mode == 0)//mode 0 - selection handling not-supported
	{
			// ...
	}
	else if (mode == 1) //mode 1 - Firefox, opera, safari
	{
		if (window.getSelection)
		{
			sel = window.getSelection();
			if (sel.toString().length > 150)
				sel.removeAllRanges();
		}
		else if (document.getSelection)
		{
			sel = document.getSelection();
			if (sel.length > 150)
				return false;
		}
	}
	else if (mode == 2) //mode 2 - IE
	{
		sel = document.selection.createRange();
		if (sel.text.length > 150)
			document.selection.empty()
	}

	return true;	
}
//document.onmousedown = onmdown
document.onmouseup = onmdown
document.onkeydown = onkdown;