// JavaScript Document
//http = getHTTPObject();
 
function sendInvitation() {
	var o = MM_findObj ("txtEmailAddress");
	if (o.value == "") {
		alert ("Email Address must not be blank");
		o.focus ();
	} else {
		var _url = "SendInvite_backend.php";
		var _data = "ea=" + o.value;
		httpRequest ("POST", _url, true, handleSendInviteResponse, _data);
	}
}

function handleSendInviteResponse() {
	if (request.readyState == 4) {
		if (request.responseText != null) {
			var o = document.getElementById("divResults"); 
			o.innerHTML = request.responseText;
		} else
			o.innerHTML = "nuttin";
	}
}