	
	function validateName()
	{
		if (document.form.fullname.value == "")
		{
	        alert("You must enter your 'name' before submitting this form.");
	        document.form.fullname.focus();
	        return false;
	    }
	    else
	    {
	       return true;
		}
	}

	function validateEmail()
	{
	    var theEmail = document.form.email.value;
	    var atLoc = theEmail.indexOf("@",1);
	    var dotLoc = theEmail.indexOf(".",atLoc+2);
	    var len = theEmail.length;
		/* Callout: This expression returns true only if the @ symbol and a dot are present in the e-mail address and the length of the address is sufficient to include a two-character domain at the end.*/
		if (atLoc > 0 && dotLoc > 0 && len > dotLoc+2)
		{
	       return true;
	    }else{
	        alert("Please enter your e-mail address properly. For example: someone@somewhere.co.uk");
	        document.form.email.focus();
	        return false;
	    }
	}

	function validateAll()
	{
		if (validateName() && validateEmail()){
			return true;
		}else{
			return false;
		}
	}
