var IndexFile = "../framecheck.php";
var Herkunft;
var Location;
var Encoded;
if (this.encodeURIComponent)
{
 if (document.referrer != "") Herkunft = document.referrer;
 else Herkunft = parent.location.href;
 Encoded = encodeURIComponent(Herkunft);
 Location = encodeURIComponent(parent.location.href);
 IndexFile = IndexFile + "?Herkunft=" + Encoded + "&Subsite=" + Location;
}
if (parent.location.href == self.location.href && location.hostname != "")
window.location.href = IndexFile;
