window.addEvent('domready',function() {
	var textAreas = document.getElementsByTagName('textarea');
	var total = textAreas.length;
	for (x = 0; x < total; x++) {
		if (textAreas[x].className == 'autoexpand') {
			textAreas[x].onfocus = autoExpand;
		}
	}

});

function autoExpand (event) {
	if (document.getElementById('messageform').className != 'visible')
		document.getElementById('messageform').className = 'visible';
}
