<link rel="stylesheet" type="text/css" href="../css/jquery.autocomplete.css" />
<script type="text/javascript" src="../css/jquery.1.4.2.js"></script>
<script type="text/javascript" src="../css/jquery.autocomplete.js"></script>
<link rel="stylesheet" type="text/css" href="../css/wizard.css" />
<script>
 $(document).ready(function(){
  $("#name_text").autocomplete("tocotex_autocomplete.php", {
        selectFirst: true
  });
 });
</script>
<script>
function confirmRefresh() {
var okToRefresh = confirm("Do you really want to stop?\n\nYou can stop and restart the count later.");
var url='showAllProducts.php?cat=Tiles and Accessories&productSelect=All&colorSelect=All'
if (okToRefresh)
	{
			window.location=url;
	}
}
</script>


<script language="JavaScript">
  var needToConfirm = true;
  window.onbeforeunload = confirmExit;
  function confirmExit()
  {
    if (needToConfirm)
      return "You did not finish the stock count.";
  }
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
</script>



<body >


<form id="form1" name="form1" method="get" action="stockCountWizbase.php">
  <table width=595 border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#0066FF" border-collapse="collapse">
    <tr>
      <td width="525" ><p class="wizard">
          <label class="left3">Select for which store you want to do a stock count:
          </label>
          <label class="left3">
<input name="store_group" type="radio"  id="store_group_0" value="Tiles and Accessories"  <?php if ($_SESSION['store']=="Tiles and Accessories") { echo "checked='checked' " ;} ?> />
Tiles and Accessories </label>
          <label class="left3">
<input type="radio" name="store_group" value="Direct Materials" id="store_group_1"   <?php if ($_SESSION['store']=="Direct Materials") { echo "checked='checked' " ;} ?> />
Direct Materials</label>
          <br />
          <label class="left3">
<input name="store_group" type="radio" id="store_group_2"   value="Store Item" <?php if ($_SESSION['store']=="Store Item") { echo "checked='checked' " ;} ?>/>
Store Item </label><br><br>
</p>
<p class="wizard" >
  <label class="std">Select full or single count:</label>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <select name="stockSelect" id="stockSelect">
    <option value="full">full</option>
    <option value="single">single</option>
    <option selected> </option>
  </select>
                </p>
      </td>
    </tr>
    <tr>
      <td ></td>
    </tr>
    <tr>
      <td><table width="590" height="50" align="center" id="tableButtonBar">
          <tr>
            <td width="117">&nbsp;</td>
            <td width="115"><input type="hidden" name="change" id="change" /></td>
            <td width="99"><span class="wizard">
              <input name="p" type="hidden" id="p" value="1" />
              <input name="error" type="hidden" id="error" value="0" />
              <input name="s" type="hidden" id="s" value="1" />
            </span></td>
            <td width="125" align="left"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="needToConfirm = false; confirmRefresh();" value="Cancel" /></td>
            <td width="110" align="left"><input type="submit" name="next_button" class="imagebutton" value="Next" onClick="needToConfirm = false; " /></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
<!--form validation-->
<script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("form1");
  frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("store_group","selone","Please select a store.");
  frmvalidator.addValidation("stockSelect","req","Please the type of stock count.");
  
  </script>
</body>