右クリックできないよ!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>右クリック禁止</title>
<META http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<META http-equiv="Content-Style-Type" content="text/css">
<script language="JavaScript">
<!--
function mouse_r_down(evnt){
if(document.all){//document.allが有効なら
if(event.button == 2){//右クリック検出
alert("右クリックできないよ!");//アラート表示
return(false);
}
}
if(document.layers){//document.layersが有効なら
if(evnt.which == 3){//右クリック検出
alert("右クリックできないよ!");//アラート表示
return(false);
}
}
}
if(document.layers){//document.layersが有効なら
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = mouse_r_down;
//-->
</script>
<style type="text/css">
<!--
body { text-align: center;}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><img src="1.jpg" width="400" height="300"><br>
<b>右クリックできないよ!</b></p>
</body>
</html>