// JavaScript Document
function checkmail()
{
		str=document.forgotusername.email.value;
		if(str)
		{
			str=document.forgotusername.email.value;
			var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
			if (!filter.test(str))
			{
				alert("Error !! \n Invalid EMail ID");
				document.forgotusername.email.value="";
				document.forgotusername.email.focus();
			return false;
			}
		}
		else
		{
			alert("Error !! \n Enter valid EMail ID");
			document.forgotusername.email.focus();
			return false;
		}
}

function checkmail_pass()
{
		if(document.forgotpassword.name.value.length==0)
		{
			alert("Error !! \n Enter User Name");
			document.forgotpassword.name.focus();
			return false;
		}
		
}