function increaseText(id,increase)
{
	var o=document.getElementById(id);
 
	if(o)
	{
		if (o.hasChildNodes() || (o.childNodes && o.childNodes.length>0) ) {
			var el;
		    if(document.all)
				el= o.children;
			else
				el= o.childNodes;
				
			
			for (var i=0; i<el.length; i++)
				if(el[i].nodeName.toLowerCase()!="#text")
					handleIncrease(el[i], increase);
		}
			
	}	
}

function getStyle(x,styleProp)
{
	var y=null;
	
	if (window.getComputedStyle)
		y = window.getComputedStyle(x,null).getPropertyValue(styleProp);
	else if (x.currentStyle)
		y = eval('x.currentStyle.' + styleProp);
	
	return y;
}


function handleIncrease(o, increase)
{

	if(o)
	{
		if (o.hasChildNodes() || (o.childNodes && o.childNodes.length>0) ) {
			var el;
		    if(document.all)
				el= o.children;
			else
				el= o.childNodes;
					
			for (var i=0; i<el.length; i++)
				if(el[i].nodeName.toLowerCase()!="#text" && el[i].nodeName.toLowerCase()!="#comment")
					handleIncrease(el[i],increase);
		}
			
		var newval=null;
		
		if(o.style && o.style.fontSize)
			newval=o.style.fontSize;
		else
			newval=getStyle(o,(document.all ? "fontSize" : "font-size") );
		
		
		if(newval && newval!="")
		{
			newval=newval.replace(/[^\d]+/ig,"")
			if(increase)
				o.style.fontSize=(parseInt(newval) + 1) + "px";
			else
				o.style.fontSize=(parseInt(newval) - 1) + "px";
		}
		
	}	
}

function print()
{
	window.open('/printerfriendly.htm','_new');
}