ild);
	}

	// Make the login request
	var xhr = new XMLHttpRequest();
	var url = "login";
	xhr.open("POST", url, true);
	xhr.setRequestHeader("Content-Type", "application/json");
	xhr.onreadystatechange = function () {
	    if (xhr.readyState === 4 && xhr.status === 200) {
	        var json = JSON.parse(xhr.responseText);
	        
	        if (json.result === "OK") {
	        	sessionStorage.setItem("accesstoken", json.nonstd);
	        	window.location.replace("home.html");
	        } else {
	        	con