function domain() {
var url = document.location.href;
url = url.replace(/^(http:\/\/|https:\/\/)*([a-zA-Z0-9-_\.=]+):*.*/, "$2");
var res = url.match(/^(mail|webmail|www|freemail|)\.(.*)/);
if (res) { url = res[2] }
return url;
}

