<%
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 iamLogin = iamServer+"login?domain_label=PrimaryAccount&is_org=true&serviceurl="+cpath+"/forwardhome.do";
%>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<fmt:setBundle basename="MessageResources"/>
<script>
function openInIframe(zurl)
{
document.getElementById("zframe").src=zurl; 
}    
</script>
<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="<%=cpath%>/forwardhome.do" target="_self">Home<a>|<a href="<%=cpath%>/zohosignup.do" target="_self">Sign Up<a>| <a href="http://writer.zoho.com/apikey.htm" target="_blank">Get API Key</a>| <a href="http://zoho.com">Zoho Home</a>
</td>
</tr>
<tr><td colspan="2">
<div align="center">
  <table width="85%"  border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td >
        
	<table width="90%" align="center" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td >
					<div id="LoginLeftDiv">
          			<ul class="none">
            			<li class="LoginHeader"><fmt:message key="login.header1"/></li>
            			<li class="LoginContent"><fmt:message key="login.header1.desc"/></li>
            			<li class="LoginHeader"><fmt:message key="login.header2"/></li>
            			<li class="LoginContentBullet"><fmt:message key="login.header2.desc1"/></li>
            			<li class="LoginContentBullet"><fmt:message key="login.header2.desc2"/></li>
            			<li class="LoginContentBullet"><fmt:message key="login.header2.desc3"/></li>
            			<li class="LoginContentBullet"><fmt:message key="login.header2.desc4"/></li>
          			</ul>
        			</div>
        			<div id="LoginRightDiv">
          				<iframe  src="<%=iamLogin%>" frameborder="0" scrolling="no"></iframe>
        			</div>
      			</td>
			</tr>
			<tr>
				<td class="LoginScreenShot" >&nbsp;</td>
			</tr>
			<tr>
				<td class="LoginFooter" >&nbsp;</td>
			</tr>
	</table>
      </td>
  </table>
  </td></tr>
</table> 
