se io ho più textarea????
ho provato così ma non va:
function fnTextAreaRows(obj) {

if(obj=="sol"){
var obj = document.getElementById('sol');
}
if(obj=="Note"){
var obj = document.getElementById('Note');
}
if(obj=="des"){
var obj = document.getElementById('des');
}

if (parseInt(obj.getAttribute('rows'), 10) == 5) {
obj.setAttribute('rows', 20);
} else {
obj.setAttribute('rows', 5);
}
}



passando il nome dell'oggetto alla funzione
onclick="fnTextAreaRows('nome')"