if(frames)
{
if(top.frames.length > 0)
top.location.href=self.location;
}
else
{
open("noframe.htm", "NoframeWindow");
close();
}