var dns = "https://hosting.wialon.com";
var url = dns + "/login.html";
url += "?client_id=" + "App";
url += "&access_type=" + 0x100;
url += "&activation_time=" + 0;
url += "&duration=" + 604800;
url += "&redirect_uri=" + dns + "/post_token.html";
window.addEventListener("message", tokenRecieved);