grazie!
io invece avevo pensato ad eval

codice:
var ris =document.forms[nome].eval('k' + x).value;