<form id="form">
<input type="text" name="name" id="name" value="{NAME}" {DISABLED1}>
<input type="text" name="link" id="link" value="{LINK}" {DISABLED2}>
<input type="text" name="plan" id="plan" value="{PLAN}" {DISABLED3}>
<input type="submit" name="use" id="use" value="Применить" alt="Применить">
</form>
var inputs = [];
var candidates = document.getElementById('form').getElementsByTagName('input');
for(var i=0; l=candidates.length; i<l; i++) {
if(candidates[i].type == 'text') inputs.push(candidates[i]);
}
var controller = document.getElementById('form');
controller.onsubmit = function(e) {
for(var i=0; i<inputs.length; i++) {
var input = inputs[i];
if(input.disabled == true) {
input.disabled = false;
}
}
return false;
}