var from=document.location.href;
if(top.frames.length<2) { top.location.href="/index.php#"+from; }

