var tloc=top.location.href;
if (tloc.indexOf(".php") != -1 && tloc.substr(tloc.lastIndexOf("/"), 99) != "/index.php" ) top.location="index.php";

