function custReg() {
	var loading_message = "<br /><img src='images/116.png' />&nbsp;&nbsp;&nbsp;&nbsp;Registering your info...<br /><br />";
	
	var sFname = document.getElementById("fname").value; //i change the name of the form id receiving the response February 3, 2010 L.Richards
	var sLname = document.getElementById("lname").value; //i change the name of the form id receiving the response and added a variable February 3, 2010 L.Richards
	var sEmail = document.getElementById("emailadd").value;
	var oXmlHttp = zXmlHttp.createRequest();
	
	document.getElementById("RegSec").innerHTML = loading_message; //i change the name of the div receiving the response February 3, 2010 L.Richards

	oXmlHttp.open("get", "insert-db.asp?fn=" +sFname+"&ln="+sLname+"&ml="+sEmail, true); //i change the name of the document posting to and the querystring February 3, 2010 L.Richards

	oXmlHttp.onreadystatechange = function () {
		if (oXmlHttp.readyState == 4) {
			if (oXmlHttp.status == 200) {
				printStuff(oXmlHttp.responseText);
			} else {
				printStuff("An error occurred: " + oXmlHttp.statusText); //statusText is not always accurate
			}
		}            
	};
	oXmlHttp.send(null);
}




// If the element's string matches the regular expression it is all numbers
function isNumeric(elem, helperMsg){
	var numericExpression = /^[0-9]+$/;
	if(elem.value.match(numericExpression)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}
	


function printStuff(sText) {
	var divToolData = document.getElementById("RegSec");
	divToolData.innerHTML = sText;
}


