I was having something like this:
Code JavaScript:
function activaInput()
{
 
    document.pedidoOnline.txtOutro.disabled=false;
    document.pedidoOnline.txtOutro.focus=true;
    document.pedidoOnline.txtOutro.click=true;
}

This works fine for one specific input field. But now I would like to make it work for a number of others input fields, and not only txtOutro.

I believe the way to do this is to add an argument on our function that accepts the id of our input field, and use it inside.

Question:
If this is the way to go, how can we add a variable on this line?
Code JavaScript:
document.pedidoOnline.txtOutro.disabled=false;

I've tried this but no luck:
Code JavaScript:
document.pedidoOnline.$inputId.disabled=false;

Thanks in advance,
Márcio

I know it's a very basic question, but I don't even know the name of a line like this, so I cannot search "variable inside a document." on google with success.