context: function resizeBox(add) {	var textarea = document.getElementById('editor');	var style = textarea.getAttribute('style');	style = (style != null) ? style : '';	if(style == '' && add > 0)		style = 'height:22em;';	else if(style != '') {		var startHeight = style.indexOf('height');		var endHeight = style.indexOf(';', startHeight);		var middleHeight = style.indexOf(':', startHeight);		var length = style.length;		var size = style.substr(middleHeight+1, endHeight - middleHeight - 1);		size = size.replace(/ /,'');		size = size.replace(/em/,'');		size = eval(size) + add;		if(size < 17)			size = 17;		size = 'height:' + size+ 'em;';		style = style.substr(0, startHeight) + size + style.substr(endHeight+1,length - endHeight);			}	//var start_height = 	textarea.setAttribute('style', style);	//alert(textarea.rootElement.getPropertyValue('height'));}
meta: 9228	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9228/f0512eefb052e4cca95545d6efa4b752f00becdd/functions.js/clean/trunk/ComaCMS/system/functions.js