// JavaScript Document
function validateForm() 
	{
			var formVal = document.getElementById('contactForm');
			var Email = document.getElementById('Email');
			var FirstName = document.getElementById('FirstName');
			var LastName = document.getElementById('LastName');
			var SpamCheck = document.getElementById('spamCheck');
			var Diagnosis = document.getElementById('Diagnosis');
			var d = new Date();
			if (Email.value == "" || Email.value.indexOf('@', 0) == -1 || !Email.value.indexOf('.', 0)) {
    		alert ("Please, enter a valid email address.");
    		Email.focus();
			return false;
  			}
			if (FirstName.value == "") 
			{
				alert("First name cannot be empty.");
				FirstName.focus();
				return false;
			}
			if (LastName.value == "") 
			{
				alert("Last name cannot be empty.");
				Lastname.focus();
				return false;
			}
			if (Diagnosis.value.indexOf('http://') != -1 ) {
				alert("Your message contains a URL. Please remove any URLs from your message and resubmit");
				return false;
			}
			if (SpamCheck.value != d.getFullYear()) 
			{
				alert("Current year must be filled in correctly. This is a test against spambots.");
				SpamCheck.focus();
				return false;
			}

	}

