<%
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="95%" align="center" border="0" cellspacing="0" cellpadding="0"
style="margin-top:5px">
<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 width="50%">
          			<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>
 </td>                   
<td align="right" width="45%" >
          				<iframe  src="<%=iamLogin%>" frameborder="0" scrolling="no"></iframe>
</td>
</tr>

			<tr>
				<td align="center" colspan="2" class="LoginScreenShot" >&nbsp;</td>
			</tr>
</table>
