I'm using:

Code:
<script type="text/javascript">
  if(top != self) top.location.replace(location);
</script>
but when it kicks in, the referer goes. I want the referer to still be available when the page reloads?