private void formScreen(String action,
                              Connection database,
                              HttpSession session,
                              HttpServletRequest request,
                              PrintWriter webPageOutput)
      {
      int collegeNumber=0;
      String collegeName="";
      Routines.tableStart(false,webPageOutput);
      if("Change College".equals(action))
        {
        try
          {
          Statement sql=database.createStatement();
          ResultSet queryResult;
          queryResult=sql.executeQuery("SELECT CollegeNumber " +
                                       "FROM colleges");
          int tempCollegeNumber=0;
          while(queryResult.next())
               {
               tempCollegeNumber=queryResult.getInt(1);
               int currentSequence=0;
               if("true".equals(request.getParameter(String.valueOf(tempCollegeNumber))))
                 {
                 queryResult=sql.executeQuery("SELECT CollegeNumber,CollegeName " +
                                              "FROM colleges " +
                                              "WHERE CollegeNumber=" + tempCollegeNumber);
                 if(queryResult.first())
                   {
                   collegeNumber=queryResult.getInt(1);
                   collegeName=queryResult.getString(2);
                   }
                 else
                   {
				   Routines.writeToLog(servletName,"Unable to find college (" + tempCollegeNumber + ")",false,context);	
                   }
                 }
               }
            }
       catch(SQLException error)
            {
			Routines.writeToLog(servletName,"Unable to retrieve colleges : " + error,false,context);	
            }
      Routines.tableHeader("Amend details of College",2,webPageOutput);
      }
      if("New College".equals(action))
        {
        Routines.tableHeader("Enter details of new College",2,webPageOutput);
        }
      Routines.tableDataStart(true,false,false,true,false,5,0,"scoresrow",webPageOutput);
      webPageOutput.print("Name");
      Routines.tableDataEnd(false,false,false,webPageOutput);
      Routines.tableDataStart(true,false,false,false,false,75,0,"scoresrow",webPageOutput);
      webPageOutput.print("<INPUT TYPE=\"TEXT\" NAME=\"collegeName\" SIZE=\"20\" MAXLENGTH=\"20\" VALUE=\"" + collegeName + "\">");
      Routines.tableDataEnd(false,false,true,webPageOutput);
      Routines.tableEnd(webPageOutput);
      webPageOutput.println(Routines.spaceLines(1));
      Routines.tableStart(false,webPageOutput);
      Routines.tableHeader("Actions",1,webPageOutput);
      Routines.tableDataStart(true,true,false,true,false,0,0,"scoresrow",webPageOutput);
      if("New College".equals(action))
        {
        webPageOutput.println("<INPUT TYPE=\"SUBMIT\" VALUE=\"Store New College\" NAME=\"action\">");
        }
      else
        {
        webPageOutput.println("<INPUT TYPE=\"SUBMIT\" VALUE=\"Store Changed College\" NAME=\"action\">");
        }
      webPageOutput.println("<INPUT TYPE=\"SUBMIT\" VALUE=\"Cancel\" NAME=\"action\">");
      Routines.tableDataEnd(false,false,true,webPageOutput);
      Routines.tableEnd(webPageOutput);
      webPageOutput.println("<INPUT TYPE=\"hidden\" NAME=\"jsessionid\" VALUE=\"" + session.getId() + "\">");
      webPageOutput.println("<INPUT TYPE=\"hidden\" NAME=\"collegeNumber\" VALUE=\"" + collegeNumber + "\">");
      webPageOutput.println("</FORM>");
      }