document.write("hostname: " + location.hostname "
"); Error in detecting domain name