Data disappeared

I have two multiple value fields and both are editable.On the same button i hav a button called add. when i press add button another form gets open and in that again i have two fiels and where i m entering data. after putting the data this form this data shud display in the parent form. But when i enter the second data the first data gets diappeared from the parent form.

thankx in advance

Subject: Data disappeared…

manish

can;t help you unless you post your code for the Add button

Please post the code

Mike

Subject: RE: Data disappeared…

doc=document.forms[0]var arr1=new Array(10)

var arr2=new Array(10)

var arr3=new Array(10)

var i=0

if(doc.Name.value != “” && doc.Roll.value != “”)

{

	if(window.opener.doc.Name.value=="" && window.opener.doc.Roll.value=="") 

{



		arr1[i]=doc.Name.value

		window.opener.doc.Name.value=arr1[i]

		arr2[i]=doc.Roll.value

		window.opener.doc.Roll.value=arr2[i]

		window.close()

}

	else

	{

		arr1[i]=doc.Name.value

	   	arr2[i]=doc.Roll.value

		window.opener.doc.Name.value=arr1[i]

	   	window.opener.doc.Roll.value=arr2[i]

		window.close()

      }

}