if (status == 200) { if(typeof data.Location!=='undefined') { document.location.assign(data.Location); return true; }