// JavaScript Document
//http = getHTTPObject();
 
function verifyData() {
	var o = MM_findObj ("txtEmailAddress");
	if (o.value == "") {
		alert ("Email Address must not be blank");
		o.focus ();
	} else {
		o = MM_findObj ("txtSalutation");
		if (o.value == "") {
			alert ("Salutation must not be blank");
			o.focus ();
		} else {
			var _url = "NewCustomer_backend.php";
			var o = MM_findObj ('txtEmailAddress');
			var _data = "ea=" + o.value
							+ "&sa=" + document.getElementById('txtSalutation').value
							+ "&ct=" + document.getElementById('slctCustomerType').value;
			httpRequest ("POST", _url, true, handleNewCustomerResponse, _data);
		}
	}
}

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