if (top.location.href!=location.href) alert("non sei in un frameset")

ciao