<%@ page pageEncoding="Shift_JIS"%>
<%@ taglib prefix="c" uri="/WEB-INF/tlds/c.tld" %>
<%-- <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> --%>

<%
	String servlet = response.encodeURL((String)request.getAttribute("servlet"));
	String term = (String)request.getAttribute("term");
	String unseen = (String)request.getAttribute("unseen");
	String charset = "Shift_JIS";

	session.removeAttribute("SendMail"); // 儊乕儖嶌惉忣曬傪僋儕傾偡傞
%>

<%-- ==================================================================================== --%>
<c:choose>

<c:when test="${term == 'imode' || term == 'astel' || term == 'willcom'}">
	<% response.setContentType("text/html;charset="+charset); %>

	<html>
	<head>
	  <title>SMS2U TOP</title>
	</head>
	<body>
	  ** SMS2U Top **<hr>
	  <a accesskey="1" href="<%= servlet+"?cmd=ST" %>">鶉</a>What't new<br>
	  <a accesskey="2" href="<%= servlet+"?cmd=SI" %>">鶊</a>Inbox(Unseen:<%= unseen %>)<br>
	  <a accesskey="3" href="<%= servlet+"?cmd=SO" %>">鶋</a>Outbox<br>
	  <!--<a accesskey="4" href="%%servlet%%?cmd=SME">鶌</a>Write messages(payment service)<br>-->
	  <a accesskey="4" href="<%= servlet+"?cmd=SME" %>">鶌</a>Write messages<br>
	  <!-- <a accesskey="5" href="%%servlet%%?cmd=SAL">鶍</a>Phonebook<br> -->
	  <!-- <a accesskey="5" href="%%servlet%%?cmd=ST">鶍</a>Save to bookmark<br>-->
	  <a accesskey="5" href="<%= servlet+"?cmd=ST" %>">鶍</a>Unregistration<br>
	  <a accesskey="7" href="<%= servlet+"?cmd=ST" %>">鶎</a>Setup<br>
	  <a accesskey="8" href="<%= servlet+"?cmd=ST" %>">鶏</a>Help<br>
	</body>
	</html>
</c:when>

<%-- ==================================================================================== --%>
<c:when test="${term == 'jphone' || term == 'jsky'}">
	<% response.setContentType("text/html;charset="+charset); %>
	
	<html>
	<head>
	  <title>SMS2U TOP</title>
	</head>
	<body>
	  ** SMS2U Top **<hr>

	  <a directkey="1" href="<%= servlet+"?cmd=ST" %>">What't new</a><br>
	  <a directkey="2" href="<%= servlet+"?cmd=SI" %>">Inbox(Unseen:<%= unseen %>)</a><br>
	  <a directkey="3" href="<%= servlet+"?cmd=SO" %>">Outbox</a><br>
	  <a directkey="4" href="<%= servlet+"?cmd=SME" %>">Write messages</a><br>
	<!--<a directkey="4" href="%%servlet%%?cmd=SME">Write messages(payment service)</a><br>-->
	<!-- <a directkey="5" href="%%servlet%%?cmd=SAL"></a>Phonebook<br> -->
	<!--<a directkey="5" href="%%servlet%%?cmd=ST">Save to bookmark</a><br>-->
	  <a directkey="5" href="<%= servlet+"?cmd=ST" %>">Unregistration</a><br>
	  <a directkey="6" href="<%= servlet+"?cmd=ST" %>">Setup</a><br>
	  <a directkey="7" href="<%= servlet+"?cmd=ST" %>">Help</a><br>

	</body>
	</html>

</c:when>

<%-- ==================================================================================== --%>
<c:when test="${term == 'hdml'}">
	<% response.setContentType("text/x-hdml;charset="+charset); %>

	<HDML VERSION="3.0" TTL=0 PUBLIC=TRUE>
	  <CHOICE NAME="main" KEY="cmd" IDEFAULT="1">
	    <ACTION TYPE=ACCEPT LABEL="OK" TASK=GOSUB DEST="<%= servlet %>?cmd=$cmd">
	    <ACTION TYPE=SOFT1 LABEL="Back" TASK=RETURN>
	    ** Welcome **
	    <CE VALUE="ST">What't new
	    <CE VALUE="SI">Inbox(Unseen:<%= unseen %>)
	    <CE VALUE="SO">Outbox
	    <CE VALUE="SME">Write messages(payment service)
	<!--<CE VALUE="SAL">Phonebook-->
	<!--<CE VALUE="ST">Save to bookmark-->
	    <CE VALUE="ST">Unregistration
	    <CE VALUE="ST">Setup
	    <CE VALUE="ST">Help
	  </CHOICE>
	</HDML>

</c:when>

<%-- ==================================================================================== --%>
<c:when test="${term == 'wml'}">
	<% response.setContentType("text/x-hdml;charset="+charset); %>

	<?xml version="1.0"?>
	<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
	            "http://www.wapforum.org/DTD/wml_1.1.xml">

	<wml>
	<head>
	  <meta http-equiv="Cache-Control" content="max-age=0"/>
	</head>
	<card id="main">
	  <p mode="nowrap">
	  <do type="accept" label=""><noop/></do>
	  <do type="options" label="栠傞"><prev/></do>
	  xGate儊僯儏乕<br/>
	  <a accesskey="1" href="<%= servlet %>?cmd=ST">1.儊乕儖(枹撉悢:<%= unseen %>)</a><br>
	  <a accesskey="9" href="<%= servlet %>?cmd=LOGOUT">9.儘僌傾僂僩</a>
	  </p>
	</card>
	</wml>

</c:when>

<%-- ==================================================================================== --%>
<c:when test="${term == 'wml_nokia'}">
	<% response.setContentType("text/vnd.wap.wml;charset="+charset); %>

</c:when>

<%-- ==================================================================================== --%>
<c:otherwise>
	<% response.setContentType("text/html;charset="+charset); %>
	
	<html>
	<head>
	<script language=javascript>
	<!--
	function window_onload() {
	  var f = document.form1;
	  f.submit();
	}

	//-->
	</script>
	</head>
	<body language=javascript onload="return window_onload()">
	<form name="form1" method="post" action="<%= servlet %>">
	<input type="hidden" name="cmd" value="ST">
	</form>
	</body>
	</html>
</c:otherwise>

<%-- ==================================================================================== --%>
</c:choose>

<!-- Copyright (c) 2000,2001 Orangesoft Inc. All Rights Reserved. -->
