       function canviaclasse(classeinicial,classefinal) {
                var elements = document.getElementsByTagName("li");
                for (i=0;i<elements.length;i++) {
                    if (elements[i].className==classeinicial) { elements[i].className=classefinal; }
                }
       }

function augmenta2() {
                if (!document.body.style.fontSize) { textSize=0.75; }
                else {
                     var textSize = parseFloat(document.body.style.fontSize.replace('em', ''));
                }
                textSize += 0.25;
                document.body.style.fontSize = textSize + 'em';
                document.getElementById('contingut').style.fontSize = textSize + 'em';
}
function redueix2() {
                if (!document.body.style.fontSize) { textSize=0.75; }
                else {
                   var textSize = parseFloat(document.body.style.fontSize.replace('em', ''));
                }
                textSize -= 0.25;
                document.body.style.fontSize = textSize + 'em';
                document.getElementById('contingut').style.fontSize = textSize + 'em';
}
function augmenta() {
                if (!document.getElementById("univers").style.fontSize) { textSize=1; }
                else {
                     var textSize = parseFloat(document.getElementById("univers").style.fontSize.replace('em', ''));
                }
                textSize += 0.10;
                document.getElementById("univers").style.fontSize = textSize + 'em';
}
function redueix() {
                if (!document.getElementById("univers").style.fontSize) { textSize=1; }
                else {
                   var textSize = parseFloat(document.getElementById("univers").style.fontSize.replace('em', ''));
                }
                textSize -= 0.10;
                document.getElementById("univers").style.fontSize = textSize + 'em';
}


function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;
