

<!--jscript-->
<script language="JavaScript" src="../jscript/capitalize_textbox.js"  type="text/javascript"></script>  

</head>
<?php 
$page_name = "Stores-supplier";
include ("../navigation/access.php");

if ($permission_num==1) {
	 
	?>
<?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="supplierWizbase.php">
  <?php if ($error==1) { ?>
        <div class="wizard_frame"><img src="../images/exclamation_mark_green_small.png" width="20" height="32">&nbsp;&nbsp;&nbsp;&nbsp;
          <label class="label_std">A supplier with the name "<?php echo $_SESSION['account_name'] ?>" allready exists, please use another name.</label>
        </div>
        <?php 
	 $_SESSION['account_name'] ="";
     $_SESSION['AddressText1'] = "";
	 $_SESSION['AddressText2'] = "";
	 $_SESSION['PlaceText'] = "";
	 $_SESSION['AddressText3'] = "";
	 $_SESSION['PlaceText2'] = "";
	 $_SESSION['CountryText'] = "";
	 $_SESSION['ContactText'] = "";
	 $_SESSION['CellText'] = "";
	 $_SESSION['PhoneText'] = "";
	 $_SESSION['FaxText'] = "";
	 $_SESSION['emailText'] = "";
	 $_SESSION['VATText'] = "";
	 $_SESSION['RemarksText'] = "";
	 
	 } ?>
    <div class="wizard_frame">
          <label class="label_std">What is the suppliers name?&nbsp;&nbsp;</label>
      <label class="star">*</label>
&nbsp;
<input name="account_name_text" type="text" id="account_name_text" class="text200" onBlur="capitalize(this)" value="<?php echo $_SESSION['account_name'] ?>" "this.value='';" autofocus/>
        </div>
    <div class="wizard_spacer_frame" style="height:180px;"></div>
        <div class="wizard_frame">
      <table width="590" height="50" align="left" id="table_button_bar">
          <tr>
            <td width="117">&nbsp;</td>
            <td width="115"><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" /></td>
            <td width="99">&nbsp;</td>
            <td width="125"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="needToConfirm = false; cancel_confirmation(1, '../store/store_main.php');" value="Cancel" tabindex="-1" /></td>
            <td width="110" align="left"><input type="submit" name="next_button" class="imagebutton" value="Next" onClick="needToConfirm = false; " MM_showHideLayers('wait','','show');/></td>
          </tr>
        </table>
        </div>
</form>
</div>
<!--form validation--> 
<script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("form1");
  frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("account_name_text","req","- the name of the supplier.");
  </script>




<?php } else { 
    $_SESSION['denied_return'] = "store/store_main.php?date=";	?>
	<body onLoad="needToConfirm = false; accessdenied(); return false">
</body>
<?php }
?>

<html>