

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

//detect keypress


var key = function (e) {
e = e || window.event;
var k = e.keyCode || e.which;
	if (k==67) {
		clearSelText()
	}
     if (k == 17 || k ==65) {
		 clearSelText()
         //return false
     };
};
document.onkeyup = key;
document.onkeydown = key;

//stop copy and paste


function clearSelText()
{
	if (navigator.appName == "Microsoft Internet Explorer") {
		sel = document.selection.createRange();
		sel.text = ''
	} else {
    	sel = window.getSelection();
		sel.removeAllRanges();
	}
	

}


function startNOCP(){
	//block = setInterval("window.clipboardData.setData('text','')",20);
}
function stopNOCP(){
clearInterval(block);
}

//stop select

document.onselectstart=new Function ("return false")
function ds(e) {return false}
function ra() {return true}
document.onmousedown=ds
document.onclick=ra
//document.onmousemove = function() {nocb();}