<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs  height="300" width="900" title="Sify Mail" title_url="Sify Mail URL" directory_title="Sify mail" author="Siva" author_email="rmshiva@gmail.com" author_location="Chennai, India" screenshot="http://mail.sify.com/imgs/sifymail.gif" thumbnail="http://mail.sify.com/imgs/sifymail.gif" description="This gadget helps you to access to your Sify mail from google home page.">
</ModulePrefs>
<UserPref name="title" display_name="Title" required="false" default_value="Mail Sify"/>
<UserPref name="titleurl" display_name="TitleURL" required="false" default_value="http://mail.sify.com/default.php3" />
  <Content type="html">
    <![CDATA[
    
<HTML><HEAD><TITLE>Sify.com - Authentication</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="register.css" rel=stylesheet>
<SCRIPT>
  function winopen(val)
{
if(val=="code")
	window.open('activate.php3?val=1','win1','width=300,height=100,menubar=no,status=no,scrollbars=no,toolbar=no,top=0,left=0');
else
	window.open('activate.php3?val=2','win1','width=300,height=100,menubar=no,status=no,scrollbars=no,toolbar=no,top=0,left=0');

}
	function validate()
	{
		var f = document.login;
		var user_name = f.userName.value;
		var max_username_length = 30;
		var username_length = user_name.length;
		var pwd = f.password.value;
		var pwd_length = pwd.length;
		
		if(f.userName.value.indexOf("@")>0) {
			alert("Invalid Sify ID!\nPlease do not include '@' in your Sify ID");
			f.userName.focus();
			return false;
		}
		if( !f.userName.value )
		{
			alert("Please enter the your Sify ID");
			f.userName.focus();
			return false;
		}
		if(f.userName.value.indexOf('')>0)
		{
			alert("Username cannot contain spaces");
			f.userName.focus();
			return false;
		}
		if (username_length > max_username_length)
		{
			alert("Username can contain a  maximum of " + max_username_length + " characters only\n");
			return false;
		}
		var valid_first_characters = new RegExp ("[a-zA-Z0-9]", "g");
		var first_character = user_name.charAt(0);
		if (!valid_first_characters.test (first_character))
		{
			alert("Username must begin with an alphabet or number\n");
			return false;
		}
		var valid_characters;
		for (var i = 1; i < username_length; i++)
		{
			valid_characters = new RegExp ("[a-zA-Z0-9_.-]", "g");
			part_user_name = user_name.charAt (i);
			if (!valid_characters.test (part_user_name))
			{
				alert("Special characters like '" + part_user_name + "' are not allowed in username");
				return false;
			}
			valid_characters = null;
		}
		var valid_last_characters = new RegExp ("[a-zA-Z0-9_.-]", "g");
		var len = username_length-1;
		var last_character = user_name.charAt(len);
		if (!valid_last_characters.test (last_character))
		{
			alert ("The last character of the username must either be an alphabet or numeral. It cannot be '" + last_character + "'");
			return false;
		}
		
		if( !f.password.value )
		{
			alert("Please enter the password");
			f.password.focus();
			return false;
		}
		var valid_first_pcharacters = new RegExp ("[a-z,A-Z,0-9]", "g");
		var first_pcharacter = pwd.charAt(0);
		if (!valid_first_pcharacters.test (first_pcharacter))
		{
			alert("Password must begin with an alphabet or number \n");
			document.frm.pwd.focus();
			return false;
		}
		var valid_pcharacters;
                for (var j = 1; j < pwd_length; j++)
                {
                        invalid_pcharacters = new RegExp ("[`]", "g");
                        part_pwd_name = pwd.charAt (j);
                        if (invalid_pcharacters.test (part_pwd_name))
                        {
                                alert("Special characters like '" + part_pwd_name + "' are not allowed in password");
                                return false;
                        }
                        invalid_pcharacters = null;
                }
		return true;
		//f.submit();
	}

	function set_focus()
	{

		if( !document.login.userName.value )
		document.login.userName.focus();
		else
		if ( !document.login.password.value )
			document.login.password.focus();
	}

	//this popup is used when the cookies are not enabled in the user browser
	function openPop()
	{
		window.open('http://www.sify.com/cookie.asp?sn=sify','wndx','width=600,height=370,menubar=no,toolbar=no,status=no,resizable=no,scrollbars=no,top=70,left=100');
	}

	// check whether the cookies enabled or not

	function checkCookiesEnabled ()
	{
		document.cookie = 'cookieName=cookieValue';
			if(document.cookie != '')
			{
				document.cookie = 'cookieName=;expires= 1 Jan 1980';
				return true;
			}
			else

				return false;
		}

		var is_err = '';
		if (!checkCookiesEnabled()) {
			if (is_err != '2') {
			window.location = 'http://login.sify.com/login.php?err=2&rurl=http://mail.sify.com/';
			}
		}
</SCRIPT>
<style>
BODY
{
}
.bfont
{
    COLOR: black;
    FONT-FAMILY: Arial;
    FONT-SIZE: 9pt;
    FONT-WEIGHT: bold;
	TEXT-DECORATION: none

}
.nfont
{
    COLOR: black;
    FONT-FAMILY: Arial;
    FONT-SIZE: 9pt
}

.lfont
{
    COLOR: blue;
    FONT-FAMILY: Arial;
    TEXT-DECORATION: none;
	FONT-SIZE: 8pt

}
</style>

<META content="MSHTML 5.50.4731.2200" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0 onLoad="javascript: set_focus();" marginwidth="0"
marginheight="0">
<FORM name=login action="http://mail.sify.com/intermediate.php3" method=post>
<map name="Buynow">

<area alt="BuyNow" coords="35,299,113,323" href="10plus.php3" target="_blank">
<area alt="BuyNow" coords="173,301,254,324" href="15plus.php3" target="_blank">
<area alt="BuyNow" coords="312,300,392,323" href="25plus.php3" target="_blank">
</map>
<TABLE cellSpacing=0 cellPadding=0 width=778 border=0 align="center">
  <TBODY>
  <TR>
    <TD vAlign=center><A href="http://www.sify.com/"><IMG
      alt=Sify.com src="http://mail.sify.com/imgs/sifymail.gif"
      border=0></A> <BR></TD><!--td align="right" valign=bottom>
      <img src="http://mail.sify.com/imgs/sifynetwork.gif" border="0" alt="Sify Network">
    </td--></TR></TBODY></TABLE>

<TABLE cellSpacing=0 cellPadding=0 border=0 align="center" width=780>
  <TBODY>
  <TR>

    <TD vAlign=top width=265>
      <TABLE cellSpacing=0 cellPadding=2 border=0>
	<TBODY>
	<TR>
	  <TD colSpan=2><BR><FONT face=arial size=4><B>Login:</B></FONT><BR><BR></TD></TR>
	<!--
	 <tr><td>&nbsp;</td><td><font color=red>Due to severing of a major under-sea cable you may experience slower than 
	 	normal browsing speeds. We deeply regret the inconvenience.</font></td></tr>
	-->
		  

<!--tr><td>&nbsp;</td><td colspan="0" class=mainFont> <font color="red">Dear Sify Mail User,<br>Due to maintenance work SifyMail service will be disrupted on October 6<sup>th</sup>. We deeply regret the inconvenience.</font></td></tr-->
	<TR>

	  <TD>&nbsp;&nbsp;</TD>
	  <TD align=middle>
	    <TABLE cellSpacing=0 cellPadding=0 width=270 border=0>
	      <TBODY>
	      <TR>
		<TD bgColor=#7396ce colSpan=4><FONT face=arial color=#ffffff
      size=2>&nbsp;Enter Your Sify ID and Password</FONT></TD></TR>
	      <TR>
		<TD colSpan=4><IMG height=1
		  src="http://mail.sify.com/imgs/spacer.gif"></TD></TR>

	      <TR>
		<TD bgColor=#b5c7e7 colSpan=4><BR></TD></TR>
	      <TR>
		<TD bgColor=#b5c7e7 rowSpan=4><BR>&nbsp;&nbsp;</TD>
		<TD bgColor=#b5c7e7><FONT face=arial color=#330000
      size=2>Sify ID :</font></TD>
		<TD bgColor=#b5c7e7 align=right><INPUT  name=userName value=""></TD>
		<TD bgColor=#b5c7e7 rowSpan=4 valign=top><font face=arial size=2>&nbsp;<b>@sify.com</b></font>&nbsp;</TD></TR>
	      <TR>

		<TD bgColor=#b5c7e7><FONT face=arial color=#330000
      size=2>Password&nbsp;:&nbsp;</font></TD>
		<TD bgColor=#b5c7e7 align=right><INPUT type=password name=password></TD></TR>
	      <TR>
		<TD bgColor=#b5c7e7 colSpan=2><IMG height=8
		  src="http://mail.sify.com/imgs/spacer.gif"></TD></TR>
	      <TR>
		<TD bgColor=#b5c7e7>&nbsp;</TD>
		<TD align=right bgColor=#b5c7e7>
		  <input type="image" height=24 src="http://mail.sify.com/imgs/signin.gif" width=73
		  border=0 onClick="javascript:return validate();"></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR>

	      <TR>
		<TD bgColor=#b5c7e7 colSpan=4><BR></TD></TR></TBODY></TABLE></TD></TR>
	<TR>
	  <TD>&nbsp;&nbsp;</TD>
	    <TD valign = top><FONT face=arial size=2><br>
	    </font></TD>
	</TR></TABLE></TD>
    <td width="20">&nbsp;</td>
    <td>
<tr>
</tr>
<!-- newly added below explore mail -->
<table width="454" height="330" border="0" cellpadding="1" cellspacing="0">
	<tr>
		<td align=right valign=middle>

<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://ads.sify.com/RealMedia/ads/adstream_jx.ads/mail.sify.com/logout@Right"></script>
</td>
</tr>
  </table>
<!-- end of the content below explore mail -->
</TBODY>
</TABLE></TR>
								 <TR>
								     <TD colSpan=2 height=8>&nbsp; </TD></TR>
								     </TBODY></TABLE>
                                                                          <!-- right pane img ends here -->

<TABLE cellSpacing=0 cellPadding=0 border=0 width="780" align="center">
  <TBODY>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width=780 border=0>
	<TBODY>
	<TR>
	  <TD align=middle bgColor=#a0a4c8>&nbsp;</TD>
	</TR>

	<TR>
	  <TD>&nbsp;</TD>
	</TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=770 border=0 align=center>
  <TBODY>
  <TR>
    <TD>
      <HR SIZE=0>

    </TD></TR>
  <TR>
    <TD class=small align=right>&nbsp;</TD>
  </TR>
  <TR>
    <TD class=small align=middle>&nbsp;</TD>
  </TR></TBODY></TABLE>
<table cellspacing="0" cellpadding="0">
	<tr>
		<td colspan="2"><div style="font-size:2px;">&nbsp;</div></td> 
	</tr>
	<tr>
		<td width="16">&nbsp;</td> 
		<td>

			<script type="text/javascript"><!--
			google_ad_client = "pub-4618009450564010";
			/* 234x60, created 2/21/08 */
			google_ad_slot = "8937462444";
			google_ad_width = 234;
			google_ad_height = 60;
			//-->
			</script>
			<script type="text/javascript"
			src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
			</script>

			<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
			</script>
			<script type="text/javascript">
			_uacct = "UA-2006511-18";
			urchinTracker();
			</script>

		</td>
	</tr>
</table>
</FORM></BODY></HTML>
    ]]>
</Content>
</Module>

