function click() {
if (event.button==2 || event.button==3) {
alert('Sorry, this function is disabled.')
}
}
document.onmousedown=click