currTextSize = 10;
var FontSizeTable = new Array("1px","2px","3px","4px","5px","6px","7px","8px","9px","10px","11px","12px","13px","14px","15px","16px","17px","18px","19px")

function changeTextSize(updown){

if(!updown || updown.length==0) updown = 1;
var count = 0;

	if (document.getElementsByName) {
		toChange = eval("document.getElementsByName('textToAlter')");
		count = toChange.length;
		if((currTextSize+updown)>=0 && (currTextSize+updown)<FontSizeTable.length){
			for(i=0;i<count;i++){
				currTextSize = currTextSize + updown;
				toChange[i].style.fontSize = FontSizeTable[currTextSize];
			}
		}
	}

	else if (document.layers) {
		toChange = eval("document.classes.textToAlter.all");
		toChange.fontSize = FontSizeTable[currTextSize];
	}

	else if (document.all) {
		toChange =  eval("document.all.textToAlter");
		if((currTextSize+updown)>=0 && (currTextSize+updown)<FontSizeTable.length){
			currTextSize = currTextSize + updown;
			toChange.style.fontSize = FontSizeTable[currTextSize];
		}
	}

}