<%
String iamServer="http://accounts.zoho.com/iam/";
String url=request.getRequestURL().toString();
String spath=request.getServletPath();
int indx=url.indexOf(spath);
String cpath=url.substring(0,indx);

String iamSingUp=iamServer+"register?serviceurl="+cpath+"/forwardhome.do&showheader=false";
String iamLogin = iamServer+"login?domain_label=PrimaryAccount&is_org=true&serviceurl="+cpath+"/forwardhome.do";
%>
<html>
    <head>
    <title>ZAPI - Zoho API Implementation<title>
<link type="text/css" rel="stylesheet" href="../css/styles.css">
<script>
function openInIframe(zurl)
{
document.getElementById("zframe").src=zurl; 
}    
</script>
    </head>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<fmt:setBundle basename="MessageResources"/>
<body>    
<table  width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr >
<td  class="CompanyLogo" ></td>
<td width="50%" class="Linktxtsmall" align="right"><a href="javascript:openInIframe('<%=iamurl12%>');" >Sign Up<a>| <a href="http://writer.zoho.com/apikey.htm" target="_self">Get API Key</a>|<a href="http://forums.zoho.com/">Forums</a>| <a href="http://blogs.zoho.com/">Blogs</a>| <a href="http://zoho.com/contact.html">Contact Us</a>| <a href="http://zoho.com">Zoho Home</a>
</td>
</tr>
<tr><td colspan="2">
<div align="center">
  <table width="80%"  border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="16"><img src="/zoho/images/top_lef.gif" width="16" height="16"></td>
      <td height="16" background="/zoho/images/top_mid.gif"><img src="/zoho/images/top_mid.gif" width="16" height="16"></td>
      <td width="24"><img src="/zoho/images/top_rig.gif" width="24" height="16"></td>
    </tr>
    <tr>
      <td width="16" background="/zoho/images/cen_lef.gif"><img src="/zoho/images/cen_lef.gif" width="16" height="11"></td>
      <td bgcolor="#F7F8FB">
        
       <iframe  height="600" width="1000" id="zframe"  frameborder="0" scrolling="no" src=""></iframe>
      </td>
      <td width="24" background="/zoho/images/cen_rig.gif"><img src="/zoho/images/cen_rig.gif" width="24" height="11"></td>
    </tr>
    <tr>
      <td width="16" height="16"><img src="/zoho/images/bot_lef.gif" width="16" height="16"></td>
      <td height="16" background="/zoho/images/bot_mid.gif"><img src="/zoho/images/bot_mid.gif" width="16" height="16"></td>
      <td width="24" height="16"><img src="/zoho/images/bot_rig.gif" width="24" height="16"></td>
    </tr>
  </table>
  </td></tr>
</table> 
</body>
</html>
