printHTML("</table><p><center><input type=submit value=\"Buy now!\"></center><p>\n");
printHTML("<p><center><input type=submit value=\"Buy now!\"></center><p>\n");
  void printItemDescriptionToBuyNow(int itemId, String itemName, String description, 				    float buyNow, int quantity, int sellerId, 				    String sellerName, String startDate, String endDate, 				    int userId)  {    try    {       printHTMLheader("RUBiS: Buy Now");      printHTMLHighlighted("You are ready to buy this item: "+itemName);      out.println("<TABLE>\n"+                  "<TR><TD>Quantity<TD><b><BIG>"+quantity+"</BIG></b>\n"+                  "<TR><TD>Seller<TD><a href=\"/servlet/edu.rice.rubis.servlets.ViewUserInfo?userId="+sellerId+"\">"+sellerName+"</a> (<a href=\"/servlet/edu.rice.rubis.servlets.PutCommentAuth?to="+sellerId+"&itemId="+itemId+"\">Leave a comment on this user</a>)\n"+                  "<TR><TD>Started<TD>"+startDate+"\n"+                  "<TR><TD>Ends<TD>"+endDate+"\n"+                  "</TABLE>");            printHTMLHighlighted("Item description");      out.println(description);      out.println("<br><p>\n");      printHTMLHighlighted("Buy Now");      printHTML("<form action=\"/servlet/edu.rice.rubis.servlets.StoreBuyNow\" method=POST>\n"+                "<input type=hidden name=userId value="+userId+">\n"+                "<input type=hidden name=itemId value="+itemId+">\n"+                "<input type=hidden name=maxQty value="+quantity+">\n");      if (quantity > 1)        printHTML("<center><table><tr><td>Quantity:</td>\n"+                  "<td><input type=text size=5 name=qty></td></tr></table></center>\n");      else        printHTML("<input type=hidden name=qty value=1>\n");      printHTML("</table><p><center><input type=submit value=\"Buy now!\"></center><p>\n");    }    catch (Exception e)    {      out.println("Unable to print Item description (exception: "+e+")<br>\n");    }  }