className
is an HTML DOM property. It won't work with SVGs. Use setAttribute()
instead:
if ( boldyze_it ){
document.getElementById("zz").setAttribute("class", "emphit");
}else{
document.getElementById("zz").setAttribute("class", "clear");
}