function loginValidate(theForm)
{
	var errMesg = "";
	var diplayMesg = ""
	var Q = ""; // this block determines lifespan of Q
	if (isWhitespace(theForm.email.value))
	{
		Q += "  Email Address\n";
	}
	else if(echeck(theForm.email.value))
	{
	   errMesg += "Invalid Email Address.\n";
	}	
	else if(!isCharsInBag(theForm.email.value, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@._-"))
	{
	  errMesg += "Email Address contains Invalid Characters.\n";
	}
	//Check for password
	/*
	if (isWhitespace(theForm.password.value))
	{
		Q += "  Password\n";
	}
	*/
	if ( Q.length > 0 )
	{
		diplayMesg = "Please provide Valid values for\n" + Q ;
		//errMesg += "Please provide Valid values for\n" + Q ;
	
	}

	if (errMesg == "" && diplayMesg == "")
	{
		//theForm.submit();
	}
	
	else
	{
	
			if(diplayMesg!="")
			{
				alert(diplayMesg);
				return false;			
			}
			else
			{
				alert(errMesg);
				return false;
			}	
	}
}