var curCookie = Locale.getCookie('locale'); if ((curCookie == null && locale == "") || (retroSite == "true")) { window.location = redirectURL; }