function xmlhttpPostAlpha(strURL) {
	updatepageAlpha('<center><img src="images/loading.gif">&nbsp;&nbsp;Processing...&nbsp;&nbsp;&nbsp;&nbsp;</center>');
  var xmlHttpReq = false;
  var self = this;
  // Mozilla/Safari
  if (window.XMLHttpRequest) {
      self.xmlHttpReq = new XMLHttpRequest();
  }
  // IE
  else if (window.ActiveXObject) {
      self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
  }
  self.xmlHttpReq.open('POST', strURL, true);
  self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  self.xmlHttpReq.onreadystatechange = function() {
    if (self.xmlHttpReq.readyState == 4) {
      updatepageAlpha(self.xmlHttpReq.responseText);
    }
  }

  first=document.getElementById("first").value;
  last=document.getElementById("last").value;
  dob=document.getElementById("dob").value;
  email=document.getElementById("email").value;
  phone=document.getElementById("phone").value;
  address=document.getElementById("address").value;
  city=document.getElementById("city").value;
  state=document.getElementById("state").value;
  zip=document.getElementById("zip").value;
  childcare=document.getElementById("childcare").checked;
  children=document.getElementById("children").value;
  comments=document.getElementById("comments").value;

  qstr = 'first='+first+'&last='+last+'&dob='+dob+'&email='+email+'&phone='+phone+'&address='+address+'&city='+city+'&state='+state+'&zip='+zip+'&childcare='+childcare+'&children='+children+'&comments='+comments;
//alert(qstr);
  self.xmlHttpReq.send(qstr);
}


function updatepageAlpha(str){
  document.getElementById("resultsDivAlpha").innerHTML=str;
}

      
function handleEnterAlpha (field, event) {
		var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
		if (keyCode == 13) {
			xmlhttpPostAlpha('sendAlpha.php');
			return false;
		} 
		else
		return true;
	}   