<body bgcolor=ffffff>

<table width="100%">

  <?lsmb INCLUDE letterhead.html ?>
  
  <tr>
    <td width=10>&nbsp;</td>
  
    <th colspan=3>
      <h4>P U R C H A S E &nbsp;&nbsp; O R D E R</h4>
    </th>
  </tr>

  <tr>
    <td>&nbsp;</td>
    
    <td>
      <table width=100% callspacing=0 cellpadding=0>
	<tr bgcolor=000000>
	  <th align=left width="50%"><font color=ffffff>To:</th>
	  <th align=left width="50%"><font color=ffffff>Ship To:</th>
	</tr>

	<tr valign=top>
	  <td><?lsmb name ?>
	  <br><?lsmb address1 ?>
	  <?lsmb IF address2 ?>
	  <br><?lsmb address2 ?>
	  <?lsmb END ?>
	  <br><?lsmb city ?>
	  <?lsmb IF state ?>
	  , <?lsmb state ?>
	  <?lsmb END ?>
	  <?lsmb zipcode ?>
	  <?lsmb IF country ?>
	  <br><?lsmb country ?>
	  <?lsmb END ?>
          <br>

	  <?lsmb IF contact ?>
	  <br>Attn: <?lsmb contact ?>
	  <?lsmb END ?>
	  
	  <?lsmb IF vendorphone ?>
	  <br>Tel: <?lsmb vendorphone ?>
	  <?lsmb END ?>
	  
	  <?lsmb IF vendorfax ?>
	  <br>Fax: <?lsmb vendorfax ?>
	  <?lsmb END ?>
	  </td>

	  <td><?lsmb shiptoname ?>
	  <br><?lsmb shiptoaddress1 ?>
	  <?lsmb IF shiptoaddress2 ?>
	  <br><?lsmb shiptoaddress2 ?>
	  <?lsmb END ?>
	  <br><?lsmb shiptocity ?>
	  <?lsmb IF shiptostate ?>
	  , <?lsmb shiptostate ?>
	  <?lsmb END ?>
	  <?lsmb shiptozipcode ?>
	  <?lsmb IF shiptocountry ?>
	  <br><?lsmb shiptocountry ?>
	  <?lsmb END ?>
          <br>

	  <?lsmb IF shiptocontact ?>
	  <br>Attn: <?lsmb shiptocontact ?>
	  <?lsmb END ?>
	  
	  <?lsmb IF shiptophone ?>
	  <br>Tel: <?lsmb shiptophone ?>
	  <?lsmb END ?>
	  
	  <?lsmb IF shiptofax ?>
	  <br>Fax: <?lsmb shiptofax ?>
	  <?lsmb END ?>
	  </td>
	</tr>
      </table>
    </td>
  </tr>

  <tr height=5></tr>

  <tr>
    <td>&nbsp;</td>

    <td>
      <table width=100% border=1>
	<tr>
	  <th width=17% align=left>Order #</th>
	  <th width=17% align=left>Order Date</th>
	  <th width=17% align=left>Required by</th>
	  <th width=17% align=left>Contact</th>
	  <th width=17% align=left>Shipping Point</th>
	  <th width=15% align=left>Ship Via</th>
	</tr>

	<tr>
	  <td><?lsmb ordnumber ?></td>
	  <td><?lsmb orddate ?></td>
	  <td><?lsmb reqdate ?></td>
	  <td><?lsmb employee ?></td>
	  <td><?lsmb shippingpoint ?>&nbsp;</td>
	  <td><?lsmb shipvia ?>&nbsp;</td>
	</tr>
      </table>
    </td>
  </tr>

  <tr>
    <td>
      <table width="100%">
	<tr bgcolor=000000>
	  <th align=right><font color=ffffff>Item</th>
	  <th align=left><font color=ffffff>Number</th>
	  <th align=left><font color=ffffff>Description</th>
	  <th><font color=ffffff>Qt'y</th>
	  <th>&nbsp;</th>
	  <th><font color=ffffff>Price</th>
	  <th><font color=ffffff>%</th>
	  <th><font color=ffffff>Amount</th>
	</tr>

        <?lsmb FOREACH number ?>
	<?lsmb loop_count = loop.count - 1 ?>
	<tr valign=top>
	  <td align=right><?lsmb runningnumber.${loop_count} ?>.</td>
	  <td><?lsmb number.${loop_count} ?></td>
	  <td><?lsmb description.${loop_count} ?></td>
	  <td align=right><?lsmb qty.${loop_count} ?></td>
	  <td><?lsmb unit.${loop_count} ?></td>
	  <td align=right><?lsmb sellprice.${loop_count} ?></td>
	  <td align=right><?lsmb discountrate.${loop_count} ?></th>
	  <td align=right><?lsmb linetotal.${loop_count} ?></td>
	</tr>
        <?lsmb END ?>

	<tr>
	  <td colspan=8><hr noshade></td>
	</tr>
	
	<tr>
          <?lsmb IF taxincluded ?>
	  <th colspan=7 align=right>Total</th>
	  <th colspan=1 align=right><?lsmb ordtotal ?></th>
          <?lsmb ELSE ?>
	  <th colspan=7 align=right>Subtotal</th>
	  <td colspan=1 align=right><?lsmb subtotal ?></td>
          <?lsmb END ?>
	</tr>

        <?lsmb FOREACH tax ?>
	<?lsmb loop_count = loop.count - 1 ?>
	<tr>
	  <th colspan=7 align=right><?lsmb taxdescription.${loop_count} ?> on <?lsmb taxbase.${loop_count} ?> @ <?lsmb taxrate.${loop_count} ?> %</th>
	  <td colspan=1 align=right><?lsmb tax.${loop_count} ?></td>
	</tr>
        <?lsmb END ?>

	<tr>
	  <td colspan=4>&nbsp;</td>
	  <td colspan=4><hr noshade></td>
	</tr>
	
        <?lsmb IF NOT taxincluded ?>
	  <th colspan=7 align=right>Total</th>
	  <td colspan=1 align=right><?lsmb ordtotal ?></td>
        <?lsmb END ?>

        <?lsmb IF terms ?>
	<tr>
	  <td colspan=4>Terms Net <b><?lsmb terms ?></b> days</td>
	  <th colspan=3 align=right>Total</th>
	  <th colspan=1 align=right><?lsmb ordtotal ?></th>
	</tr>
        <?lsmb END ?>

        <?lsmb IF taxincluded ?>
	<tr>
	  <td colspan=2>Tax included</td>
	</tr>
        <?lsmb END ?>

	<tr>
	  <td>&nbsp;</td>
	</tr>
	
        <?lsmb IF ordtotal ?>
	<tr>
	  <td colspan=8 align=right>
	  All prices in <b><?lsmb currency ?></b> Funds
	  </td>
	</tr>
        <?lsmb END ?>

      </table>
    </td>
  </tr>

  <?lsmb IF notes ?>
  <tr>
    <td>&nbsp;</td>
    
    <td>
    <table width="100%">
      <tr valign=top>
	<td>Notes</td>
	<td><?lsmb notes ?></td>
      </tr>

    </table>
    </td>
  </tr>
  <?lsmb END ?>

  <tr>
    <td>&nbsp;</td>
  
    <td>
      <table width="100%">
	<tr valign=top>
	  <td width="70%">&nbsp;</td>

	  <td width="30%">
	  X <hr noshade>
	  </td>
	</tr>
      </table>
    </td>
  </tr>

</table>

</body>
</html>