<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN"
			"http://www.phone.com/dtd/wml11.dtd" >
<!-- View Items -->

<wml>

  <card title="Catalog">
    <do type="accept" label="Buy">
      <spawn href="buy.wml" onexit="#confirm">
        <setvar name="price" value="$(price)"/>
        <receive name="ship"/>
        <catch name="abort" onthrow="#error"/>
        <catch name="prev"/>
      </spawn>
    </do>
    <p>
      Books
      <select name="price" iname="index">
        <option value="5.00">UP.SDK Getting Started Guide -- $$5.00</option>
        <option value="8.00">UP.SDK Developer's Guide -- $$8.00</option>
        <option value="8.00">WMLScript Developer's Guide -- $$8.00</option>
        <option value="7.00">UP.SDK Tools &amp; APIs Reference -- $$7.00</option>
        <option value="6.00">WML Language Reference -- $$6.00</option>
        <option value="6.00">WMLScript Language Reference -- $$6.00</option>
      </select>
    </p>
  </card>

  <card id="confirm" title="Results">
    <p>
      Your account was charged:
      <br/>$$&nbsp;$(price) Book
      <br/>$$&nbsp;$(ship) Shipping
      <br/>Thank You!
    </p>
  </card>

  <card id="error" title="Attention">
    <p>
      Your purchase was cancelled!
    </p>
  </card>

</wml>
