<!DOCTYPE html PUBLIC "-//W3C/DTD XHTML+Voice 1.0/EN" "xhtml+voice.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ev="http://www.w3.org/2001/xml-events">
<head>
  <title>Quick Finder System</title>
  <link rel="stylesheet" type="text/css" href="mystyle.css" />
  <form xmlns="http://www.w3.org/2001/vxml" id="sayHello"> 
    <block>Welcome to the quick finder system</block>
  
   <field name="place">
<prompt><break/>Are you looking for<break/> a bank <break/>  a coffee shop  <break/>or a post office</prompt>
          <grammar><![CDATA[
        #JSGF V1.0;
        grammar place;
        public <place> = Coffee shop | Bank| Post office; ]]>
      </grammar> 
      
   <nomatch>I did not catch that. Are you looking for a bank, a coffee shop, or a post office</nomatch>
    <noinput> I did not hear any thing, please say choose from the following, bank,coffee shop,post office</noinput>
<help> This is voice enabled application. you can say next or click on 
next icon to go the second nearest bank. you say  home or click on home 
icon to go back to the home page</help>
 
    </field>
        <filled>
        <if cond = "place=='Bank'"> 
           <assign name="window.location" 
expr="'bank.xml'"/>
        </if>
        <if cond = "place=='Coffee shop'">
           <assign name="window.location" expr="'coffee.xml'"/>

        </if>
        <if cond = "place=='Post office'">
           <assign name="window.location" expr="'post.xml'"/>

        </if>


           
        </filled>
  </form>
</head>
<body ev:event="load" ev:handler="#sayHello"> 
  <h1>What are you looking for?</h1>
  <p>
    <a href="bank.xml" title ="Bank"> <img border="3"
  src="money.jpg" width="150" height="150" /> </a>
  <a href="coffee.xml" title ="Coffee shop"> <img border="3"
  src="coffee.jpg" width="150" height="150" /> </a>
 <a href="post.xml" title="Post office"> <img border="3"
  src="stamp.jpg" width="150" height="150" /> </a>

   
  </p>
</body>
</html>


