If you want to protect your pages from being opened within a frame, use the following script:
if (self != top)
top.location = self.location
This code checks to see if this page is the top page (i.e., that it's being loaded into the original window rather than into a frame). If it isn't, the page is set to load into the original window.