function setRoleAttribute(id, rolevalue) {
if(document.getElementById(id)) {
document.getElementById(id).setAttribute("role", rolevalue);
}
}
function setAriaRoleElementsById() {
setRoleAttribute("navigation", "navigation");
setRoleAttribute("main", "main");
setRoleAttribute("complementary", "complementary");
setRoleAttribute("complementary2", "complementary");
setRoleAttribute("contentinfo", "contentinfo");
setRoleAttribute("application", "application");
setRoleAttribute("banner", "banner");
setRoleAttribute("search", "search");
}
window.onload=function(){ setAriaRoleElementsById(); } 

