
<?php
$temp_table_name = $_SESSION['db_prefix']."_packaging_design_lines_temp";
include('../include/store_item_select_header_packaging_design.php');
	?>
 
</head>
<?php include('../include/wait.php') ?>


<body onLoad="initCS(); MM_showHideLayers('wait','','hide')" onFocus="MM_showHideLayers('wait','','hide');"  onBlur="MM_showHideLayers('wait','','hide');">
<div class="page_middle_frame">
<form id="form1" name="form1" method="get" action="packing_designWizbase.php" >
<p>
  <?php
$line_num=0;
include('../include/store_item_select_table_packaging_design.php');
?>
<div class="wizard_frame">
Estimated number of items to be packed with this packing design:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
<input name="number_text" id="number_text" type="text" onKeyPress="return numbersonly(this, event)" class='text60'; value="<?php echo $_SESSION['number'] ?>"><br>
<br>
</div>
<table width="590" height="50" align="left" id="table_button_bar">
          <tr>
            <td width="117"><input type="button" name="lastprev_button" class="imagebutton" value="Prev" onClick="needToConfirm = false;MM_showHideLayers('wait','','show');MM_goToURL('parent','packing_designWizbase.php?s=-1&amp;p=1');return document.MM_returnValue" /></td>
            <td width="82"><input name="error" type="hidden" id="error" value="0" />
              <input name="p" type="hidden" id="p" value="2" />
              <input name="s" type="hidden" id="s" value="2" /></td>
            <td width="132">&nbsp;</td>
            <td width="125" align="left"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="needToConfirm = false; cancel_confirmation(1, '../production/production_main.php?date=0&subCatSelect=Tiles');" value="Cancel" /></td>
            <td width="110" align="left"><input type="submit" name="next_button" id="next_button" class="imagebutton" value="Next" onClick="needToConfirm = false; MM_showHideLayers('wait','','show'); validate();  " tabindex="5" /></td>
          </tr>
        </table>
</form>
<!--form validation-->
  <script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("form1");
  frmvalidator.EnableMsgsTogether();
     
  for (i = 0; i < 50; i++) {
	frmvalidator.addValidation("store_item_text"+i,"req","- store item on line "+(i+1)+".");
	frmvalidator.addValidation("quantity_text"+i,"req","- quantity  on line "+(i+1)+".");
	frmvalidator.addValidation("number_text","req","- estimated number.");
 }
    
  </script>
</div>

</body>