If your site uses a frames setup, you probably do not want the containing pages to be accessed individually. This script ensures they are not. When put inside the page(s) in question, the script checks to see if it's inside a frame, and redirects users to the main frame page if not.