  <wml>
    <!-- msg.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="msg" title="Messages">
      <do type="options" label="Home">
        <go href="?display=index">
          <postfield name="display" value="index"/>
        </go>
      </do>
      <p mode="nowrap">
        <i><b><u><%=finduserid%></u></b></i>
        <select name="msgtxt" ivalue="1">
<%=msg-start%>
          <option onpick="#m<%=d_id%>"><%=d_date%> <%=d_title%></option>
<%=msg-end%>
        </select>
      </p>
    </card>

<%=msg-start%>
    <card id="m<%=d_id%>" title="Messages">
      <do type="accept" label="Call <%=d_phone%>">
        <go href="#mcall">
          <setvar name="f_phone" value="<%=d_phone%>"/>
        </go>
      </do>
      <do type="options" label="Home">
        <go href="?display=index">
          <postfield name="display" value="index"/>
        </go>
      </do>
      <p>
        <i><b><%=d_title%></b></i>
        <br/><%=d_message%>
      </p>
    </card>
<%=msg-end%>

    <card id="mcall" title="Call">
      <do type="accept" label="Call"> 
        <go href="wtai://wp/mc;$(f_phone)"/> 
      </do> 
      <p> 
        <i><b>GTalker Call</b></i>
        <br/>Phone: $(f_phone)
        <input title="PhoneNum" name="f_phone" />
        $(f_phone)
      </p> 
    </card>

  </wml>
