I usually put the java scripting between the <head></head> tags.
Sometimes I will put some scripting below the </head> tag, above the <body> tag. Depends on the scripting.
But I have never put the scripting above the <head> tag and had it work right.
Your scripting for the no right click, is above the <head> tag and should be between them.
I would also look at the tabling. You have the table at 100%, which should make it pull to the border. If you are Using Dreamweaver, you may need to adjust the edges a biit to get it to pull to the border. Don't know why that happens, but everyonce in a while, I get a page that does that. Usually if I start a new page and then put everything into the new page from the old one, it sometimes corrects.
Don't know. I am still learning all this. LOL!