

</head>
<script language="JavaScript" src="../jscript/noDoubbleQuote.js"  type="text/javascript"></script>  

<?php include('../include/wait.php') ?> 
<body onLoad="MM_showHideLayers('wait','','hide')" onFocus="MM_showHideLayers('wait','','hide');"  onBlur="MM_showHideLayers('wait','','hide');">
<div class="wizard_page_middle_frame">
<form id="form1" name="form1" method="get" action="storeWizbase.php" >
<?php if ($_SESSION['error']==1) { ?>
        <div class="wizard_warning_frame">&nbsp;
          <img src="../images/exclamation_mark_green_small.png" width="20" height="32"><label class="label_std">A product / store item with the name "<?php echo $_SESSION['item_name']?>" allready exists, please use another name.</label>
  
    </div>
        <?php 
   $_SESSION['productName'] ="";
     $_SESSION['suppliersName'] = "";
   $_SESSION['color'] = "";
   
   $_SESSION['shelf'] = "";
   $_SESSION['unit'] = "";
   $_SESSION['returnable'] = "";
   $_SESSION['quantity'] = "";
   $_SESSION['minimumStock'] = "";
   $_SESSION['price'] = "";
   $_SESSION['depreciation'] = "";
   $_SESSION['date'] = "";
   $_SESSION['productSpecs'] = "";
   $_SESSION['p'] = 1;
   $_SESSION['error']=0;
   //$_SESSION['changed']="";
   //$_SESSION['changed2']="";
   } ?>
<div class="wizard_frame" ><br />
          <label class="label_std">What is the name of the store item?</label>
          &nbsp;&nbsp;&nbsp;
          <input name="item_name_text" type="text" id="item_name_text" class="text300"  onkeyup="ToLower(this)" onBlur="capitalize(this);" value="<?php echo trim($_SESSION['item_name'],'"'); ?>" autofocus maxlength="50" tabindex="4" />
          <label class="star">* and should not contain "</label>
          <br />
          <br />
        </div>
        <div class="wizard_spacer_frame" style="height:175px;"></div>
<div class="wizard_frame">     
      <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','storeWizbase.php?s=&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, '../store/store_main.php');" 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();removeQ();  " tabindex="5" /></td>
          </tr>
        </table>
        </div>
</form>
  <php trim($_SESSION['item_name'],'"'); ?>
</div>
<script language="JavaScript" type="text/javascript" xml:space="preserve">

  var frmvalidator  = new Validator("form1");
  frmvalidator.EnableMsgsTogether();
  
  frmvalidator.addValidation("item_name_text","req","- item name.");
  function removeQ(){
    var data = document.form1.item_name_text.value;
 
  data = data.replace(/\"/g,"\\\"");
  data = data.replace(/\'/g,"\\\'");
  }


  </script>

</body>