function incrtextsize()
{
    var FontSize = document.getElementById('pagetext').style.fontSize;
    var FontSizeNum;
    
    if (FontSize == '')
    {
      FontSizeNum = 16;
    }
    else {
      FontSizeNum = parseInt(FontSize);
      FontSizeNum++;
    }
    FontSize = FontSizeNum.toString()+'px';
    alert(FontSize+'px');
    document.getElementById(divId).style.fontSize = FontSize;
}

function changeTextSize(divId,type)
{
	var fontSize = document.getElementById(divId).style.fontSize;
	var lineHeight = document.getElementById(divId).style.lineHeight;
	var fontSizenum;
	var lineHeightnum;

	if (fontSize == '')
	{
		if (type=="e")
		{
			fontSizenum = 14;
			lineHeightnum = 16;
		}
		else if (type=="d")
		{
			fontSizenum = 12;
			lineHeightnum = 14;
		}
	}
	else {
		fontSizenum = parseInt(fontSize);
		if (type=="e")
			fontSizenum++;
		else if (type=="d")
			fontSizenum--;
		lineHeightnum = fontSizenum+2;
	}

	fontSize = fontSizenum.toString()+'px';
	lineHeight = lineHeightnum.toString()+'px';

	document.getElementById(divId).style.fontSize   = fontSize;
	document.getElementById(divId).style.lineHeight = lineHeight;
}

