var showmap = true if (parent.location.href) {var parentURL = parent.location.href if (parentURL.search('www.bermuda.com')>=0) { document.write ('Sorry. This website is not authorised to use this code.'); showmap = false; } } if (showmap){ document.writeln(''); }