<HTML>
<HEAD><TITLE>Inventory Maintenance</TITLE></HEAD>
<BODY>
<H2>Inventory Maintenance</H2>

<!--- If the submit button was not just pressed, display form --->
<CFIF NOT ParameterExists(Form.ExecuteNow)>
  <!--- Provide button to start stored procedure --->
  <CFFORM ACTION="#CGI.SCRIPT_NAME#" METHOD="POST">
     <INPUT TYPE="SUBMIT" NAME="ExecuteNow" VALUE="Perform Inventory Maintenance">
  </CFFORM>

<!--- If the user just clicked the submit button --->
<CFELSE>
   <P>Executing stored procedure...</P>

   <!--- Go ahead and execute the stored procedure --->
   <CFSTOREDPROC
     PROCEDURE="PerformInventoryMaintenance"
     DATASOURCE="owsServer">

   <P>Done executing stored procedure!</P>

</CFIF>

</BODY>
</HTML>