public void updateItem(HttpServletRequest arequest) throws Exception
   {
      for (int idx = this.getCount()-1; idx >= 0; idx--)
      {
         CNonadItem myitem = (CNonadItem) this.getItem(idx);
         String datid = "Ndate" + myitem.nonadmid;
         String serid = "NonSeries" + myitem.nonadmid;
         String reaid = "NonReason" + myitem.nonadmid;
         String nyrsid = "Nyrs" + myitem.nonadmid;
         String nmosid = "Nmos" + myitem.nonadmid;
         String nwksid = "Nwks" + myitem.nonadmid;
         String ndaysid = "Ndys" + myitem.nonadmid;
 
         String datstr = CParser.truncStr(arequest.getParameter(datid), CAppConsts.MaxLenDate);
         if (datstr == null || datstr.length() == 0)
         {
            this.delItem(idx);
            continue;
         }
         String serstr = arequest.getParameter(serid);
         String reastr = arequest.getParameter(reaid);

         myitem.setNonadmDate(datstr);
         myitem.seriescd = serstr;
         myitem.reasoncd = reastr;
         myitem.nageyears = getIntVal(arequest.getParameter(nyrsid));
         myitem.nagemonths = getIntVal(arequest.getParameter(nmosid));
         myitem.nageweeks = getIntVal(arequest.getParameter(nwksid));
         myitem.nagedays = getIntVal(arequest.getParameter(ndaysid));
      }

//      int nslot = Math.max(CAppConsts.NewSlotNonAdmin, CAppConsts.NumSlotNonAdmin - getCount());
      int nslot = (this.getCount()==0)?2:1;

      for (int idx = 0; idx < nslot; idx++)
      {
         CNonadItem myitem = new CNonadItem();
         String myid = "New" + Integer.toString(idx);
         String datid = "Ndate" + myid;
         String serid = "NonSeries" + myid;
         String reaid = "NonReason" + myid;
         String nyrsid = "Nyrs" + myid;
         String nmosid = "Nmos" + myid;
         String nwksid = "Nwks" + myid;
         String ndaysid = "Ndys" + myid;

         String datstr = CParser.truncStr(arequest.getParameter(datid), CAppConsts.MaxLenDate);
         if (datstr == null || datstr.length() == 0) continue; //no data here
         String serstr = arequest.getParameter(serid);
         String reastr = arequest.getParameter(reaid);

         myitem.nonadmid = this.makeNewId("nad", 6);
         myitem.setNonadmDate(datstr);
         myitem.seriescd = serstr;
         myitem.reasoncd = reastr;
         myitem.nageyears = getIntVal(arequest.getParameter(nyrsid));
         myitem.nagemonths = getIntVal(arequest.getParameter(nmosid));
         myitem.nageweeks = getIntVal(arequest.getParameter(nwksid));
         myitem.nagedays = getIntVal(arequest.getParameter(ndaysid));
         
         this.addItem(myitem.nonadmid, myitem);
      }
   }