if (window.location.host=="mysite.ru") { if (top != self) { document.write("No") } else { document.write("Yes") } } else { document.write("No") }