public ArrayList GetNewArray(ArrayList array1)
{
ArrayList array2 = new ArrayList();
for (int i = 0; i < array1.Count; i++)
if (!array2.Contains(array1[i]))
array2.Add(array1[i]);
return array2;
}