/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

function testSize()
{
    //alert(document.body.style.fontSize);
    if (document.body.style.fontSize==="")
    {
        document.body.style.fontSize="1.0em";
    }
   
}


function decreaseFontSize()
{
    //alert("mai mic");
    testSize();
    var currentSize=parseFloat(document.body.style.fontSize);
    if (currentSize>0.6)
    {
        document.body.style.fontSize = (currentSize*0.9)+"em";
    }
}

function increaseFontSize()
{
    //alert("mai mare");
    testSize();
    var currentSize=parseFloat(document.body.style.fontSize);
    if (currentSize<1.2)
    {
        document.body.style.fontSize = (currentSize/0.9)+"em";
    }
    
}