if (window.opener) {var b=window.opener.location.hostname;}else {var b=top.location.hostname;}