for(var i=0; i<10; i++)
document.writeln("<input type='text' name='frmInp" + i +"' size='20'>");
then if there is a statement like this:
var xyz = frmInp3.value; // frmInp3 will not be found
function anObject(param1, param2) {
this.anotherObject = new AnotherObj(); // this sets up anotherObject
this.anotherObject = param1;
.
.
.
}