function validateForm()
	{
		var y=document.forms["joinform"]["name"].value
		var x=document.forms["joinform"]["email"].value
		var z=document.forms["joinform"]["mobile"].value
		var atpos=x.indexOf("@");
		var dotpos=x.lastIndexOf(".");
		
		if (y==null || y=="")
			{
		  	alert("Name must be filled out");
			return false;
  			}

		else if (x==null || x=="")
			{
			alert("Email must be filled out.............");
			return false;
			}
		else if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
			{
			alert("Not a valid e-mail address");
			return false;
			}
		else if (z==null || z=="")
			{
		  	alert("Mobile Number must be filled out");
			return false;
  			}
		else
			{
			alert("Thanks for contacting Nutri Health System......");
			window.location='index.php';	
			return true;	
			
			}
	}

