<!--
 * this file is to be used in combination with store_item_select_header_no_price.php
 * the temp table name needs to be declared in the base file
 * for error reporting.
 *
-->

<?php include ("../include/store_item_select_single_header_no_price.php"); ?>
<script language="javascript" src="../jscript/chainedselects.js"></script>

<div class="wizard_frame" style="height:auto;" >Select product to add:<br>
<form name="form1" id="form1" action="" method="get">
    <table id="dataTable" width="400" border="1" style="border-collapse:collapse;">
 
        <tr>
          <td >
            <!--<input name="store_item_text" id="store_item_text" type="text" class="text300" value="" readonly="readonly" style="border:hidden; background-color:inherit" />
            <input name="store_item_id" id="store_item_id" type="hidden" value="" />-->
          <select name="category0" id="category0"  class="select160"  onChange="document.getElementById('store_item_divA0').hidden=true; document.getElementById('store_item_divB0').hidden=false; document.getElementById('store_item_id_select0').selectedIndex=-1; document.getElementById('index0').value = document.getElementById('category0').selectedIndex; ">
            </select>
    
              <input type="hidden" name="index" id="index" />
              <select name="store_item_id_select" id="store_item_id_select" class="select250" onchange="
              document.getElementById('line_checkbox').checked=true;
              unit = document.getElementById('store_item_id_select').options[document.getElementById('store_item_id_select').selectedIndex].text; 
              unit2 = unit.split('~'); 
              unit3 = unit2[1];
              if (unit3=='no') {
              document.getElementById('quantity_text').value = '';
              document.getElementById('quantity_text').onkeypress = function num(event) { return numbersonly(this, event);}
              }
              else {
              document.getElementById('quantity_text').value = '';
              document.getElementById('quantity_text').onkeypress = function decnum(event) { return isNumberKey(event);}  
              }            
              document.getElementById('store_item_id').value=document.getElementById('store_item_id_select').value; 
              document.getElementById('store_item_text').value = document.getElementById('store_item_id_select').value; 
              "
              >
              </select>
              
          </td>
      </tr>
               
  </table>
</form>
  
