txt = document.URL.split("/");
teil = txt.length;
if (window == top) {window.location.href="hp.php?i=" + txt[teil-1];}