} else {
      print("<table border=\"$mainTableBorder\" width = \"$masterTableWidth\">\n");
    }
    */
      print("<table border=\"$mainTableBorder\">\n");
    for ($idx = 0; $idx < $frmOperationElementCount; $idx++) {
      print("\t<tr width = \"$operationTableRowWidth\">\n");
      print("\t<td width = \"200\">");
      print("$frmOperationElementText[$idx]");
      print("\t</td>\n");
      print("\t<td width = \"300\">");
      $fieldName = $frmOperationElementNames[$idx];
      $fieldType = $frmOperationElementTypes[$idx];
      $fieldValue = "";
      if ($frmOperationElementDBNames[$idx] == "Name") {
        writeSelect($fieldName, $frmOperationNameValues);
      } else if ($frmOperationElementDBNames[$idx] == "Machine") {
        writeSelectAndAdd($fieldName, $machineNames, 180, "createMachine", "Add Machine", "javascript:showAddMachine();");
      } else {
        writeTextBox($fieldName, $fieldValue);
      }
      /* Add the tools list for the first row with
         a column span of size $frmOperationElementCount */
      /* A list of tools that have been added for this operation */
      print("\t</td>");
      print("\t</tr>\n");
    }

    print("\t<td valign=\"center\">");
    print("Tools and Holders added:<br>");
    print("\t</td>");
    if (IsSet($frmPartAddTableWidth)) {
      print("<table border=\"$mainTableBorder\" width = \"$frmToolAddTableWidth\">\n");
    } else {
      print("<table border=\"$mainTableBorder\" width = \"$masterTableWidth\">\n");
    }

    for ($idx = 0; $idx < $frmToolElementCount; $idx++) {
      print("\t<tr width = \"$masterTableRowWidth\">\n");
      print("\t<td width = \"$masterTableColWidth\">");
      print("$frmToolElementText[$idx]");
      print("\t</td>\n");
      print("\t<td width = \"$masterTableColWidth\">");
      $fieldName = $frmToolElementNames[$idx];
      $fieldType = $frmToolElementTypes[$idx];
      if ($fieldName == "toolType") {
        writeSelect($fieldName, $toolTypes);
      } else if ($fieldName == "toolSupplier") {
        writeSelectAndAdd($fieldName, $supplierNames, 250, "addSupplier", "Add Supplier", "javascript:showAddSupplierSkipSubmit();");
      } else {
        writeTextBox($fieldName, $fieldValue);
      }

      /* Add the inserts list for the first row with
         a column span of size $frmToolElementCount */
      /* A list of inserts that have been added for this tool */
      if ($idx == 0) {
        print("\t<td>");
        print("Inserts for the part:<br>");
        print("\t</td>");
      }
      if ($idx == 1) {