var language = (navigator.language || navigator.userLanguage).toLowerCase(),
en = [ "en", "us", "au", "bz", "ca", "gb", "ie", "jm", "nz", "tt", "za" ],
// array of the languages associated with English
currentPage = window.location.href.toLowerCase();
if (en.indexOf"en" > -1 && currentPage.indexOf("english") == -1) {
// if the user's language is english and the page's link doesn't contain english
// in it, redirect the user to english success page
window.location.replace("https://www.advancedbionics.com/us/en/portals/success-p/pl.html");
}
else if (language == "nl" && currentPage.indexOf("dutch") == -1) {
// if the user's language is dutch and the page's link doesn't contain dutch
// in it, redirect the user to dutch success page
window.location.replace("https://www.advancedbionics.com/us/en/portals/success-p/nl.html");
}
else if (language == "fr" > -1 && currentPage.indexOf("french") == -1) {
// if the user's language is french and the page's link doesn't contain french
// in it, redirect the user to french success page
window.location.replace("https://www.advancedbionics.com/us/en/portals/success-p/pl.html");
}
else if (language == "de" && currentPage.indexOf("german") == -1) {
// if the user's language is german and the page's link doesn't contain german
// in it, redirect the user to german success page
window.location.replace("https://www.advancedbionics.com/us/en/portals/success-p/ru.html");
}
else if (language == "da" > -1 && currentPage.indexOf("danish") == -1) {
// if the user's language is danish and the page's link doesn't contain danish
// in it, redirect the user to danish success page
window.location.replace("https://www.advancedbionics.com/us/en/portals/success-p/es.html");
}
else if (language == "it" > -1 && currentPage.indexOf("italian") == -1) {
// if the user's language is italian and the page's link doesn't contain italian
// in it, redirect the user to italian success page
window.location.replace("https://www.advancedbionics.com/us/en/portals/success-p/es.html");
}
else if (language == "es" > -1 && currentPage.indexOf("spanish") == -1) {
// if the user's language is spanish and the page's link doesn't contain spanish
// in it, redirect the user to spanish success page
window.location.replace("https://www.advancedbionics.com/us/en/portals/success-p/es.html");
}
else {
window.location.replace("https://www.advancedbionics.com/us/en/portals/success-p/en.html");
}
Account Registration Complete
Your registration is complete
You now have access to these AB web properties (using the links provided) as well as the AB online Portal.
BabyBeats
If you just completed a registration for BabyBeats, close this browser and log into the BabyBeats App.
HearingSuccess
If you just completed a registration for the HearingSuccess.com, then use the button here to launch the site.
AB Pro Portal
If you just completed a registration for the AB Professional Portal, then use the button to launch the AB Portal.