Appending command in java script

I was trying it but its not working for me ..

i have a command that gives out the command value which than passes to XML to map the particular controller to call.

looks like this ...

parent.data.document.UnifiedSysUserDetailDataForm.cmd.value;

but the problem is when i am trying to make it more flexible by getting value of "cmd" from array in script its not working out.

I have tried this.

try1 = parent.data.document.UnifiedSysUserDetailDataForm.cmd.value;

for(i = 0; i < test.length;i++)

{

var test1 = parent.data.document.UnifiedSysUserDetailDataForm ;

var try2 = test1. +test+ .value;

alert(try1+ "==" +try2 );

}

I want the value of try1 and try2 should be the same. But its printing value of try2 as "undefined"

can you suggest me some way i can get value.

[864 byte] By [Raj_Delhia] at [2007-10-2 7:51:02]
# 1
double post : http://forum.java.sun.com/thread.jspa?threadID=692260&tstart=0
evnafetsa at 2007-7-16 21:38:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...