org = (OrgActivity)org_activities.nextElement(); index++;
index = 0;
  public void displayOPlanEdit(      PrintStream out, PlanServiceContext psc, String URLname,      Oplan plan, Date cDate) {    String str1 = new String("Deployment");    String str2 = new String("Employment-Offensive");    String str3 = new String("Employment-Defensive");    try {      //Enumeration en = null      //Enumeration org_activities =       //  PSPOplanUtilities.getOrgActivities(this, psc);      Enumeration org_activities = plan.getOrgActivities();      String previousOrgID = " ";      OrgActivity org = (OrgActivity)org_activities.nextElement();      int index = 0;      printHtmlBegin(out);      out.println("<p align=\"center\"><b><font size=\"5\">OPLAN EDITOR</font></b></p>");      out.println("<table width=\"100%\" border=\"1\">");      out.println("<tr>");      out.println("<td><b>Organization</b></td>");      out.println("<td><b>Deployment</b></td>");      out.println("<td><b>Employment-Defensive</b></td>");      out.println("<td><b>Employment-Offensive</b></td>");      out.println("<td><b>Employment Standdown</b></td>");      out.println("</tr>");      while (org_activities.hasMoreElements()) {        //System.out.println("Debug: "+ org.getOrgID() );        //System.out.println("Debug: "+ org.getActivityType() );        out.println("<tr>");        out.println("<td>" + org.getOrgID() +"</td>");        previousOrgID = org.getOrgID();        while (org.getOrgID().equals(previousOrgID)) {          //out.println("<td><a href=" +          //  "\""+URLname+"?ORGID="+          //  org.getOrgID() + "\">" + org.getOrgID() + "</a></td>");          if (org.getActivityType().startsWith("Cinc")) {            out.println("<td> &nbsp;</td>");          } else if (org.getActivityType().equals("Deployment") &&                     (org.getActivityName() != null)) {            out.println("<td><a href="+              "\""+URLname+"?ORGID="+               org.getOrgID() +"="+              org.getActivityType()+"="+              org.getActivityName()+ "\">" +"C+" +              getRelativeOffsetDays(cDate, org.getTimeSpan().getStartDate()) +               " To C+" +               getRelativeOffsetDays(cDate, org.getTimeSpan().getEndDate()) +              "</a></td>");          } else if (org.getActivityType().equals("Deployment")) {            out.println("<td><a href=" +              "\""+URLname+"?ORGID="+               org.getOrgID() +"="+              org.getActivityType()+ "\">" +"C+" +              getRelativeOffsetDays(cDate, org.getTimeSpan().getStartDate()) +              " To C+" +               getRelativeOffsetDays(cDate, org.getTimeSpan().getEndDate()) +               "</a></td>");          } else {            out.println("<td>" +"C+" +              getRelativeOffsetDays(cDate, org.getTimeSpan().getStartDate()) +              " To C+" +               getRelativeOffsetDays(cDate, org.getTimeSpan().getEndDate()) +              "</td>");          }          org = (OrgActivity)org_activities.nextElement();          index++;        }        // fill up remaining spaces        for (int i = index; i <4; i++) {          out.println("<td> &nbsp;</td>");        }        index=0;        out.println("</tr>");      }      out.println("</table>");      printHtmlEnd(out);      out.flush();    } catch (Exception e) {      out.println("</table>");      printHtmlEnd(out);      System.out.println(e.getMessage());    }  }