function submitForm() {
		var url = "sendMail.php";
		var data = Form.serialize("frmVolunteering");
		
		var request = new Ajax.Request(
		url,
		{method: 'post', parameters: data, onSuccess: showConfirm, onFailure: reportError} 
		);
}

function showConfirm() {
	// Locate the form and it's containing DIV in the DOM
	var mainDiv = $("bodyCopy");
	var contactForm = $("theForm");
	
	// Create some confirmation text
	divElement = document.createElement("div");
	
	pElement = document.createElement("p");
	textNode = document.createTextNode("Thank you for submitting your volunteering application.");
	
	pElement.appendChild(textNode);
	divElement.appendChild(pElement);
	
	pElement = document.createElement("p");
	textNode = document.createTextNode("Someone will be in contact with you soon to discuss available opportunities.");
	
	pElement.appendChild(textNode);
	divElement.appendChild(pElement);
			
	// Replace the Contact form with the confirmation message
			
	mainDiv.replaceChild(divElement, contactForm);
	divElement.style.display = "none";
	divElement.className = "alertBox";
	Effect.Appear(divElement);
}

function reportError(result) {
	window.alert("There was an error! Code: " + result.status);
}