var obj=new Object(); obj.name=table1._name.value; obj.secname = table1._secname.value; window.returnValue=obj;