Its not far from giving you what you want i think, you just missed that i gave pname a name attribute:
pname.name = "pname";
you'll need to do this with the other text boxes you'd like to extract as well.
ok, the other change is you'll need to remove all the parameters you added to the txtChange function, refer to my last posts. they are worthless (out of scope).
and you need to actually get the fields you want to assign a value to... otherwise how will they get the value?
you can use my elementOfName function.. just pass document and the name you want. faster would be using the elementById function.. but you'll need to give you input fields unique id's.