Hey guys I use this tiny javascript to break out of frames (works great), but sometimes this causes my website to keep on reloading over and over, is there any way to modify this code so that it only does it once? Or only once per visitor?

Code:
<SCRIPT LANGUAGE="JavaScript">
<!--
setTimeout ("changePage()", 1000);
function changePage() {
if (self.parent.frames.length != 0)
self.parent.location="http://MY-SITE.com";
}
// -->
</SCRIPT>