// JavaScript Document
function changeFontSize(inc)
{
	var p = document.getElementsByTagName('p');
	for(var n=0; n<p.length; n++) 
	{
    	if(p[n].style.fontSize) 
		{
    	   var size = parseInt(p[n].style.fontSize.replace("px", ""));
	       p[n].style.fontSize = size+inc + 'px';
		} 
   }
	var divs = document.getElementsByTagName('div');

	for(var ni = 0; ni < divs.length; ni++) 
	{
		{
    	   var size = parseInt(divs[ni].style.fontSize.replace("px", ""));
	       divs[ni].style.fontSize = eval(size+inc) + 'px';
		   alert('tt');
		} 
   }
   

}


function  resizeText(multiplier)
{
	var new_font; 
	if (document.body.style.fontSize == "")
	{
		document.body.style.fontSize = "14px";
		new_font = 14;
	}

	if (multiplier == 0)
	{
		document.body.style.fontSize = "14px";
		new_font = 14;
	}

	else if( multiplier < 0 && parseFloat(document.body.style.fontSize) > 10 )
	{
		new_font = parseFloat(document.body.style.fontSize) + (multiplier);
		document.body.style.fontSize = new_font + "px";
	}
	else if( multiplier > 0 && parseFloat(document.body.style.fontSize) < 18 )
	{
		new_font = parseFloat(document.body.style.fontSize) + (multiplier);
		document.body.style.fontSize = new_font + "px";
	}
}

