myname=self.location.href;

n=myname.lastIndexOf("/");

if (n < 0)
{
	myname="";
}
else
{
	myname=myname.substr(n+1);
}

n=myname.lastIndexOf("#");

if (n >= 0)
{
        myname=myname.substr(0,n)+"~"+myname.substr(n+1);
}

myname="http://eztorrent.courier-mta.com/index.php?" + myname;

x=top.location.href;

if (x.substr(0, 5) != "file:")
{
  if (x.substr(0,33) != "http://eztorrent.courier-mta.com/")
  {
	top.location=myname;
  }

  if (top == self)
  {
    top.location=myname;
  }
}
