function SubmitContactForm(theForm) {
	if (ContactFormValidator(theForm)) {
		theForm.submit();
	}
}

function SubmitImamForm(theForm) {
	if (ContactFormValidator(theForm)) {
		theForm.submit();
	}
}

function ContactFormValidator(theForm)
{
 var error = ""; 

 if (theForm.full_name.value == "")
 {
  error += "Please fill in your full name.\n";
 } 

 if (theForm.email_address.value == "")
 {
  error += "Please provide an email address.\n";
 } 

 if (error != "")
 {
  alert(error);
  return (false);
 }
 return (true);
}

function SubmitForm(theform) {
	
	if (Validator(theForm)) {
		theForm.submit();
	}
}

