One option is to not use inline javascript at all (a best practice anyway...).
In the onLoaded event of the pagerequestmanager you can set up a function to run that will set up your variables for you, e.g.:
var inputs = document.getElementsByTagName('INPUT");
for (var i=0,i<inputs.length;i++){
if(inputs[i].type == 'TEXT')
evaluateInput(inputs[i]);
}
. . .
function evaluateInput(input){
// perform logic to map your input to whatever variable you need them to map to.
}
There's a dozen ways to skin this cat, lmk what you're trying to do.
Help those who have helped you... remember to "Mark as Answered"