function chkForm(theForm) {
            var formError = 0;
            

            var who = theForm.email.value;
	    var who2 = theForm.confirm_email.value;
            var email = /^[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*@[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*\.([A-Za-z]){2,4}$/i;
            if (!email.test(who)) {
                formError += 1;
                alert('The email address does not appear to be valid');
                theForm.email.focus();
                return false;
            }

			if( who !=  who2)
			{
				formError += 1;
				alert('The email addresses you have entered do not match.');
				theForm.email.focus();
				return false;
				
				
			}

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

   
