function getcss(theClass)
{
	// documentation for this script at http://www.shawnolson.net/a/503/
	// modified by LGM so it returns the rules instead of changing them.
	var cssRules;
	if (document.all) {
		cssRules = 'rules';
	} else if (document.getElementById) {
		cssRules = 'cssRules';
	}
	for (var S = 0; S < document.styleSheets.length; S++) {
		for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
			if (document.styleSheets[S][cssRules][R].selectorText == theClass) {
				return document.styleSheets[S][cssRules][R].style;
			}
		}
	}
	return false;
}
function tamano_texto(clase,factor)
{
	var rules=getcss("."+clase);
	if(!rules) {
		//alert(clase+'Not found');
		return false;
	}
	var re=new RegExp('^([0-9.]+)([^0-9.]*)$');
	
	var matches=re.exec(rules['fontSize']);
	if(!matches) {
		//alert(clase+'Not matched:'+rules['fontSize']);
		return false;
	}
	var size=matches[1];
	var unit=matches[2];
	var i;
	if(factor<0) {
		for(i=0;i>factor;i--) {
			size=size/1.18920711500272106672;
		}
	} else {
		for(i=0;i<factor;i++) {
			size=size*1.18920711500272106672;
		}
	}
	//alert(clase+':'+size+' '+unit);
	rules['fontSize']=size+unit;
}
