In short, you can't. If you don't want people using your images or layout ideas, don't put them on the web. There are many ways to retrieve images, so don't bother using client-side JavaScript to trap right-click events (I can get around that simply by disabling JavaScript, using a browser without onContextMenu support, or using my 'PrintScreen' button). However, to get an exhaustive tutorial for preventing casual surfers from using the common methods of saving images, see
Protecting Your Images on the Web ...