function chkForm(theForm) {
            var formError = 0;
 
			var name  = theForm.firstName.value;
			var lastName  = theForm.lastName.value;
			var phone  = theForm.phone.value;
			
            var email = theForm.email.value;
            var reg = /^[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*@[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*\.([A-Za-z]){2,4}$/i;


			if(name == '')
			{
				formError += 1;
				theForm.firstName.focus();
				alert('The name does not appear to be valid');
				return false;
			}
			
			if(lastName == '')
			{
				formError += 1;
				theForm.lastName.focus();
				alert('The last name does not appear to be valid');
				return false;
			}	

			if (!reg.test(email)) {
                formError += 1;
                alert('The email address does not appear to be valid');
                theForm.email.focus();
                return false;
            }			

            if (formError > 0) {
                return false;
            } else {
                return true;
            }
        }

   
