
function click() {
if (event.button==2||event.button==3) {
oncontextmenu='return false';
}
}
document.onmousedown=click
document.oncontextmenu = new Function("return false;")


function blockError() {
	return true;
}

window.onerror = blockError;

function disableselect(e) {
	return false;
}

function reEnable() {
	return true;
}

//Se o browser for IE4+
document.onselectstart = new Function("return false");

//Se o browser for NS6
if(window.sidebar) {
	document.onmousedown = disableselect;
	document.onclick = reEnable;
}


