function doClick(url){
    url = decode64(url);
    var a = document.createElement("a");
    if(!a.click) { ;
        window.location = url;
        return;
    }
    a.setAttribute("href", url);
    a.setAttribute("target","_blank");
    a.style.display = "none";
    document.body.appendChild(a);
    a.click();
}
