function RestrictRightClick(myButton) {
if (document.all)	{
if (event.button == 2)	{
alert ('右クリックは制限されています');
return false;
}
}
else if (document.getElementById)	{
if (myButton.which == 3)	{
location.href='event2_blank.htm';
alert('右クリックは制限されています');
location.href='event2_sub.htm';
}
}
if (document.layers)	{
if (myButton.which == 3)	{
alert ('右クリックは制限されています');
return false;
}
}
}
if (document.all || document.getElementById)
document.onmousedown = RestrictRightClick;
if (document.layers)	{
window.captureEvents (Event.MOUSEDOWN);
window.onmousedown = RestrictRightClick;
}

