<!-- When you want to run the calcPrice() function whenever a user selects a new option from either the prodduct or quanity selection lists. Do this by using the onchange event handler which runs a command whenver the slected option in the list changes.--> <select name="prod" id="prod" onChange="calcPrice()" /> <option value="0">--------- Select a Product from FHM product list</option> <option value="50.00 <?php if (empty($_POST['Eclipse'])) echo $_POST['Eclipse'] ?>" />Sequal Eclipse ($50.00/wk, $100.00 deposit)</option> <option value="50.00 <?php if (empty($_POST['EverGo'])) echo $_POST['EverGo'] ?>" />Resperonice EverGo ($50.00/wk, $100.00 deposit)</option> <option value="55.00">Resperonice EverGo w/extra battery ($55.00/wk, $100.00 deposit)</option> <option value="30.00">Airsep LifeStyle ($30.00/wk, $100.00 deposit)</option> <option value="35.00">Airsep LifeStyle w/extra battery ($35.00/wk, $100.00 deposit)</option> <option value="50.00">Airsep FreeStyle ($50.00/wk, $100.00 deposit)</option> <option value="65.00">Airsep FreeStyle w/extra battery ($65.00/wk, $100.00 deposit)</option>