//Specify affected tags. Add or remove from list:
var tgs = new Array( 'div','td','tr');

//Specify spectrum of different font sizes:
var szs1 = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var szs = new Array( '12','13','14','15','xx-large' );

var startSz = 0;
var childnodeLF;
function CheckSize(id)
{
	tdid=document.getElementById(id);
	if ( id == 'LF' ){
	
			if ( startSz >= 2 ){
				tdid.style.cursor='default';
			tdid.style.textDecoration='none';

		}
		else {
			tdid.style.cursor='pointer';
			tdid.style.textDecoration='underline';
	
		}
	}
	else if ( id == 'SF' ){
			if ( startSz <= 0 ){
				tdid.style.cursor='default';
				tdid.style.textDecoration='none';
				
			}
		else {
			tdid.style.cursor='pointer';
			tdid.style.textDecoration='underline';
		}
	}
}
function ts( trgt,inc) {
	if (!document.getElementById) return
	var d = document,cEl = null,sz = startSz,i,j,cTags;

	sz += inc;
	if ( sz < 0) sz = 0;
	if ( sz > 2) sz = 2;
	startSz = sz;
	if ( !( cEl = d.getElementById( trgt ) ) ) {cEl = d.getElementsByTagName( trgt )[ 0 ]; }
	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ ) {
			if(cTags[j].id == "LF")
			{
				if( sz >= 2 ){	
					cTags[j].style.fontSize = szs[ sz ]	+'px'	
				}
				else 
					cTags[ j ].style.fontSize = szs[ sz+1 ]	+'px'		
				continue;
			}
			if(cTags[j].id == "SF")
			{
				if( sz <= 0  )	
					cTags[ j ].style.fontSize = szs[ sz ]+'px'			
				else 
					cTags[ j ].style.fontSize = szs[ sz-1 ]	+'px'		
				continue;
			}
			cTags[ j ].style.fontSize = szs[ sz ]+'px';
			}
	}
	
}