function increaseFontSize()
{    
    /*Increases the text size on the page, uses the ID siteBody in the body tag
    of MasterPage to add a font-size attribute, then increments the size. 
    */
    
    var bodyStyle = document.getElementById('siteBody'); //get access to the body tag
    
    if(bodyStyle.style.fontSize)
    {
        //if have already altered the text size, get the current size as a float
        var currentSize = parseFloat(bodyStyle.style.fontSize.replace("em",""));
    }else
    {
        //otherwise the normal size
        var currentSize = 0.626;
    }
    
    if(currentSize<1.0)
    {
        //increase the size as long as its below 1.0em
        currentSize += 0.2; //increase the size by 2.0em
    }
    //set the font size to the new increased size
    bodyStyle.style.fontSize = currentSize+"em";
}

function decreaseFontSize()
{
    var bodyStyle = document.getElementById('siteBody');
    
    if(bodyStyle.style.fontSize)
    {
        var currentSize = parseFloat(bodyStyle.style.fontSize.replace("em",""));
    }else
    {
        var currentSize = 0.626;
    }
    
    if(currentSize>0.626)
    {
        currentSize -= 0.2;
    }
    
    bodyStyle.style.fontSize = currentSize+"em";
}
