var caught = 0;

if (top.frames.length != 0)

{

caught++;

if (caught != 0)

{

top.location=self.document.location;

}

}