//alert('Debug: 2'); if (window.location.href == window.parent.location.href) { //Nothing }else{ document.write(""); }