  <wml>
  <!-- index.wml -->
    <head>
      <meta http-equiv="Cache-Control" content="max-age=0" forua="true" />
      <meta http-equiv="Cache-Control" content="must-revalidate" forua="true"/>
    </head>  

    <card id="Home" title="Home">
      <onevent type="onenterforward">
        <refresh>
          <setvar name="finduserid" value=""/>
          <setvar name="passwd" value=""/>
        </refresh>
      </onevent>
      <do type="accept" label="OK">
        <go href="?display=$(f_display)">
          <postfield name="display" value="$(f_display)"/>
        </go>
      </do>
      <p>
        <i><b>GTalker Home</b></i>
        <select name="f_display" ivalue="1">
          <option onpick="#Msgs1">Messages</option>
          <option value="signup">Signup</option>
          <option onpick="#Login1">Login</option>
          <option onpick="?display=s_new">Services</option>
          <option value="about">About</option>
        </select>
      </p>
    </card> 

    <card id="Msgs1" title="Msgs1">
      <do type="accept" label="OK">
        <go href="#Msgs2" />
      </do>
      <p>
        <i><b>GTalker Msgs</b></i>
        <br />UserID:
        <input name="finduserid" size="10" format="mmm*m" />
      </p>
    </card>

    <card id="Msgs2" title="Msgs2">
      <do type="accept" label="OK">
        <go href="#Msgs3" />
      </do>
      <p>
        <i><b>GTalker Msgs</b></i>
        <br />Opt Private Key:
        <input name="privatekey" size="10" format="*m" />
      </p>
    </card>

    <card id="Msgs3" title="Msgs3">
      <onevent type="onenterforward">
        <refresh>
          <setvar name="finduserid" value="$(finduserid)"/>
        </refresh>
      </onevent>
      <do type="accept" label="OK">
        <go href="?fnc=find_user_msgs&amp;u_shown=0&amp;next=users&amp;user0=notfound">
          <postfield name="finduserid" value="$(finduserid)"/>
          <postfield name="userid" value="$(userid)"/>
          <postfield name="eventkey" value="$(eventkey)"/>
          <postfield name="privatekey" value="$(privatekey)"/>
        </go>
      </do>
      <p>
        <i><b>GTalker Msgs</b></i>
        <br />Opt Event Key:
        <input name="eventkey" size="10" format="*m" />
      </p>
    </card>

    <card id="Login1" title="Login1">
      <do type="accept" label="OK">
        <go href="#Login2" />
      </do>
      <p>
        <i><b>GTalker Login</b></i>
        <br />UserID:
        <input name="userid" size="10" format="mmm*m" />
      </p>
    </card>

    <card id="Login2" title="Login2">
      <onevent type="onenterforward">
        <refresh>
          <setvar name="userid" value="$(userid)"/>
        </refresh>
      </onevent>
      <do type="accept" label="OK">
        <go href="?fnc=user_login&amp;user0=user_notfound&amp;user1=user_loc">
          <postfield name="userid" value="$(userid)"/>
          <postfield name="passwd" value="$(passwd)"/>
        </go>
      </do>
      <p>
        <i><b>GTalker Login</b></i>
        <br />PassWd:
        <input name="passwd" size="10" format="mm*m" />
      </p>
    </card>

  </wml>
