$(document).ready(function() {
	
	function isValidEmail(str)
	{
		return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
 	}
	
	$("#mlForm").submit(function() {
		if($("#name").val() == "")
		{
			alert("Please enter your name in the field provided.");
			return false;
		}
		if ($("#trluth-trluth").val() == "")
		{
			alert("Please enter your email address in the field provided.");
			return false;
		}
		if (!isValidEmail($("#trluth-trluth").val()))
		{
			alert("Please enter a valid email address in the field provided.");
			return false;
		}
		
		return true;
	});
 });



