/*
Block multiple form submission script- By JavaScriptKit.com
Visit http://www.javascriptkit.com for this script and more
This notice must stay intact for use
*/

var formerrormsg="You\'ve attempted to submit the form multiple times.\n Please only submit one entry."

function checksubmit(submitbtn){
submitbtn.form.submit()
checksubmit=blocksubmit
return false
}

function blocksubmit(){
if (typeof formerrormsg!="undefined")
alert(formerrormsg)
return false
}





function validate() {
mNv=theForm.Name.value;
mEv=theForm.email.value;
mBv=theForm.body.value;
	if ((mNv=='')) {
		alert("Please fill out all the fields before submitting.");
		return false;
	}
	if (!(validateForm(theForm))) {
		return false;
	}
	if ((mBv=='')) {
		alert("Please fill out all the fields before submitting.");
		return false;
	}
return true;
}

function checkvalid(button) {
if (validate() == true) {
  if (checksubmit(button)) {
    
	return true;
    }
  }

return false;
}


