function submitInformation() {
	var name = document.getElementById("name").value;
	var email = document.getElementById("email").value;
	var url = "ajax-php/saveContact.php";
	
	request.open("POST", url, true);
	request.onreadystatechange = showConfirmation;
	request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	request.send("name=" + escape(name) +
				"&email=" + escape(email));
}

function showConfirmation() {
	if (request.readyState == 4) {
		if (request.status == 200) {
			var response = request.responseText;
			
			//Locate form on page
			var mainDiv = document.getElementById("eventBody");
			var orderForm = document.getElementById("contact-info");
			
			//Create some confirmation text
			pElement = document.createElement("p");
			textNode = document.createTextNode(
						"Your information has been saved! We will contact you as soon as tickets are available!");
			pElement.appendChild(textNode);
			
			//Replace the form with the confirmation
			mainDiv.replaceChild(pElement, orderForm);
		} else {
			var message = request.responseText;
			if ((message == null) || (message.length <= 0)) {
				alert("Error! Request status is " + request.status);
			} else {
				alert(message);
			}
		}
	}
}