if (top == self) 
{
  location.replace("../dynamicindex.htm?" + self.location)
}