// JScript source code

function CheckPolicyLogin()
{
	if (document.frmMyPolicyLogin.txtEmail.value == "")
	{
		alert("Please enter your email address.");
		document.frmMyPolicyLogin.txtEmail.focus();
		return false;
	}
	
	if (document.frmMyPolicyLogin.txtEmail.value == ".")
	{
		alert("Please enter a valid email address and try again to login.");
		document.frmMyPolicyLogin.txtEmail.focus();
		return false;
	}
	var strEmail = document.frmMyPolicyLogin.txtEmail.value;
	if (strEmail.length < 5)
	{
		alert("Please enter a valid email address and try again to login.");
		document.frmMyPolicyLogin.txtEmail.focus();
		return false;
	}
	if (document.frmMyPolicyLogin.txtPassword.value == "")
	{
		alert("Please enter your password.");
		document.frmMyPolicyLogin.txtPassword.focus();
		return false;
	}
	return true;
}
