document.getElementById("login_form").style.display="";
document.getElementById("hn").disabled=false;
document.getElementById("hn").focus();
document.getElementById("hgo").disabled=false;
function do_login()
{
    var hostname = document.getElementById("hn").value.replace(/\s+/g,"");
    if(hostname.match(/^[a-zA-Z0-9-]+$/))
    {
        window.location = "https://"+hostname+".infomanaged.co.uk";
    }
    else
    {
        if(hostname == "")
        {
            alert("Please enter the first part of the web address. It's unique to your organisation.")
        }
        else
        {
            alert("Please check the address you entered. It can only contain letters, numbers and the - character.");
        }
    }
}
