var vu = document.URL.split("/");
var urlhost = vu.length >= 2 ? vu[2] : "";
var v = document.referrer.split("/")
var host = v.length>=2 ? v[2] : ""
if (urlhost.indexOf("localhost:")!=0    // disable url enforcement when on development machine, i.e. localhost.
    && host != "e-raamatukogu.com"
    && host != "109.228.8.181"
    && host != "www.e-raamatukogu.com"
    && host != "vault1.secured-url.com"
    && host.indexOf("localhost:") != 0) {
        alert("Palun sisene sellele lehele läbi E-raamatukogu keskkonna!")
	    location = "http://www.e-raamatukogu.com"
}
	window.defaultStatus = "This is the status bar";
