



function top(path)
{
	if (path=="")
	{
	path="";
	}

document.write("<TR><TD  align='center' height='253' valign='top'><table width='335' height='253' cellspacing='0'><tr><td bgcolor='#EC7600' height='43'  valign='middle' align='center'><a href='about.html' class='text1'><br>ABOUT US</a><br /><hr color='#FFFFFF' /></td></tr><tr><td bgcolor='#EC7600' height='43'  valign='middle' align='center'><a href='management.html' class='text1'>MANANGEMENT</a><br /><hr color='#FFFFFF' /></td></tr><tr><td bgcolor='#EC7600' height='43'  valign='middle' align='center'><a href='services.html' class='text1'>SERVICES</a><br /><hr color='#FFFFFF' /></td></tr><tr><td bgcolor='#EC7600' height='43'  valign='middle' align='center'><a href='contact.html' class='text1'>CONTACT US</a><br /><hr color='#FFFFFF' /></td></tr><tr><td bgcolor='#EC7600' height='43'  valign='middle' align='center'><a href='index.html' class='text1'>HOME</a><br /><hr color='#EC7600' /></td></tr></table></TD><td valign='top' width='665' height='253'>	<img src='images/internalpage/inside_logo.gif' width='665' height='253' border='0'></td></TR>"); 
}

 

function left(path)
{
	if (path=="")
	{
	path="./";
	}

document.write("<TD valign='top'><TABLE cellpadding='0' cellspacing='0'><TR>	<TD bgcolor='#BDE1F7'></TD></tr><TR><TD></TD></TR><TR><TD></TD></TR><TR><TD></TD></TR><TR><TR><TD></TD></TR><TR><TD></TD></TR><TR><TD></TD></TR><TR><TD></TD></TR><TR><TD></TD></TR><TR><TR><TD></TD></TR><TR><TD height='122' valign='top' class='index_text'  style='border:2px solid #6699FF;'><form id='form1' name='form1' method='post' action=''><table width='296' border='0'class='index_text'><tr><td colspan='2'><strong>Existing User Login</strong></td></tr><tr><td width='86'>&nbsp;Username</td><td width='245'><input type='text' name='email'></td></tr>   <tr><td>&nbsp;Password</td><td><input type='text' name='pass'></td></tr><tr><td><input name='but' type='button' value='Login' onClick='javascript: val();'></td><td><a href='"+path+"registration/donorregister.php' class='ulink'>Donor Register</a> | <a href='"+path+"registration/ngoregister.php' class='ulink'>NGO Register</a></td></tr><tr><td colspan='2' align='center'>&nbsp;<a href='"+path+"registration/fpassword.php' class='ulink'>Forgot Password</a></td></tr></table></form></TD></TR><TR><TD></TD></TR><TR><TD></TD></TR><TR><TD></TD></TR><TR><TR><TD></TD></TR>	</TABLE></TD>  "); 
}

function bottom1(path)
{
	if (path=="")
	{
	path="./";
	}

document.write("<table border='0' cellpadding='0' cellspacing='0' align='center' class='data'><tr bgcolor='#DFFBFD'><td valign='top' width='50%'class='text' align='center'><H4>Registered Office:</H4>“Doshi Regency”, Flat No.3, 2ND Floor,<BR>NO. 876, Poonamallee High Road,<BR>Chennai – 600 084,<BR>India</td><td valign='top' width='50%'class='text' align='center'><H4>Corporate Office:</H4>D 36, IV Street,<BR>Anna Nagar East,<BR>Chennai – 600 102,<BR>India </td><BR></tr></table>");
}
function bottom2(path)
{
	if (path=="")
	{
	path="./";
	}

document.write("<tr>    <td bgcolor='#53C6F7' align='center' class='foot' colspan='2'><B>&copy; 2008 SMJ Engineering Services & Consultancy Pvt. Ltd.</B></td>  </tr>");
}


function bottom(path)
{
	if (path=="")
	{
	path="./";
	}

document.write("<TR>  <td colspan='3'><hr>  </td>  </TR><!-- for horizontal line --></TABLE></TD></TR> <tr><td colspan='2'>&nbsp;</td></tr> <tr><td colspan='2'><hr></td></tr><TR><td colspan='2'><TABLE width='998' class='index_text'><TR><td align='center'><B><a href='"+path+"index.html' class='ulink'>Home</a></B> ::&nbsp;&nbsp;<B><a href='"+path+"makedonations.php'  class='ulink'>Make Donations</a></B>&nbsp;::&nbsp;<B><a href='"+path+"contactus.php'  class='ulink'>Contact Us</a></B></td>	</TR></TABLE></td></TR><TR><TD colspan='2'  class='link' bgcolor='#333333'><CENTER>&copy; 2008 CauseIndia.com    <A HREF='http://www.concerninfotech.com' target='_blank'  class='link'>WebSite Development in India</A> by Concern Infotech Pvt. Ltd.</CENTER></TD></TR></table>");
}

function val()
{
var msg		=	'';
var vmsg	=	'';
var email = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; // E-mail id Verification
if(document.login.email.value	==	'' || document.login.email.value	==	null)
{
	msg		+=	' Enter the Username';
	document.login.email.focus();
}
else if(!(email.test(document.login.email.value)))
{
	vmsg	+=	' Enter valid Email ID';
	document.login.email.focus();	
}
if(document.login.pass.value	==	'' || document.login.pass.value	==	null)
{
	msg		+=	'\n Enter the Password';
	document.login.email.focus();	
}

if((msg != null) && (msg != ""))
{
	alert(msg);
	msg = "";
}
else if((vmsg != null) && (vmsg != ""))
{
	alert(vmsg);
	vmsg ="";
}
else
{
	document.login.submit();
} 
}