JS var partie du nom var
var name = "nameofvar";
eval('var ' + name + ' = valueofvar')
Aras
var name = "nameofvar";
eval('var ' + name + ' = valueofvar')