﻿/*
function changeFontSize(inc){  
    var p = document.getElementsByTagName('p');  
    for(n=0; n<p.length; n++) {    
        if(p[n].style.fontSize) {       
            var size = parseInt(p[n].style.fontSize.replace("px", ""));    
        } else {  
            var size = 10;    
        }    
        
        p[n].style.fontSize = size+inc + 'px';   
    }
    
    var p = document.getElementsByTagName('a');  
    
    for(n=0; n<p.length; n++) {    
        if(p[n].style.fontSize) {       
            var size = parseInt(p[n].style.fontSize.replace("px", ""));
        } else {  
            var size = 10;    
        }
        
        p[n].style.fontSize = size+inc + 'px';
    }  
    
    var p = document.getElementsByTagName('li');  
    
    for(n=0; n<p.length; n++) {    
        if(p[n].style.fontSize) {       
            var size = parseInt(p[n].style.fontSize.replace("px", ""));
        } else {  
            var size = 10;    
        }    
        
        p[n].style.fontSize = size+inc + 'px';   
    }
}
*/
function resize(multiplier) { 
     if (document.body.style.fontSize == "") { 
        document.body.style.fontSize = "0.8em"; 
     } 
     var fsize=parseFloat(document.body.style.fontSize);
     if ((fsize<1.8 && multiplier==1)||(fsize>0.6 && multiplier==-1)){     
        document.body.style.fontSize = parseFloat(document.body.style.fontSize) + (multiplier * 0.2) + "em"; 
     }
}

