I was recently informed by someone that my website was copied. When I looked at the linked that he gave me I so that the site was identic to mine except for the logo and tex
Don't do this! It makes no sense to do this, since the user can disable the script, and there are many tools like Firebug by which a user can see the code.
The best way to keep safe the store is installing a security camera while leaving the doors open.
You can simply disable the right click by following:
...
or
The code above is from this article