private void formScreen(String action,
							Connection database,
							HttpSession session,
							HttpServletRequest request,
							PrintWriter webPageOutput)
	 {
	 int changeLog=0;
	 int bugNew=0;
	 String changeText="";
	 Routines.tableStart(false,webPageOutput);
	 boolean newEntry=false;
	 if("Change Entry".equals(action))
	   {
	   try
		 {
		 Statement sql=database.createStatement();
		 ResultSet queryResult;
		 queryResult=sql.executeQuery("SELECT ChangeLog " +
									  "FROM changelog " +
									  "ORDER BY ChangeLog DESC");
		 int tempChangeLog=0;
		 while(queryResult.next())
			  {
			  tempChangeLog=queryResult.getInt(1);
			  if("true".equals(request.getParameter(String.valueOf(tempChangeLog))))
				{
				queryResult=sql.executeQuery("SELECT ChangeLog,ChangeText,ChangeType " +
											 "FROM changelog " +
											 "WHERE ChangeLog=" + tempChangeLog);
				if(queryResult.first())
				  {
				  changeLog=queryResult.getInt(1);
				  changeText=queryResult.getString(2);
				  bugNew=queryResult.getInt(3);
				  }
				else
				  {
				  Routines.writeToLog(servletName,"Unable to find entry (" + tempChangeLog + ")",false,context);	
				  }
				}
			  }
		   }
	  catch(SQLException error)
		   {
		   Routines.writeToLog(servletName,"Unable to retrieve changelog : " + error,false,context);	
		   }
	 Routines.tableHeader("Amend details of entry",3,webPageOutput);
	 }
	 if("New Entry".equals(action))
	   {
	   Routines.tableHeader("Enter details of new entry",3,webPageOutput);
	   newEntry=true;
	   Routines.tableDataStart(true,false,false,true,false,25,0,"scoresrow",webPageOutput);
	   webPageOutput.print("<INPUT TYPE=RADIO NAME=\"entryType\" VALUE=\"1\" CHECKED >Current");
	   webPageOutput.print("<INPUT TYPE=RADIO NAME=\"entryType\" VALUE=\"2\">Minor");
	   webPageOutput.print("<INPUT TYPE=RADIO NAME=\"entryType\" VALUE=\"3\">Major");
	   Routines.tableDataEnd(false,false,false,webPageOutput);
	   Routines.tableDataStart(true,false,false,false,false,25,0,"scoresrow",webPageOutput);
	   webPageOutput.print("<INPUT TYPE=RADIO NAME=\"bugNew\" VALUE=\"1\" CHECKED >Bug");
	   webPageOutput.print("<INPUT TYPE=RADIO NAME=\"bugNew\" VALUE=\"2\">New");
	   Routines.tableDataEnd(false,false,false,webPageOutput);
	   Routines.tableDataStart(true,false,false,false,false,75,0,"scoresrow",webPageOutput);
	   webPageOutput.print("<INPUT TYPE=\"TEXT\" NAME=\"changeText\" SIZE=\"50\" MAXLENGTH=\"50\" VALUE=\"" + changeText + "\">");
	   Routines.tableDataEnd(false,false,false,webPageOutput);
	   }
	 else
	   {  
	   Routines.tableDataStart(true,false,false,true,false,25,0,"scoresrow",webPageOutput);
	   String selected="";
	   if(bugNew==1)
	     {
	     selected=" CHECKED ";	
	     }
	   webPageOutput.print("<INPUT TYPE=RADIO NAME=\"bugNew\" VALUE=\"1\""+selected+">Bug");
	   selected="";
	   if(bugNew==2)
		 {
		 selected=" CHECKED ";	
		 }
	   webPageOutput.print("<INPUT TYPE=RADIO NAME=\"bugNew\" VALUE=\"2\""+selected+">New");
	   Routines.tableDataEnd(false,false,false,webPageOutput);
	   Routines.tableDataStart(true,false,false,false,false,75,0,"scoresrow",webPageOutput);
	   webPageOutput.print("<INPUT TYPE=\"TEXT\" NAME=\"changeText\" SIZE=\"50\" MAXLENGTH=\"50\" VALUE=\"" + changeText + "\">");
	   Routines.tableDataEnd(false,false,false,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 Entry".equals(action))
	   {
	   webPageOutput.println("<INPUT TYPE=\"SUBMIT\" VALUE=\"Store New Entry\" NAME=\"action\">");
	   }
	 else
	   {
	   webPageOutput.println("<INPUT TYPE=\"SUBMIT\" VALUE=\"Store Changed Entry\" 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=\"changeLog\" VALUE=\"" + changeLog + "\">");
	 webPageOutput.println("</FORM>");
	 }